@tanstack/react-router 1.85.0 → 1.85.2

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.
@@ -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 && typeof window.CSS.supports === "function") {
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
  );