@tanstack/react-router-ssr-query 1.166.8 → 1.166.10

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.
@@ -1,18 +1,21 @@
1
- "use strict";
2
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const react = require("react");
5
- const reactQuery = require("@tanstack/react-query");
6
- const routerSsrQueryCore = require("@tanstack/router-ssr-query-core");
2
+ let react = require("react");
3
+ let _tanstack_react_query = require("@tanstack/react-query");
4
+ let _tanstack_router_ssr_query_core = require("@tanstack/router-ssr-query-core");
5
+ let react_jsx_runtime = require("react/jsx-runtime");
6
+ //#region src/index.tsx
7
7
  function setupRouterSsrQueryIntegration(opts) {
8
- routerSsrQueryCore.setupCoreRouterSsrQueryIntegration(opts);
9
- if (opts.wrapQueryClient === false) {
10
- return;
11
- }
12
- const OGWrap = opts.router.options.Wrap || react.Fragment;
13
- opts.router.options.Wrap = ({ children }) => {
14
- return /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: opts.queryClient, children: /* @__PURE__ */ jsxRuntime.jsx(OGWrap, { children }) });
15
- };
8
+ (0, _tanstack_router_ssr_query_core.setupCoreRouterSsrQueryIntegration)(opts);
9
+ if (opts.wrapQueryClient === false) return;
10
+ const OGWrap = opts.router.options.Wrap || react.Fragment;
11
+ opts.router.options.Wrap = ({ children }) => {
12
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tanstack_react_query.QueryClientProvider, {
13
+ client: opts.queryClient,
14
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OGWrap, { children })
15
+ });
16
+ };
16
17
  }
18
+ //#endregion
17
19
  exports.setupRouterSsrQueryIntegration = setupRouterSsrQueryIntegration;
18
- //# sourceMappingURL=index.cjs.map
20
+
21
+ //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"names":["setupCoreRouterSsrQueryIntegration","Fragment","jsx","QueryClientProvider"],"mappings":";;;;;;AAWO,SAAS,+BACd,MACA;AACAA,qBAAAA,mCAAmC,IAAI;AAEvC,MAAI,KAAK,oBAAoB,OAAO;AAClC;AAAA,EACF;AACA,QAAM,SAAS,KAAK,OAAO,QAAQ,QAAQC,MAAAA;AAE3C,OAAK,OAAO,QAAQ,OAAO,CAAC,EAAE,eAAe;AAC3C,WACEC,+BAACC,WAAAA,uBAAoB,QAAQ,KAAK,aAChC,UAAAD,2BAAAA,IAAC,QAAA,EAAQ,UAAS,EAAA,CACpB;AAAA,EAEJ;AACF;;"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"mappings":";;;;;;AAWA,SAAgB,+BACd,MACA;AACA,EAAA,GAAA,gCAAA,oCAAmC,KAAK;AAExC,KAAI,KAAK,oBAAoB,MAC3B;CAEF,MAAM,SAAS,KAAK,OAAO,QAAQ,QAAQ,MAAA;AAE3C,MAAK,OAAO,QAAQ,QAAQ,EAAE,eAAe;AAC3C,SACE,iBAAA,GAAA,kBAAA,KAAC,sBAAA,qBAAD;GAAqB,QAAQ,KAAK;aAChC,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAS,UAAkB,CAAA;GACP,CAAA"}
package/dist/esm/index.js CHANGED
@@ -1,18 +1,20 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  import { Fragment } from "react";
3
2
  import { QueryClientProvider } from "@tanstack/react-query";
4
3
  import { setupCoreRouterSsrQueryIntegration } from "@tanstack/router-ssr-query-core";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/index.tsx
5
6
  function setupRouterSsrQueryIntegration(opts) {
6
- setupCoreRouterSsrQueryIntegration(opts);
7
- if (opts.wrapQueryClient === false) {
8
- return;
9
- }
10
- const OGWrap = opts.router.options.Wrap || Fragment;
11
- opts.router.options.Wrap = ({ children }) => {
12
- return /* @__PURE__ */ jsx(QueryClientProvider, { client: opts.queryClient, children: /* @__PURE__ */ jsx(OGWrap, { children }) });
13
- };
7
+ setupCoreRouterSsrQueryIntegration(opts);
8
+ if (opts.wrapQueryClient === false) return;
9
+ const OGWrap = opts.router.options.Wrap || Fragment;
10
+ opts.router.options.Wrap = ({ children }) => {
11
+ return /* @__PURE__ */ jsx(QueryClientProvider, {
12
+ client: opts.queryClient,
13
+ children: /* @__PURE__ */ jsx(OGWrap, { children })
14
+ });
15
+ };
14
16
  }
15
- export {
16
- setupRouterSsrQueryIntegration
17
- };
18
- //# sourceMappingURL=index.js.map
17
+ //#endregion
18
+ export { setupRouterSsrQueryIntegration };
19
+
20
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"names":[],"mappings":";;;;AAWO,SAAS,+BACd,MACA;AACA,qCAAmC,IAAI;AAEvC,MAAI,KAAK,oBAAoB,OAAO;AAClC;AAAA,EACF;AACA,QAAM,SAAS,KAAK,OAAO,QAAQ,QAAQ;AAE3C,OAAK,OAAO,QAAQ,OAAO,CAAC,EAAE,eAAe;AAC3C,WACE,oBAAC,uBAAoB,QAAQ,KAAK,aAChC,UAAA,oBAAC,QAAA,EAAQ,UAAS,EAAA,CACpB;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index.tsx"],"sourcesContent":["import { Fragment } from 'react'\nimport { QueryClientProvider } from '@tanstack/react-query'\nimport { setupCoreRouterSsrQueryIntegration } from '@tanstack/router-ssr-query-core'\nimport type { RouterSsrQueryOptions } from '@tanstack/router-ssr-query-core'\nimport type { AnyRouter } from '@tanstack/react-router'\n\nexport type Options<TRouter extends AnyRouter> =\n RouterSsrQueryOptions<TRouter> & {\n wrapQueryClient?: boolean\n }\n\nexport function setupRouterSsrQueryIntegration<TRouter extends AnyRouter>(\n opts: Options<TRouter>,\n) {\n setupCoreRouterSsrQueryIntegration(opts)\n\n if (opts.wrapQueryClient === false) {\n return\n }\n const OGWrap = opts.router.options.Wrap || Fragment\n\n opts.router.options.Wrap = ({ children }) => {\n return (\n <QueryClientProvider client={opts.queryClient}>\n <OGWrap>{children}</OGWrap>\n </QueryClientProvider>\n )\n }\n}\n"],"mappings":";;;;;AAWA,SAAgB,+BACd,MACA;AACA,oCAAmC,KAAK;AAExC,KAAI,KAAK,oBAAoB,MAC3B;CAEF,MAAM,SAAS,KAAK,OAAO,QAAQ,QAAQ;AAE3C,MAAK,OAAO,QAAQ,QAAQ,EAAE,eAAe;AAC3C,SACE,oBAAC,qBAAD;GAAqB,QAAQ,KAAK;aAChC,oBAAC,QAAD,EAAS,UAAkB,CAAA;GACP,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-router-ssr-query",
3
- "version": "1.166.8",
3
+ "version": "1.166.10",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "node": ">=20.19"
50
50
  },
51
51
  "dependencies": {
52
- "@tanstack/router-ssr-query-core": "1.166.8"
52
+ "@tanstack/router-ssr-query-core": "1.167.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@vitejs/plugin-react": "^4.3.4",
@@ -57,7 +57,7 @@
57
57
  "react-dom": ">=19",
58
58
  "@tanstack/react-query": ">=5.90.0",
59
59
  "vite": "*",
60
- "@tanstack/react-router": "1.167.1"
60
+ "@tanstack/react-router": "1.168.0"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "react": ">=18.0.0 || >=19.0.0",