Releases: yesmeck/safe-routes
Releases · yesmeck/safe-routes
v1.0.2
v1.0.1
v1.0.0
remix-routes
has been renamed to safe-routes
.
New features
- Basename is supported out of the box
Breaking changes
- The
$param
helper has been removed as ReactRouter v7 has provided typed params. - Arguments have been removed from the CLI. It runs according to the options set in the Vite plugin.
Upgrading from remix-routes
Update vite plugin
import { reactRouter } from '@react-router/dev/vite';
-import { remixRoutes } from 'remix/vite';
+import { safeRoutes } from 'safe-routes/vite';
import { defineConfig } from "vite";
import tsconfigPaths from 'vite-tsconfig-paths';
@@ -7,6 +7,6 @@ export default defineConfig({
plugins: [
reactRouter(),
tsconfigPaths(),
- remixRoutes(),
+ safeRoutes(),
],
});
Add safe-routes typegen
to the typecheck
script:
- "typecheck": "react-router typegen && tsc --build --noEmit"
+ "typecheck": "react-router typegen && safe-routes typegen && tsc --build --noEmit"