Skip to content

fix(router): make off() unsubscribe handlers correctly + refactor + docs#19

Merged
AoDev merged 8 commits into
masterfrom
refactor-cleanup
Apr 28, 2026
Merged

fix(router): make off() unsubscribe handlers correctly + refactor + docs#19
AoDev merged 8 commits into
masterfrom
refactor-cleanup

Conversation

@AoDev

@AoDev AoDev commented Apr 28, 2026

Copy link
Copy Markdown
Owner

No description provided.

aodev added 8 commits April 28, 2026 10:49
Derive router event names from a single typed tuple and update off() to assign a filtered handler list so unsubscribe works as intended. Remove obsolete array helpers and extend router tests to cover handler removal and invalid event-name guard behavior.
Add an agent-oriented lint entrypoint and repository guidance so automated contributors run consistent post-edit checks. Update Cursor skill/rule docs to match the current biome+prettier flow and include an AGENTS.md onboarding guide.
Apply formatting cleanup to changelog and website docs assets to keep generated and authored documentation consistent. This reduces noisy diffs and keeps style updates aligned with the lint-agent workflow.
Use string[] for splitPathReducer accumulator to remove an unnecessary any and keep utility typing explicit.
Unify Router, React components, and plugins around named exports while removing deep lib/esm subpath exports from package metadata. Update tests and docs to consume root-level named imports so usage stays consistent with the supported public API.

BREAKING CHANGE: default exports and deep subpath imports (e.g. bard-router/lib/* and bard-router/esm/*) are no longer part of the public API; import from bard-router using named exports.
Update README copy to reflect the current typed API, simplify installation instructions, and add a root-level named import usage example. Align build notes with the current package export surface by removing outdated deep-import wording.
@AoDev AoDev merged commit 5e7d77b into master Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant