generouted

Generated file-based routes for Vite

MIT License

Downloads
140.9K
Stars
1K
Committers
20

Bot releases are hidden (Show)

generouted - v1.12.8

Published by oedotme over 1 year ago

Commits

  • feat: avoid props destructuring for solid components 9045fc3 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.7...v1.12.8

generouted - v1.12.7

Published by oedotme over 1 year ago

Commits

  • chore: update pre-release build script 1a1b7fa by @oedotme
  • chore: update packages 16de76a by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.6...v1.12.7

generouted - v1.12.6

Published by oedotme over 1 year ago

Commits

  • chore: add turbo 4cfa179 by @oedotme
  • chore: update packages 8307d1a by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.5...v1.12.6

generouted - v1.12.5

Published by oedotme over 1 year ago

Commits

  • feat: add / path for solid pathless layout groups 377b4c4 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.4...v1.12.5

generouted - v1.12.4

Published by oedotme over 1 year ago

Commits

  • chore: update explorer file matching pattern 178de4e by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.3...v1.12.4

generouted - v1.12.3

Published by oedotme over 1 year ago

Changes

New generouted explorer - interactive playground for file-based routing.

You can run it online via StackBlitz

Open in StackBlitz

Commits

  • chore: add generouted explorer 89d9435 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.2...v1.12.3

generouted - v1.12.1

Published by oedotme over 1 year ago

Commits

  • chore: add pre-release script to the main package 94fec8d by @oedotme
  • feat: export core from bundled integrations bb218aa by @oedotme
  • chore: open examples in stackblitz 94b17a4 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.0...v1.12.1

generouted - v1.12.2

Published by oedotme over 1 year ago

Commits

  • chore: add react router example readme 991180b by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.12.1...v1.12.2

generouted - v1.12.0

Published by oedotme over 1 year ago

Changes

The integrations updated are generouted/react-router and generouted/solid-router. Now each integration is bundled and exported via its package namespace that was used originally only for the plugin and internal client exports.

Upgrading

The setup should be easier now, only one package to install and use @generouted/react-router or @generouted/solid-router. Installing the generouted package manually is no longer necessary:

-pnpm add @generouted/react-router generouted react-router-dom
+pnpm add @generouted/react-router react-router-dom

The plugin is now accessible via /plugin and the Routes via the package index:

-import generouted from '@generouted/react-router'
+import generouted from '@generouted/react-router/plugin'

-import { Routes } from 'generouted/react-router'
+import { Routes } from '@generouted/react-router'

Same applies to the @generouted/solid-router integration.

Commits

  • feat!: update some integrations packaging/bundling 7419745 by @oedotme closes #81, #72

Changelog: https://github.com/oedotme/generouted/compare/v1.11.7...v1.12.0

generouted - v1.11.7

Published by oedotme over 1 year ago

Commits

  • chore: update packages 0a99442 by @oedotme
  • feat: optional at prop for modal hooks 1f13e45 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.11.6...v1.11.7

generouted - v1.11.6

Published by oedotme over 1 year ago

Changes

generouted/react-router-lazy integration is now using React Router's new lazy API + Component/ErrorBoundary which is now used also in generouted/react-router.

The new lazy API replaces the manual use of React.lazy and React.Suspense w/ fallback={null}which was causing a page flash while loading the page module, the page transition seems to work fine now.

Commits

  • chore: update packages 61e8a99 by @oedotme
  • feat: use react-router lazy w/ the new props 05f3db2 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.11.5...v1.11.6

generouted - v1.11.5

Published by oedotme over 1 year ago

Commits

  • feat: export plugins' generated types 815a14e by @oedotme
  • chore: update packages 7a8b305 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.11.4...v1.11.5

generouted - v1.11.4

Published by oedotme over 1 year ago

Commits

  • feat: user option to override plugins glob source f145093 by @oedotme in #76

Changelog: https://github.com/oedotme/generouted/compare/v1.11.3...v1.11.4

generouted - v1.11.3

Published by oedotme over 1 year ago

Commits

  • feat: exclude ignored paths from generated paths a237b18 by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.11.2...v1.11.3

generouted - v1.11.2

Published by oedotme over 1 year ago

Changes

Type-safe file-based global modals for Solid Router that works with the current generouted conventions

You can create a modal by prefixing a route file-name with + within src/pages/**, think of it as an extra route -- as the modal overlays the current route: src/pages/+login.tsx or src/pages/checkout/+step-1.tsx

Why

  • Type-safe modal opening with the current type-safe navigation
  • Makes it super easy for multi-step modals navigation
  • Persistent modal opening on refresh
  • Works with back/forward actions, can be avoided with { replace: true }

API

  • useModals can be used to navigate to a modal and it's exported from routes.gen.tsx. The hook returns two methods, modals.open(path, options?) and modals.close(options?)

options is the same Solid Router useNavigate > navigate options, with an optional at prop added to navigate to another route (that's also type-safe!) while opening/closing a modal.

Check out the plugin readme for getting started and usage examples.

Commits

  • docs: reference solid router navigate options f029d77 by @oedotme
  • feat: solid type-safe global modals e42f4be by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.11.1...v1.11.2

generouted - v1.11.1

Published by oedotme over 1 year ago

Commits

  • chore: update packages d5e2511 by @oedotme
  • docs: update new labels 0df3cf7 by @oedotme
  • fix: typo rediect → redirect 5f49646 by @oedotme closes #68

Changelog: https://github.com/oedotme/generouted/compare/v1.11.0...v1.11.1

generouted - v1.11.0

Published by oedotme over 1 year ago

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: https://github.com/oedotme/generouted/compare/v1.10.0...v1.11.0

generouted - v1.10.0

Published by oedotme over 1 year ago

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: https://github.com/oedotme/generouted/compare/v1.9.0...v1.10.0

generouted - v1.9.0

Published by oedotme over 1 year ago

Changes

React Router plugin generates now only types and type-safe components/hooks/utils:

  • Removed src/routes.gen.tsx and added src/router.ts
  • Use Routes from generouted/react-router instead of src/routes.gen.tsx
  • Use type-safe components, etc. from src/router.ts instead of src/routes.gen.tsx
  • Use Modals from generouted/react-router instead of src/routes.gen.tsx
  • Use useModals from src/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: https://github.com/oedotme/generouted/compare/v1.8.0...v1.9.0

generouted - v1.8.0

Published by oedotme over 1 year ago

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

  • feat: type-safe router-powered global modals 0f3abec by @oedotme

Changelog: https://github.com/oedotme/generouted/compare/v1.7.20...v1.8.0