react-router-dom 7.0.0-pre.1 → 7.0.0-pre.3
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.d.mts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +45 -0
- package/dist/index.mjs +9 -3
- package/package.json +36 -7
- package/dist/index.mjs.map +0 -1
- package/dist/main.js +0 -19
- package/dist/react-router-dom.development.js +0 -12
- package/dist/react-router-dom.development.js.map +0 -1
- package/dist/react-router-dom.production.min.js +0 -12
- package/dist/react-router-dom.production.min.js.map +0 -1
- package/dist/umd/react-router-dom.development.js +0 -27
- package/dist/umd/react-router-dom.development.js.map +0 -1
- package/dist/umd/react-router-dom.production.min.js +0 -12
- package/dist/umd/react-router-dom.production.min.js.map +0 -1
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from
|
|
1
|
+
export { HydratedRouter, RouterProvider, RouterProviderProps } from 'react-router/dom';
|
|
2
|
+
export * from 'react-router';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-router-dom v7.0.0-pre.3
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
"use strict";
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// index.ts
|
|
32
|
+
var react_router_dom_exports = {};
|
|
33
|
+
__export(react_router_dom_exports, {
|
|
34
|
+
HydratedRouter: () => import_dom.HydratedRouter,
|
|
35
|
+
RouterProvider: () => import_dom.RouterProvider
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(react_router_dom_exports);
|
|
38
|
+
var import_dom = require("react-router/dom");
|
|
39
|
+
__reExport(react_router_dom_exports, require("react-router"), module.exports);
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
HydratedRouter,
|
|
43
|
+
RouterProvider,
|
|
44
|
+
...require("react-router")
|
|
45
|
+
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* react-router-dom v7.0.0-pre.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,5 +8,11 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
|
|
12
|
+
// index.ts
|
|
13
|
+
import { HydratedRouter, RouterProvider } from "react-router/dom";
|
|
14
|
+
export * from "react-router";
|
|
15
|
+
export {
|
|
16
|
+
HydratedRouter,
|
|
17
|
+
RouterProvider
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-router-dom",
|
|
3
|
-
"version": "7.0.0-pre.
|
|
3
|
+
"version": "7.0.0-pre.3",
|
|
4
4
|
"description": "Declarative routing for React web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -24,18 +24,44 @@
|
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
"node": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"module-sync": "./dist/index.mjs",
|
|
30
|
+
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
34
|
+
"default": "./dist/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"default": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"default": "./dist/index.js"
|
|
39
|
+
}
|
|
30
40
|
},
|
|
31
41
|
"./package.json": "./package.json"
|
|
32
42
|
},
|
|
43
|
+
"wireit": {
|
|
44
|
+
"build": {
|
|
45
|
+
"command": "tsup",
|
|
46
|
+
"files": [
|
|
47
|
+
"*.ts",
|
|
48
|
+
"tsconfig.json",
|
|
49
|
+
"package.json"
|
|
50
|
+
],
|
|
51
|
+
"output": [
|
|
52
|
+
"dist/**"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
33
56
|
"dependencies": {
|
|
34
|
-
"react-router": "7.0.0-pre.
|
|
57
|
+
"react-router": "7.0.0-pre.3"
|
|
35
58
|
},
|
|
36
59
|
"devDependencies": {
|
|
37
60
|
"react": "^18.2.0",
|
|
38
|
-
"react-dom": "^18.2.0"
|
|
61
|
+
"react-dom": "^18.2.0",
|
|
62
|
+
"tsup": "^8.3.0",
|
|
63
|
+
"typescript": "^5.1.6",
|
|
64
|
+
"wireit": "0.14.9"
|
|
39
65
|
},
|
|
40
66
|
"peerDependencies": {
|
|
41
67
|
"react": ">=18",
|
|
@@ -47,6 +73,9 @@
|
|
|
47
73
|
"README.md"
|
|
48
74
|
],
|
|
49
75
|
"engines": {
|
|
50
|
-
"node": ">=
|
|
76
|
+
"node": ">=20.0.0"
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build": "wireit"
|
|
51
80
|
}
|
|
52
81
|
}
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/main.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Router DOM v7.0.0-pre.1
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
/* eslint-env node */
|
|
14
|
-
|
|
15
|
-
if (process.env.NODE_ENV === "production") {
|
|
16
|
-
module.exports = require("./umd/react-router-dom.production.min.js");
|
|
17
|
-
} else {
|
|
18
|
-
module.exports = require("./umd/react-router-dom.development.js");
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Router DOM v7.0.0-pre.1
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
export * from 'react-router';
|
|
12
|
-
//# sourceMappingURL=react-router-dom.development.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-router-dom.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Router DOM v7.0.0-pre.1
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
export*from"react-router";
|
|
12
|
-
//# sourceMappingURL=react-router-dom.production.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-router-dom.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Router DOM v7.0.0-pre.1
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
(function (global, factory) {
|
|
12
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react-router')) :
|
|
13
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react-router'], factory) :
|
|
14
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactRouterDOM = {}, global.ReactRouter));
|
|
15
|
-
})(this, (function (exports, reactRouter) { 'use strict';
|
|
16
|
-
|
|
17
|
-
Object.keys(reactRouter).forEach(function (k) {
|
|
18
|
-
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return reactRouter[k]; }
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
25
|
-
|
|
26
|
-
}));
|
|
27
|
-
//# sourceMappingURL=react-router-dom.development.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-router-dom.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React Router v7.0.0-pre.1
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Remix Software Inc.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react-router")):"function"==typeof define&&define.amd?define(["exports","react-router"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRouterDOM={},e.ReactRouter)}(this,(function(e,t){"use strict";Object.keys(t).forEach((function(o){"default"===o||e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[o]}})})),Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
12
|
-
//# sourceMappingURL=react-router-dom.production.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-router-dom.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|