Skip to content

feat(react): stricter Route/Link types and Rslib publish pipeline#17

Merged
AoDev merged 2 commits into
masterfrom
feat/route-link-types-and-build-tooling
Apr 22, 2026
Merged

feat(react): stricter Route/Link types and Rslib publish pipeline#17
AoDev merged 2 commits into
masterfrom
feat/route-link-types-and-build-tooling

Conversation

@AoDev

@AoDev AoDev commented Apr 22, 2026

Copy link
Copy Markdown
Owner

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.

aodev 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.
@AoDev AoDev merged commit a64c59e into master Apr 22, 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