next-use-contextual-routing 3.0.2 → 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 +1 -6
  2. package/package.json +11 -18
package/README.md CHANGED
@@ -1,15 +1,10 @@
1
- # Next use contextual routing (deprecated)
1
+ # Next use contextual routing
2
2
 
3
- [![deprecated](http://badges.github.io/stability-badges/dist/deprecated.svg)](http://github.com/badges/stability-badges)
4
3
  [![Build status][ci-badge]][ci]
5
4
  [![Test coverage report][coveralls-badge]][coveralls]
6
5
  [![Npm version][npm-badge]][npm]
7
6
  [![Bundle size][bundlephobia-badge]][bundlephobia]
8
7
 
9
- ## This project is deprecated
10
-
11
- Next.js v13.3 introduced [Parallel Routes and Intercepting Routes](https://nextjs.org/blog/next-13-3#parallel-routes-and-interception) which can natively provide the same functionality of this library.
12
-
13
8
  ## Intro
14
9
 
15
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].
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.2",
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
  }