crossroad 3.0.3 → 3.0.4
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/package.json +11 -14
- package/readme.md +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crossroad",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "A React library to handle navigation easily in your WebApp",
|
|
5
5
|
"homepage": "https://crossroad.page/",
|
|
6
|
-
"repository": "
|
|
7
|
-
"bugs": "https://github.com/franciscop/crossroad/issues",
|
|
6
|
+
"repository": "github:franciscop/crossroad",
|
|
8
7
|
"funding": "https://www.paypal.me/franciscopresencia/19",
|
|
9
8
|
"author": "Francisco Presencia <public@francisco.io> (https://francisco.io/)",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"react",
|
|
12
|
+
"router",
|
|
13
|
+
"routing",
|
|
14
|
+
"javascript",
|
|
15
|
+
"hooks"
|
|
16
|
+
],
|
|
10
17
|
"documentation": {
|
|
11
18
|
"home": "assets/home.html",
|
|
12
19
|
"menu": {
|
|
@@ -16,7 +23,6 @@
|
|
|
16
23
|
"Github": "https://github.com/franciscop/crossroad"
|
|
17
24
|
}
|
|
18
25
|
},
|
|
19
|
-
"license": "MIT",
|
|
20
26
|
"scripts": {
|
|
21
27
|
"build": "tsc -p tsconfig.build.json && rollup -c",
|
|
22
28
|
"lint": "tsc",
|
|
@@ -24,13 +30,6 @@
|
|
|
24
30
|
"start": "jest --watch",
|
|
25
31
|
"test": "jest --coverage"
|
|
26
32
|
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"react",
|
|
29
|
-
"router",
|
|
30
|
-
"routing",
|
|
31
|
-
"javascript",
|
|
32
|
-
"hooks"
|
|
33
|
-
],
|
|
34
33
|
"main": "index.min.js",
|
|
35
34
|
"type": "module",
|
|
36
35
|
"types": "index.d.ts",
|
|
@@ -47,13 +46,11 @@
|
|
|
47
46
|
"@types/jest": "^30.0.0",
|
|
48
47
|
"@types/node": "^25.5.2",
|
|
49
48
|
"@types/react": "^18.3.4",
|
|
50
|
-
"babel-loader": "^10.1.1",
|
|
51
|
-
"babel-polyfill": "^6.26.0",
|
|
52
49
|
"jest": "^29.7.0",
|
|
53
50
|
"jest-environment-jsdom": "^29.7.0",
|
|
54
51
|
"react": "^18.3.1",
|
|
55
52
|
"react-dom": "^18.3.1",
|
|
56
|
-
"react-test": "^0.
|
|
53
|
+
"react-test": "^0.23.2",
|
|
57
54
|
"rollup": "^4.60.1",
|
|
58
55
|
"rollup-plugin-dts": "^6.4.1",
|
|
59
56
|
"typescript": "^6.0.2"
|
package/readme.md
CHANGED
|
@@ -6,7 +6,7 @@ A React library to handle navigation in your WebApp. Built with simple component
|
|
|
6
6
|
- Very useful hooks like [`useUrl`](#useurl), [`useQuery`](#usequery), etc. Follow [the rules of hooks](https://reactjs.org/docs/hooks-rules.html).
|
|
7
7
|
- Links are plain `<a>` instead of custom components. [Read more](#a).
|
|
8
8
|
- The `<Route>` path is `exact` by default and can match query parameters.
|
|
9
|
-
- It's [just ~1.
|
|
9
|
+
- It's [just ~1.8kb](https://bundlephobia.com/package/crossroad) (min+gzip) instead of the 17kb of React Router(+Dom).
|
|
10
10
|
- Add `scrollUp` to `<Router>` o `<Route>` to automatically scroll up on a route change.
|
|
11
11
|
|
|
12
12
|
[**🔗 Demo on CodeSandbox**](https://codesandbox.io/s/recursing-wozniak-uftyo?file=/src/App.js)
|