Releases: oedotme/generouted
v1.11.0
Changes
New plugin added to generate routes types for Solid Router with generouted
conventions. The output is saved by default at src/router.ts
and gets updated by the add/change/delete at src/pages/*
.
It provides auto-completion for A
, useNavigate
, useParams
and more exported from src/router.ts
Check the plugin readme for to get started guide and usage examples.
Commits
- docs: replace link w/ a at solid components 6544951 by @oedotme
- docs: update readme for the new solid plugin 369c90e by @oedotme
- chore: add type-safe navigation plugin to solid example a046b64 by @oedotme
- chore: restructure conflicting example routes 3f99a3a by @oedotme
- feat: add solid router plugin for type-safe navigation 23d6957 by @oedotme in #70
- feat: apply optional pattern per segment 9c5be4c by @oedotme
- feat: add missing optional pattern in integrations glob 650e52e by @oedotme
Changelog: v1.10.0...v1.11.0
v1.10.0
Changes
Two integrations were added to provide non-lazy/non-code-splitting strategy for the following routers and set as default:
react-router-dom
@solidjs/router
Now the imports for the routers mentioned above provide the non-lazy Routes
by default:
generouted/react-router
generouted/solid-router
To access the equivalent lazy-loaded Routes
you need to add -lazy
to the integration import:
generouted/react-router-lazy
generouted/solid-router-lazy
This change will enable switching between both lazy and non-lazy strategies while having the same features and conventions.
Commits
- docs: update solid example 681b8be by @oedotme
- feat: add non-lazy integrations for react/solid router 5bce791 by @oedotme
Changelog: v1.9.0...v1.10.0
v1.9.0
Changes
React Router plugin generates now only types and type-safe components/hooks/utils:
- Removed
src/routes.gen.tsx
and addedsrc/router.ts
- Use
Routes
fromgenerouted/react-router
instead ofsrc/routes.gen.tsx
- Use type-safe components, etc. from
src/router.ts
instead ofsrc/routes.gen.tsx
- Use
Modals
fromgenerouted/react-router
instead ofsrc/routes.gen.tsx
- Use
useModals
fromsrc/router.ts
as other hooks
Commits
- feat: generate only types at react router plugin 9df4161 by @oedotme
- feat: add global modals conventions to core b4a74e5 by @oedotme
- feat: unify integrations pending and error export names 20bbb92 by @oedotme
- chore: update packages 4d4056d by @oedotme
Changelog: v1.8.0...v1.9.0
v1.8.0
Changes
Getting started with type-safe global modals with React Router here https://github.com/oedotme/generouted/tree/main/plugins/react-router#type-safe-global-modals
Commits
Changelog: v1.7.20...v1.8.0