@remix-run/router 1.0.3-pre.1 → 1.0.4-pre.0
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 +13 -10
- package/dist/history.d.ts +3 -3
- package/dist/router.cjs.js +257 -166
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.d.ts +14 -2
- package/dist/router.js +257 -166
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +257 -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 +288 -183
- package/utils.ts +21 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
# `@remix-run/router`
|
|
2
2
|
|
|
3
|
-
## 1.0.
|
|
3
|
+
## 1.0.4-pre.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- Properly handle redirects to external domains ([#9590](https://github.com/remix-run/react-router/pull/9590))
|
|
8
|
+
- Preserve the HTTP method on 307/308 redirects ([#9597](https://github.com/remix-run/react-router/pull/9597))
|
|
9
|
+
- Support `basename` in static data routers ([#9591](https://github.com/remix-run/react-router/pull/9591))
|
|
10
|
+
- 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))
|
|
11
|
+
- Enhanced `ErrorResponse` bodies to contain more descriptive text in internal 403/404/405 scenarios ([#9511](https://github.com/remix-run/react-router/pull/9511))
|
|
9
12
|
|
|
10
|
-
## 1.0.3
|
|
13
|
+
## 1.0.3
|
|
11
14
|
|
|
12
15
|
### Patch Changes
|
|
13
16
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- fix encoding/matching issues with special chars ([#9477](https://github.com/remix-run/react-router/pull/9477))
|
|
17
|
-
- Ignore pathless layout routes when looking for proper submission `action` function ([#9455](https://github.com/remix-run/react-router/pull/9455))
|
|
17
|
+
- Fix hrefs generated when using `createHashRouter` ([#9409](https://github.com/remix-run/react-router/pull/9409))
|
|
18
|
+
- fix encoding/matching issues with special chars ([#9477](https://github.com/remix-run/react-router/pull/9477), [#9496](https://github.com/remix-run/react-router/pull/9496))
|
|
18
19
|
- Support `basename` and relative routing in `loader`/`action` redirects ([#9447](https://github.com/remix-run/react-router/pull/9447))
|
|
20
|
+
- Ignore pathless layout routes when looking for proper submission `action` function ([#9455](https://github.com/remix-run/react-router/pull/9455))
|
|
21
|
+
- properly support `index` routes with a `path` in `useResolvedPath` ([#9486](https://github.com/remix-run/react-router/pull/9486))
|
|
19
22
|
- Add UMD build for `@remix-run/router` ([#9446](https://github.com/remix-run/react-router/pull/9446))
|
|
20
|
-
-
|
|
21
|
-
-
|
|
23
|
+
- fix `createURL` in local file execution in Firefox ([#9464](https://github.com/remix-run/react-router/pull/9464))
|
|
24
|
+
- Updates to `unstable_createStaticHandler` for incorporating into Remix ([#9482](https://github.com/remix-run/react-router/pull/9482), [#9465](https://github.com/remix-run/react-router/pull/9465))
|
|
22
25
|
|
|
23
26
|
## 1.0.2
|
|
24
27
|
|
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
|