Skip to content

Releases: oedotme/generouted

v1.14.0

30 Jun 09:46
v1.14.0
75fc902
Compare
Choose a tag to compare

Changes

You can now export an app level error boundary Catch component from src/pages/_app.tsx with the following integrations:

  • @generouted/react-router, @generouted/react-router/lazy
// src/pages/_app.tsx

export const Catch = () => <div>...</div>
  • @generouted/solid-router, @generouted/solid-router/lazy
// src/pages/_app.tsx

export const Catch = (props: { error: Error; reset: () => void }) => <div>...</div>

Breaking changes 🚨

If you're using the generatePreservedRoutes directly from the core functions or through a custom integration you should now access the default export explicitly:

const preservedRoutes = generatePreservedRoutes(PRESERVED)

-const App = preservedRoutes?.['_app'] || Outlet
-const NotFound = preservedRoutes?.['404'] || Fragment
+const App = preservedRoutes?.['_app']?.default || Outlet
+const NotFound = preservedRoutes?.['404']?.default || Fragment

Commits

Changelog: v1.13.7...v1.14.0

v1.13.7

29 Jun 17:45
v1.13.7
53013b7
Compare
Choose a tag to compare

Changes

  • Setup issue template
  • Updated docs structure, content and conventions example
  • Add file-based Catch component with error boundary for Solid integrations
export const Catch = (props: { error: Error; reset: () => void }) => <div>...</div>

Commits

Changelog: v1.13.6...v1.13.7

v1.13.6

20 Jun 08:56
v1.13.6
b15cff5
Compare
Choose a tag to compare

Commits

Changelog: v1.13.5...v1.13.6

v1.13.5

20 Jun 07:41
v1.13.5
0aedada
Compare
Choose a tag to compare

Commits

Changelog: v1.13.4...v1.13.5

v1.13.4

17 Jun 22:02
v1.13.4
a104cc8
Compare
Choose a tag to compare

Commits

  • fix: forward search and hash to react-router link and navigate (#95) ebbb47f by @az33zy

Changelog: v1.13.3...v1.13.4

v1.13.3

13 Jun 13:19
v1.13.3
0a926f5
Compare
Choose a tag to compare

Commits

Changelog: v1.13.2...v1.13.3

v1.13.2

13 Jun 13:09
v1.13.2
5c4e629
Compare
Choose a tag to compare

Commits

Changelog: v1.13.1...v1.13.2

v1.13.1

05 Jun 16:55
v1.13.1
d6431ef
Compare
Choose a tag to compare

Commits

Changelog: v1.13.0...v1.13.1

v1.13.0

05 Jun 16:54
v1.13.0
3850bec
Compare
Choose a tag to compare

Changes

  • Support option for nested src/pages in nested directory such as client/src/pages or apps/dashboard/src/pages
  • Custom integration full example
  • Auto-format generated router.ts file with prettier by default if prettier is installed

Breaking changes at Vite plugin options

  • source is now an object instead of string to accept both routes and modals patterns
  • output is now the full output file path instead of only file name
// default values when using `generouted()` plugin with no options (recommended)
{
  source: { routes: './src/pages/**/[\\w[-]*.{jsx,tsx}', modals: './src/pages/**/[+]*.{jsx,tsx}' },
  output: './src/router.ts',
  format: true,
}

Commits

Changelog: v1.12.9...v1.13.0

v1.12.9

27 May 19:46
v1.12.9
1c3e965
Compare
Choose a tag to compare

Commits

Changelog: v1.12.8...v1.12.9