react-router-dom 0.0.0-experimental-114cf0b7 → 0.0.0-experimental-e7ce8959
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/CHANGELOG.md +9 -0
- package/dist/index.js +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router-dom.development.js +1 -1
- package/dist/react-router-dom.production.min.js +1 -1
- package/dist/server.js +0 -4
- package/dist/server.mjs +0 -4
- package/dist/umd/react-router-dom.development.js +1 -1
- package/dist/umd/react-router-dom.production.min.js +1 -1
- package/package.json +3 -3
- package/server.js +0 -4
- package/server.mjs +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# `react-router-dom`
|
|
2
2
|
|
|
3
|
+
## 6.21.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix `NavLink` `isPending` when a `basename` is used ([#11195](https://github.com/remix-run/react-router/pull/11195))
|
|
8
|
+
- Remove leftover `unstable_` prefix from `Blocker`/`BlockerFunction` types ([#11187](https://github.com/remix-run/react-router/pull/11187))
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- `react-router@6.21.3`
|
|
11
|
+
|
|
3
12
|
## 6.21.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js
CHANGED
package/dist/main.js
CHANGED
package/dist/server.js
CHANGED
|
@@ -286,10 +286,6 @@ function createHref(to) {
|
|
|
286
286
|
}
|
|
287
287
|
function encodeLocation(to) {
|
|
288
288
|
let href = typeof to === "string" ? to : reactRouterDom.createPath(to);
|
|
289
|
-
// Treating this as a full URL will strip any trailing spaces so we need to
|
|
290
|
-
// pre-encode them since they might be part of a matching splat param from
|
|
291
|
-
// an ancestor route
|
|
292
|
-
href = href.replace(/ $/, "%20");
|
|
293
289
|
let encoded = ABSOLUTE_URL_REGEX.test(href) ? new URL(href) : new URL(href, "http://localhost");
|
|
294
290
|
return {
|
|
295
291
|
pathname: encoded.pathname,
|
package/dist/server.mjs
CHANGED
|
@@ -263,10 +263,6 @@ function createHref(to) {
|
|
|
263
263
|
}
|
|
264
264
|
function encodeLocation(to) {
|
|
265
265
|
let href = typeof to === "string" ? to : createPath(to);
|
|
266
|
-
// Treating this as a full URL will strip any trailing spaces so we need to
|
|
267
|
-
// pre-encode them since they might be part of a matching splat param from
|
|
268
|
-
// an ancestor route
|
|
269
|
-
href = href.replace(/ $/, "%20");
|
|
270
266
|
let encoded = ABSOLUTE_URL_REGEX.test(href) ? new URL(href) : new URL(href, "http://localhost");
|
|
271
267
|
return {
|
|
272
268
|
pathname: encoded.pathname,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-router-dom",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-e7ce8959",
|
|
4
4
|
"description": "Declarative routing for React web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"module": "./dist/index.js",
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remix-run/router": "0.0.0-experimental-
|
|
27
|
-
"react-router": "0.0.0-experimental-
|
|
26
|
+
"@remix-run/router": "0.0.0-experimental-e7ce8959",
|
|
27
|
+
"react-router": "0.0.0-experimental-e7ce8959"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "^18.2.0",
|
package/server.js
CHANGED
|
@@ -286,10 +286,6 @@ function createHref(to) {
|
|
|
286
286
|
}
|
|
287
287
|
function encodeLocation(to) {
|
|
288
288
|
let href = typeof to === "string" ? to : reactRouterDom.createPath(to);
|
|
289
|
-
// Treating this as a full URL will strip any trailing spaces so we need to
|
|
290
|
-
// pre-encode them since they might be part of a matching splat param from
|
|
291
|
-
// an ancestor route
|
|
292
|
-
href = href.replace(/ $/, "%20");
|
|
293
289
|
let encoded = ABSOLUTE_URL_REGEX.test(href) ? new URL(href) : new URL(href, "http://localhost");
|
|
294
290
|
return {
|
|
295
291
|
pathname: encoded.pathname,
|
package/server.mjs
CHANGED
|
@@ -263,10 +263,6 @@ function createHref(to) {
|
|
|
263
263
|
}
|
|
264
264
|
function encodeLocation(to) {
|
|
265
265
|
let href = typeof to === "string" ? to : createPath(to);
|
|
266
|
-
// Treating this as a full URL will strip any trailing spaces so we need to
|
|
267
|
-
// pre-encode them since they might be part of a matching splat param from
|
|
268
|
-
// an ancestor route
|
|
269
|
-
href = href.replace(/ $/, "%20");
|
|
270
266
|
let encoded = ABSOLUTE_URL_REGEX.test(href) ? new URL(href) : new URL(href, "http://localhost");
|
|
271
267
|
return {
|
|
272
268
|
pathname: encoded.pathname,
|