@real-router/helpers 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -203,8 +203,8 @@ startsWithSegment("route", ""); // false
203
203
  startsWithSegment(route, 'admin');
204
204
 
205
205
  // redirect removed — use guards:
206
- - router.canActivate('old', () => redirect('new'));
207
- + router.canActivate('old', (to, from, done) => {
206
+ - router.addActivateGuard('old', () => redirect('new'));
207
+ + router.addActivateGuard('old', (to, from, done) => {
208
208
  + done({ redirect: { name: 'new' } });
209
209
  + });
210
210
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/helpers",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "type": "commonjs",
5
5
  "description": "Helper utilities for comparing and checking routes",
6
6
  "main": "./dist/cjs/index.js",
@@ -39,7 +39,7 @@
39
39
  "homepage": "https://github.com/greydragon888/real-router",
40
40
  "sideEffects": false,
41
41
  "dependencies": {
42
- "@real-router/core": "^0.13.0"
42
+ "@real-router/core": "^0.15.0"
43
43
  },
44
44
  "scripts": {
45
45
  "test": "vitest",