@remix-run/router 1.0.3 → 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,5 +1,15 @@
1
1
  # `@remix-run/router`
2
2
 
3
+ ## 1.0.4-pre.0
4
+
5
+ ### Patch Changes
6
+
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))
12
+
3
13
  ## 1.0.3
4
14
 
5
15
  ### 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/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