feat(react): stricter Route/Link types and Rslib publish pipeline#17
Merged
Conversation
added 2 commits
April 22, 2026 14:00
Tighten Route/Link typing for consumers and align published declarations with a dedicated build tsconfig. Replace Babel with Rslib for dual CJS/ESM output, switch lint to Biome, remove ESLint, run CI on Node 20 with npm cache, and document engines vs devEngines. BREAKING CHANGE: TypeScript consumers may see new errors where Route/Link props were previously inferred loosely. Route now couples `Component` to `ComponentProps` and expects explicit `path` and `Component`. Published `.d.ts` come from `tsconfig.build.json` only (src), which can surface stricter types than before. `injectRouter` was removed; inline `inject`/`observer` patterns from the library source instead.
lint:error now uses biome check with errors-only diagnostics; drop lint:ci. CI runs the same script for a quieter log without losing format or import checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tighten Route/Link typing for consumers and align published declarations with a dedicated build tsconfig. Replace Babel with Rslib for dual CJS/ESM output, switch lint to Biome, remove ESLint, run CI on Node 20 with npm cache, and document engines vs devEngines.
BREAKING CHANGE: TypeScript consumers may see new errors where Route/Link props were previously inferred loosely. Route now couples
ComponenttoComponentPropsand expects explicitpathandComponent. Published.d.tscome fromtsconfig.build.jsononly (src), which can surface stricter types than before.injectRouterwas removed; inlineinject/observerpatterns from the library source instead.