@cedarjs/prerender 6.0.0-canary.2663 → 6.0.0-canary.2664

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 +1 @@
1
- {"version":3,"file":"runPrerender.d.ts","sourceRoot":"","sources":["../../src/runPrerender.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAsO7C,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAU,6BAGhC,eAAe,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAkIzC,CAAA;AAGD,eAAO,MAAM,wBAAwB,GACnC,gBAAgB,MAAM,EACtB,SAAS,MAAM,SAchB,CAAA"}
1
+ {"version":3,"file":"runPrerender.d.ts","sourceRoot":"","sources":["../../src/runPrerender.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAwO7C,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAU,6BAGhC,eAAe,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAkIzC,CAAA;AAGD,eAAO,MAAM,wBAAwB,GACnC,gBAAgB,MAAM,EACtB,SAAS,MAAM,SAchB,CAAA"}
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(runPrerender_exports);
35
35
  var import_node_fs = __toESM(require("node:fs"), 1);
36
36
  var import_node_path = __toESM(require("node:path"), 1);
37
37
  var import_react = __toESM(require("react"), 1);
38
- var apolloClient = __toESM(require("@apollo/client"), 1);
38
+ var import_client = require("@apollo/client");
39
39
  var import_cheerio = require("cheerio");
40
40
  var import_server = __toESM(require("react-dom/server"), 1);
41
41
  var import_babel_config = require("@cedarjs/babel-config");
@@ -48,8 +48,10 @@ var import_detection = require("./detection/detection.js");
48
48
  var import_errors = require("./errors.js");
49
49
  var import_graphql = require("./graphql/graphql.js");
50
50
  var import_internal = require("./internal.js");
51
- const { ApolloClient, InMemoryCache } = apolloClient.default || apolloClient;
52
- const prerenderApolloClient = new ApolloClient({ cache: new InMemoryCache() });
51
+ const prerenderApolloClient = new import_client.ApolloClient({
52
+ cache: new import_client.InMemoryCache(),
53
+ link: import_client.ApolloLink.empty()
54
+ });
53
55
  async function recursivelyRender(App, Routes, renderPath, fileImporter, gqlHandler, queryCache) {
54
56
  const { CellCacheContextProvider, getOperationName } = require("@cedarjs/web");
55
57
  let shouldShowGraphqlHandlerNotFoundWarn = false;
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(runPrerenderEsm_exports);
35
35
  var import_node_fs = __toESM(require("node:fs"), 1);
36
36
  var import_node_path = __toESM(require("node:path"), 1);
37
37
  var import_react = __toESM(require("react"), 1);
38
- var apolloClient = __toESM(require("@apollo/client"), 1);
38
+ var import_client = require("@apollo/client");
39
39
  var import_cheerio = require("cheerio");
40
40
  var import_server = __toESM(require("react-dom/server"), 1);
41
41
  var import_project_config = require("@cedarjs/project-config");
@@ -46,8 +46,10 @@ var import_errors = require("./errors.js");
46
46
  var import_graphql = require("./graphql/graphql.js");
47
47
  var import_node_runner = require("./graphql/node-runner.js");
48
48
  var import_internal = require("./internal.js");
49
- const { ApolloClient, InMemoryCache } = apolloClient.default;
50
- const prerenderApolloClient = new ApolloClient({ cache: new InMemoryCache() });
49
+ const prerenderApolloClient = new import_client.ApolloClient({
50
+ cache: new import_client.InMemoryCache(),
51
+ link: import_client.ApolloLink.empty()
52
+ });
51
53
  async function recursivelyRender(App, Routes, CellCacheContextProvider, LocationProvider, renderPath, fileImporter, gqlHandler, queryCache) {
52
54
  const { getOperationName } = await import("@cedarjs/web");
53
55
  let shouldShowGraphqlHandlerNotFoundWarn = false;
@@ -1 +1 @@
1
- {"version":3,"file":"runPrerenderEsm.d.ts","sourceRoot":"","sources":["../src/runPrerenderEsm.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAoQ7C,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAU,6BAGhC,eAAe,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAwHzC,CAAA;AAGD,eAAO,MAAM,wBAAwB,GACnC,gBAAgB,MAAM,EACtB,SAAS,MAAM,SAchB,CAAA"}
1
+ {"version":3,"file":"runPrerenderEsm.d.ts","sourceRoot":"","sources":["../src/runPrerenderEsm.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAsQ7C,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAU,6BAGhC,eAAe,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAwHzC,CAAA;AAGD,eAAO,MAAM,wBAAwB,GACnC,gBAAgB,MAAM,EACtB,SAAS,MAAM,SAchB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import React from "react";
4
- import * as apolloClient from "@apollo/client";
4
+ import { ApolloClient, ApolloLink, InMemoryCache } from "@apollo/client";
5
5
  import { load as loadHtml } from "cheerio";
6
6
  import ReactDOMServer from "react-dom/server";
7
7
  import {
@@ -20,8 +20,10 @@ import {
20
20
  import { executeQuery, getGqlHandler } from "./graphql/graphql.js";
21
21
  import { NodeRunner } from "./graphql/node-runner.js";
22
22
  import { getRootHtmlPath, registerShims, writeToDist } from "./internal.js";
23
- const { ApolloClient, InMemoryCache } = apolloClient.default;
24
- const prerenderApolloClient = new ApolloClient({ cache: new InMemoryCache() });
23
+ const prerenderApolloClient = new ApolloClient({
24
+ cache: new InMemoryCache(),
25
+ link: ApolloLink.empty()
26
+ });
25
27
  async function recursivelyRender(App, Routes, CellCacheContextProvider, LocationProvider, renderPath, fileImporter, gqlHandler, queryCache) {
26
28
  const { getOperationName } = await import("@cedarjs/web");
27
29
  let shouldShowGraphqlHandlerNotFoundWarn = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/prerender",
3
- "version": "6.0.0-canary.2663",
3
+ "version": "6.0.0-canary.2664",
4
4
  "description": "CedarJS prerender",
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,10 +71,10 @@
71
71
  "@babel/generator": "7.29.7",
72
72
  "@babel/parser": "7.29.7",
73
73
  "@babel/traverse": "7.29.7",
74
- "@cedarjs/babel-config": "6.0.0-canary.2663",
75
- "@cedarjs/project-config": "6.0.0-canary.2663",
76
- "@cedarjs/structure": "6.0.0-canary.2663",
77
- "@cedarjs/vite": "6.0.0-canary.2663",
74
+ "@cedarjs/babel-config": "6.0.0-canary.2664",
75
+ "@cedarjs/project-config": "6.0.0-canary.2664",
76
+ "@cedarjs/structure": "6.0.0-canary.2664",
77
+ "@cedarjs/vite": "6.0.0-canary.2664",
78
78
  "@rollup/plugin-alias": "5.1.1",
79
79
  "@rollup/plugin-commonjs": "28.0.9",
80
80
  "@rollup/plugin-node-resolve": "16.0.3",
@@ -92,9 +92,9 @@
92
92
  "vite": "7.3.5"
93
93
  },
94
94
  "devDependencies": {
95
- "@cedarjs/framework-tools": "6.0.0-canary.2663",
96
- "@cedarjs/router": "6.0.0-canary.2663",
97
- "@cedarjs/web": "6.0.0-canary.2663",
95
+ "@cedarjs/framework-tools": "6.0.0-canary.2664",
96
+ "@cedarjs/router": "6.0.0-canary.2664",
97
+ "@cedarjs/web": "6.0.0-canary.2664",
98
98
  "@types/mime-types": "2.1.4",
99
99
  "@types/react": "^18.2.55",
100
100
  "babel-plugin-tester": "11.0.4",