next-use-contextual-routing 3.1.0 → 3.2.0
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.
- package/README.md +5 -4
- package/package.json +13 -11
package/README.md
CHANGED
|
@@ -117,10 +117,11 @@ The path to return to to close contextual navigation.
|
|
|
117
117
|
|
|
118
118
|
## Next.js versions support
|
|
119
119
|
|
|
120
|
-
| Next use contextual routing | Next.js
|
|
121
|
-
| --------------------------- |
|
|
122
|
-
| v2.2.0 | v9.X -> v12.X
|
|
123
|
-
| v3.0.0
|
|
120
|
+
| Next use contextual routing | Next.js |
|
|
121
|
+
| --------------------------- | -------------- |
|
|
122
|
+
| v2.2.0 | v9.X -> v12.X |
|
|
123
|
+
| v3.0.0 | v13.X |
|
|
124
|
+
| v3.2.0 + | v13.X -> v14.X |
|
|
124
125
|
|
|
125
126
|
## Notes
|
|
126
127
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-use-contextual-routing",
|
|
3
3
|
"description": "Generate Next.js contextual routing paths",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -15,16 +15,18 @@
|
|
|
15
15
|
"preversion": "npm run prepare",
|
|
16
16
|
"version": "git add package.json",
|
|
17
17
|
"postversion": "git push && git push --tags",
|
|
18
|
-
"prepare": "npx simple-git-hooks && npm run
|
|
19
|
-
"test": "jest",
|
|
20
|
-
"test:source": "npm t -- --coverage",
|
|
18
|
+
"prepare": "npx simple-git-hooks && npm run source:check && npm run test && npm run build && npm run test:bundles",
|
|
19
|
+
"test": "jest --coverage",
|
|
21
20
|
"test:bundles": "es-check es5 --module './@(dist)/*.js'",
|
|
22
21
|
"tag": "node ./scripts/tag.js",
|
|
23
|
-
"
|
|
22
|
+
"prettier:check": "prettier . --check",
|
|
23
|
+
"prettier:fix": "npm run prettier:check -- --write",
|
|
24
|
+
"type:check": "tsc --noEmit",
|
|
25
|
+
"source:check": "npm run prettier:check && npm run type:check",
|
|
26
|
+
"source:fix": "npm run prettier:fix",
|
|
24
27
|
"start": "npm run demo:start",
|
|
25
28
|
"demo:start": "cd ./demo && next",
|
|
26
|
-
"demo:build": "npm run build && cd ./demo && BUILD_TARGET=github-pages next build &&
|
|
27
|
-
"demo:deploy": "npm run demo:build && touch demo/out/.nojekyll && gh-pages -d demo/out --dotfiles"
|
|
29
|
+
"demo:build": "npm run build && cd ./demo && BUILD_TARGET=github-pages next build && touch ./out/.nojekyll"
|
|
28
30
|
},
|
|
29
31
|
"keywords": [
|
|
30
32
|
"next",
|
|
@@ -51,10 +53,10 @@
|
|
|
51
53
|
"@types/jest": "^29.2.3",
|
|
52
54
|
"@types/react": "^18.0.25",
|
|
53
55
|
"es-check": "^7.2.1",
|
|
54
|
-
"gh-pages": "^3.1.0",
|
|
55
56
|
"jest": "^29.3.1",
|
|
56
57
|
"jest-environment-jsdom": "^29.3.1",
|
|
57
|
-
"next": "^
|
|
58
|
+
"next": "^14.2.4",
|
|
59
|
+
"next-13": "npm:next@^13.5.6",
|
|
58
60
|
"prettier": "^3.3.2",
|
|
59
61
|
"react": "^18.2.0",
|
|
60
62
|
"react-dom": "^18.2.0",
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
"typescript": "^5.5.3"
|
|
66
68
|
},
|
|
67
69
|
"peerDependencies": {
|
|
68
|
-
"next": "^13.0.0",
|
|
70
|
+
"next": "^13.0.0 | ^14.0.0",
|
|
69
71
|
"react": ">=18.0.0"
|
|
70
72
|
},
|
|
71
73
|
"jest": {
|
|
@@ -83,6 +85,6 @@
|
|
|
83
85
|
"testEnvironment": "jsdom"
|
|
84
86
|
},
|
|
85
87
|
"simple-git-hooks": {
|
|
86
|
-
"pre-commit": "npm run test
|
|
88
|
+
"pre-commit": "npm run source:check && npm run test"
|
|
87
89
|
}
|
|
88
90
|
}
|