next-use-contextual-routing 3.0.1 → 3.1.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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +11 -18
package/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
  [![Npm version][npm-badge]][npm]
6
6
  [![Bundle size][bundlephobia-badge]][bundlephobia]
7
7
 
8
+ ## Intro
9
+
8
10
  React hook that generates round trip hrefs to enable [contextual routing][next-docs-contextual-routing] for [Next.js][next]. Take a look to the [demo 👈][demo].
9
11
 
10
12
  [![Contextual routing in action](https://j.gifs.com/jZ37mz.gif)](https://www.youtube.com/watch?v=4NR2uOBsIu4)
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.0.1",
4
+ "version": "3.1.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -15,10 +15,11 @@
15
15
  "preversion": "npm run prepare",
16
16
  "version": "git add package.json",
17
17
  "postversion": "git push && git push --tags",
18
- "prepare": "npm run test:source && npm run build && npm run test:bundles",
18
+ "prepare": "npx simple-git-hooks && npm run test:source && npm run build && npm run test:bundles",
19
19
  "test": "jest",
20
20
  "test:source": "npm t -- --coverage",
21
21
  "test:bundles": "es-check es5 --module './@(dist)/*.js'",
22
+ "tag": "node ./scripts/tag.js",
22
23
  "format": "prettier --write \"**/*.{js,json,md}\"",
23
24
  "start": "npm run demo:start",
24
25
  "demo:start": "cd ./demo && next",
@@ -45,23 +46,23 @@
45
46
  "qs-stringify": "^1.2.1"
46
47
  },
47
48
  "devDependencies": {
48
- "@testing-library/react": "^13.4.0",
49
+ "@changesets/cli": "^2.27.7",
50
+ "@testing-library/react": "^16.0.0",
49
51
  "@types/jest": "^29.2.3",
50
52
  "@types/react": "^18.0.25",
51
- "es-check": "^5.1.1",
53
+ "es-check": "^7.2.1",
52
54
  "gh-pages": "^3.1.0",
53
- "husky": "^4.0.0",
54
55
  "jest": "^29.3.1",
55
56
  "jest-environment-jsdom": "^29.3.1",
56
- "lint-staged": "^10.0.0",
57
57
  "next": "^13.0.5",
58
- "prettier": "^2.0.0",
58
+ "prettier": "^3.3.2",
59
59
  "react": "^18.2.0",
60
60
  "react-dom": "^18.2.0",
61
61
  "react-modal": "^3.16.1",
62
62
  "react-test-renderer": "^18.2.0",
63
+ "simple-git-hooks": "^2.11.1",
63
64
  "ts-jest": "^29.0.3",
64
- "typescript": "^4.9.3"
65
+ "typescript": "^5.5.3"
65
66
  },
66
67
  "peerDependencies": {
67
68
  "next": "^13.0.0",
@@ -81,15 +82,7 @@
81
82
  ],
82
83
  "testEnvironment": "jsdom"
83
84
  },
84
- "husky": {
85
- "hooks": {
86
- "pre-commit": "lint-staged"
87
- }
88
- },
89
- "lint-staged": {
90
- "**/*.{js,json,ts,md}": [
91
- "prettier",
92
- "npm t -- ."
93
- ]
85
+ "simple-git-hooks": {
86
+ "pre-commit": "npm run test:source"
94
87
  }
95
88
  }