@xfe-repo/web-router 1.5.1 → 1.6.1
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/dist/index.js +1 -2
- package/dist/index.mjs +2 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -387,8 +387,7 @@ var import_react = require("react");
|
|
|
387
387
|
var import_react_router_dom = require("react-router-dom");
|
|
388
388
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
389
389
|
var Link = (0, import_react.memo)(function(props) {
|
|
390
|
-
var
|
|
391
|
-
var to = (0, import_react_router_dom.useHref)(originTo);
|
|
390
|
+
var to = props.to, children = props.children, preload = props.preload, replace = props.replace, className = props.className, target = props.target;
|
|
392
391
|
var _navigator2 = (0, import_react.useMemo)(function() {
|
|
393
392
|
return getClientNavigator();
|
|
394
393
|
}, []);
|
package/dist/index.mjs
CHANGED
|
@@ -278,11 +278,10 @@ function onHistoryChange(callback) {
|
|
|
278
278
|
export * from "react-router-dom";
|
|
279
279
|
// src/Link.tsx
|
|
280
280
|
import { memo, useMemo } from "react";
|
|
281
|
-
import { Link as OriginalLink
|
|
281
|
+
import { Link as OriginalLink } from "react-router-dom";
|
|
282
282
|
import { jsx } from "react/jsx-runtime";
|
|
283
283
|
var Link = memo(function(props) {
|
|
284
|
-
var
|
|
285
|
-
var to = useHref(originTo);
|
|
284
|
+
var to = props.to, children = props.children, preload = props.preload, replace = props.replace, className = props.className, target = props.target;
|
|
286
285
|
var _navigator2 = useMemo(function() {
|
|
287
286
|
return getClientNavigator();
|
|
288
287
|
}, []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/web-router",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@types/node": "^20.17.0",
|
|
30
30
|
"@types/react": "^18",
|
|
31
31
|
"eslint": "8.57.1",
|
|
32
|
-
"@xfe-repo/
|
|
33
|
-
"@xfe-repo/web-register": "1.
|
|
34
|
-
"@xfe-repo/
|
|
32
|
+
"@xfe-repo/eslint-config": "1.6.0",
|
|
33
|
+
"@xfe-repo/web-register": "1.6.0",
|
|
34
|
+
"@xfe-repo/typescript-config": "1.6.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@xfe-repo/web-utils": "1.
|
|
37
|
+
"@xfe-repo/web-utils": "1.6.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"build": "tsup",
|
|
44
44
|
"dev": "tsup --watch",
|
|
45
45
|
"lint": "eslint \"src/**/*.ts*\" --fix",
|
|
46
|
-
"clean": "rm -rf .turbo
|
|
46
|
+
"clean": "rm -rf .turbo coverage dist node_modules"
|
|
47
47
|
}
|
|
48
48
|
}
|