Releases: oedotme/generouted
Releases · oedotme/generouted
v1.18.5
Commits
- chore: update packages 935aef9 by @oedotme
- feat: export type helpers for components and hooks 255f4be by @oedotme
- feat: synchronous prettier formatting (#152) af2ae09 by @timothympace
- docs: update react-router example link (#153) 11534c6 by @gregfenton
Changelog: v1.18.4...v1.18.5
v1.18.4
Commits
- chore: update packages 0a1670c by @oedotme
- fix: react-router hooks re-rendering (#147) efc3868 by @VriskaSerket51
Changelog: v1.18.3...v1.18.4
v1.18.3
Commits
- chore: update packages 2d815b4 by @oedotme
- fix: use async buildStart hook functions (#148) 9baa170 by @timothympace closes #149
- chore: use specified version w/ explorer as of examples 0ef088d by @oedotme
- chore: remove unnecessary pnpm overrides config 0c93e08 by @oedotme
Changelog: v1.18.2...v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.1
v1.17.0
Breaking changes — Solid integration ONLY
@generouted/solid-router
v1.17.0
now requires using@solidjs/router
v0.10.1
<Outlet />
component was removed from@solidjs/router
, you'll need to use{props.children}
instead
// src/pages/_app.tsx
// import { Outlet } from '@solidjs/router'
import { ParentProps, Show } from 'solid-js'
export default function App(props: ParentProps) {
// return <main><Outlet /></main>
return <main>{props.children}</main>
}
// src/pages/posts/_layout.tsx
// import { Outlet } from '@solidjs/router'
import { ParentProps, Show } from 'solid-js'
export default function PostsLayout(props: ParentProps) {
// return <section><Outlet /></section>
return <section>{props.children}</section>
}
Commits
- chore: update packages 427548b by @oedotme
- feat!: upgrade to solid-router v0.10.1 d466ef2 by @oedotme
- chore: update packages 517febf by @oedotme
- chore: update packages fefae76 by @oedotme
Changelog: v1.16.1...v1.17.0
v1.16.1
v1.16.0
Changes
Breaking change for splat routes for @generouted/react-router
and @generouted/solid-router
.
For example /pages/posts/[...all].tsx
: /posts/*
:
- Now has
/posts/*
type instead of/posts/${string}
- Requires an '*' prop in the
Link
,useNavigate
, etcparams
props
Before
<Link to="/posts/catch-all">Catch-all</Link>
After
<Link to="/posts/*" params={{ '*': 'catch-all' }}>Catch-all</Link>
In general, this change allows accessing both dynamic and splat params from the type-safe useParams
hook.
Thanks @d0whc3r!
Commits
- chore: update packages 2bca6d0 by @oedotme
- feat!: add types for splat params (#127) 588aec0 by @d0whc3r
- docs: app → root at getting started to match create-vite 268aedd by @oedotme
Changelog: v1.15.9...v1.16.0