@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 CHANGED
@@ -1,24 +1,27 @@
1
1
  # `@remix-run/router`
2
2
 
3
- ## 1.0.3-pre.1
3
+ ## 1.0.4-pre.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - fix `createURL` in local file execution in Firefox ([#9464](https://github.com/remix-run/react-router/pull/9464))
8
- - make url-encoding history-aware ([#9496](https://github.com/remix-run/react-router/pull/9496))
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-pre.0
13
+ ## 1.0.3
11
14
 
12
15
  ### Patch Changes
13
16
 
14
- - properly support `index` routes with a path in `useResolvedPath` ([#9486](https://github.com/remix-run/react-router/pull/9486))
15
- - Fix hrefs generated for `createHashRouter` ([#9409](https://github.com/remix-run/react-router/pull/9409))
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
- - Clean up response APIs for `unstable_createStaticHandler` `queryRoute` ([#9465](https://github.com/remix-run/react-router/pull/9465))
21
- - Changes to static handler for incorporating into Remix ([#9482](https://github.com/remix-run/react-router/pull/9482))
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/REPLAC e navigations for data routers
111
+ * history) so we ensure our PUSH/REPLACE navigations for data routers
112
112
  * behave the same as POP
113
113
  *
114
- * @param location The incoming location from router.navigate()
114
+ * @param to Unencoded path
115
115
  */
116
- encodeLocation(location: Location): Location;
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