@remix-run/router 1.0.3 → 1.0.4-pre.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/CHANGELOG.md +16 -0
- package/dist/history.d.ts +3 -3
- package/dist/router.cjs.js +262 -166
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.d.ts +14 -2
- package/dist/router.js +262 -166
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +262 -166
- package/dist/router.umd.js.map +1 -1
- package/dist/router.umd.min.js +2 -2
- package/dist/router.umd.min.js.map +1 -1
- package/dist/utils.d.ts +7 -3
- package/history.ts +12 -8
- package/package.json +1 -1
- package/router.ts +292 -183
- package/utils.ts +21 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# `@remix-run/router`
|
|
2
2
|
|
|
3
|
+
## 1.0.4-pre.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Respect `replace` behavior on external redirects ([#9654](https://github.com/remix-run/react-router/pull/9654))
|
|
8
|
+
|
|
9
|
+
## 1.0.4-pre.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Properly handle redirects to external domains ([#9590](https://github.com/remix-run/react-router/pull/9590))
|
|
14
|
+
- Preserve the HTTP method on 307/308 redirects ([#9597](https://github.com/remix-run/react-router/pull/9597))
|
|
15
|
+
- Support `basename` in static data routers ([#9591](https://github.com/remix-run/react-router/pull/9591))
|
|
16
|
+
- Throw an error if an `action`/`loader` function returns `undefined` as revalidations need to know whether the loader has previously been executed. `undefined` also causes issues during SSR stringification for hydration. You should always ensure your `loader`/`action` return a value, and you may return `null` if you don't wish to return anything. ([#9511](https://github.com/remix-run/react-router/pull/9511))
|
|
17
|
+
- Enhanced `ErrorResponse` bodies to contain more descriptive text in internal 403/404/405 scenarios ([#9511](https://github.com/remix-run/react-router/pull/9511))
|
|
18
|
+
|
|
3
19
|
## 1.0.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/history.d.ts
CHANGED
|
@@ -108,12 +108,12 @@ export interface History {
|
|
|
108
108
|
createHref(to: To): string;
|
|
109
109
|
/**
|
|
110
110
|
* Encode a location the same way window.history would do (no-op for memory
|
|
111
|
-
* history) so we ensure our PUSH/
|
|
111
|
+
* history) so we ensure our PUSH/REPLACE navigations for data routers
|
|
112
112
|
* behave the same as POP
|
|
113
113
|
*
|
|
114
|
-
* @param
|
|
114
|
+
* @param to Unencoded path
|
|
115
115
|
*/
|
|
116
|
-
encodeLocation(
|
|
116
|
+
encodeLocation(to: To): Path;
|
|
117
117
|
/**
|
|
118
118
|
* Pushes a new location onto the history stack, increasing its length by one.
|
|
119
119
|
* If there were any entries in the stack after the current one, they are
|