@tanstack/react-router 1.85.0 → 1.85.3
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/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/router.cjs +3 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/router.js +3 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +4 -4
- package/src/index.tsx +7 -1
- package/src/router.ts +2 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -60,6 +60,6 @@ export { notFound, isNotFound, CatchNotFound, DefaultGlobalNotFound, } from './n
|
|
|
60
60
|
export type { NotFoundError } from './not-found.cjs';
|
|
61
61
|
export type { Manifest, RouterManagedTag } from './manifest.cjs';
|
|
62
62
|
export { createControlledPromise } from './utils.cjs';
|
|
63
|
-
export type { ControlledPromise, Constrain, Expand, MergeAll } from './utils.cjs';
|
|
63
|
+
export type { ControlledPromise, Constrain, Expand, MergeAll, Assign, } from './utils.cjs';
|
|
64
64
|
export type { ResolveValidatorInput, ResolveValidatorOutput, AnyValidator, DefaultValidator, ValidatorFn, AnySchema, AnyValidatorAdapter, AnyValidatorFn, AnyValidatorObj, ResolveValidatorInputFn, ResolveValidatorOutputFn, ResolveSearchValidatorInput, ResolveSearchValidatorInputFn, Validator, ValidatorAdapter, ValidatorObj, } from './validators.cjs';
|
|
65
65
|
export { retainSearchParams, stripSearchParams } from './searchMiddleware.cjs';
|
package/dist/cjs/router.cjs
CHANGED
|
@@ -61,6 +61,7 @@ class Router {
|
|
|
61
61
|
this.subscribers = /* @__PURE__ */ new Set();
|
|
62
62
|
this.startReactTransition = (fn) => fn();
|
|
63
63
|
this.update = (newOptions) => {
|
|
64
|
+
var _a;
|
|
64
65
|
if (newOptions.notFoundRoute) {
|
|
65
66
|
console.warn(
|
|
66
67
|
"The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/guide/not-found-errors#migrating-from-notfoundroute for more info."
|
|
@@ -110,7 +111,8 @@ class Router {
|
|
|
110
111
|
}
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
|
-
if (typeof window !== "undefined" && "CSS" in window &&
|
|
114
|
+
if (typeof window !== "undefined" && "CSS" in window && // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
115
|
+
typeof ((_a = window.CSS) == null ? void 0 : _a.supports) === "function") {
|
|
114
116
|
this.isViewTransitionTypesSupported = window.CSS.supports(
|
|
115
117
|
"selector(:active-view-transition-type(a)"
|
|
116
118
|
);
|