next-use-contextual-routing 3.0.0 → 3.0.2

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 CHANGED
@@ -1,10 +1,17 @@
1
- # Next use contextual routing
1
+ # Next use contextual routing (deprecated)
2
2
 
3
+ [![deprecated](http://badges.github.io/stability-badges/dist/deprecated.svg)](http://github.com/badges/stability-badges)
3
4
  [![Build status][ci-badge]][ci]
4
5
  [![Test coverage report][coveralls-badge]][coveralls]
5
6
  [![Npm version][npm-badge]][npm]
6
7
  [![Bundle size][bundlephobia-badge]][bundlephobia]
7
8
 
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
+ ## Intro
14
+
8
15
  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
16
 
10
17
  [![Contextual routing in action](https://j.gifs.com/jZ37mz.gif)](https://www.youtube.com/watch?v=4NR2uOBsIu4)
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useCallback } from 'react';
2
- import { useRouter } from 'next/router';
2
+ import { useRouter } from 'next/router.js';
3
3
  import stringify from 'qs-stringify';
4
4
  export var RETURN_HREF_QUERY_PARAM = '_UCR_return_href';
5
5
  /**
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "next-use-contextual-routing",
3
3
  "description": "Generate Next.js contextual routing paths",
4
- "version": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "type": "module",
8
9
  "files": [
9
10
  "dist"
10
11
  ],