@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.
@@ -59,6 +59,7 @@ class Router {
59
59
  this.subscribers = /* @__PURE__ */ new Set();
60
60
  this.startReactTransition = (fn) => fn();
61
61
  this.update = (newOptions) => {
62
+ var _a;
62
63
  if (newOptions.notFoundRoute) {
63
64
  console.warn(
64
65
  "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."
@@ -108,7 +109,8 @@ class Router {
108
109
  }
109
110
  });
110
111
  }
111
- if (typeof window !== "undefined" && "CSS" in window && typeof window.CSS.supports === "function") {
112
+ if (typeof window !== "undefined" && "CSS" in window && // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
113
+ typeof ((_a = window.CSS) == null ? void 0 : _a.supports) === "function") {
112
114
  this.isViewTransitionTypesSupported = window.CSS.supports(
113
115
  "selector(:active-view-transition-type(a)"
114
116
  );