Skip to content

Releases: yesmeck/safe-routes

v1.0.2

11 Dec 18:29
ab16639
Compare
Choose a tag to compare

1.0.2 (2024-12-11)

Bug Fixes

v1.0.1

11 Dec 17:41
c40ca54
Compare
Choose a tag to compare

1.0.1 (2024-12-11)

Bug Fixes

v1.0.0

27 Nov 17:03
v1.0.0
30f5e24
Compare
Choose a tag to compare

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"

v0.5.1

16 Oct 11:56
9cb47cf
Compare
Choose a tag to compare

0.5.1 (2022-10-16)

Bug Fixes

  • support multiple remix projects in one monorepo (#21) (9cb47cf), closes #20

v0.5.0

09 Sep 12:59
cb4d54f
Compare
Choose a tag to compare

0.5.0 (2022-09-09)

Features

  • support URLSearchParams init as param (#18) (cb4d54f), closes #17

v0.4.2

17 Aug 09:57
ae3dce7
Compare
Choose a tag to compare

0.4.2 (2022-08-17)

Bug Fixes

v0.4.1

23 Jul 12:30
8247d12
Compare
Choose a tag to compare

0.4.1 (2022-07-23)

Bug Fixes

v0.4.0

12 Jul 12:09
295d8b8
Compare
Choose a tag to compare

0.4.0 (2022-07-12)

Features

v0.3.0

12 Jul 11:19
Compare
Choose a tag to compare

0.3.0 (2022-07-12)

Features

  • support new remix version (2c0af4a)

v0.2.0

12 Jul 11:02
92d679a
Compare
Choose a tag to compare

0.2.0 (2022-07-12)

Features