@cedarjs/prerender 6.0.0-canary.2851 → 6.0.0-rc.221

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":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AA4O7C,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,CAmIzC,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":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AA0O7C,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,CAmIzC,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 import_client = require("@apollo/client");
38
+ var apolloClient = __toESM(require("@apollo/client"), 1);
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");
@@ -46,10 +46,8 @@ var import_detection = require("./detection/detection.js");
46
46
  var import_errors = require("./errors.js");
47
47
  var import_graphql = require("./graphql/graphql.js");
48
48
  var import_internal = require("./internal.js");
49
- const prerenderApolloClient = new import_client.ApolloClient({
50
- cache: new import_client.InMemoryCache(),
51
- link: import_client.ApolloLink.empty()
52
- });
49
+ const { ApolloClient, InMemoryCache } = apolloClient.default || apolloClient;
50
+ const prerenderApolloClient = new ApolloClient({ cache: new InMemoryCache() });
53
51
  async function recursivelyRender(App, Routes, renderPath, fileImporter, gqlHandler, queryCache) {
54
52
  const { CellCacheContextProvider, getOperationName } = require("@cedarjs/web");
55
53
  const { LocationProvider } = require("@cedarjs/router");
@@ -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 import_client = require("@apollo/client");
38
+ var apolloClient = __toESM(require("@apollo/client"), 1);
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,10 +46,8 @@ 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 prerenderApolloClient = new import_client.ApolloClient({
50
- cache: new import_client.InMemoryCache(),
51
- link: import_client.ApolloLink.empty()
52
- });
49
+ const { ApolloClient, InMemoryCache } = apolloClient.default;
50
+ const prerenderApolloClient = new ApolloClient({ cache: new InMemoryCache() });
53
51
  async function recursivelyRender(App, Routes, CellCacheContextProvider, LocationProvider, renderPath, fileImporter, gqlHandler, queryCache) {
54
52
  const { getOperationName } = await import("@cedarjs/web");
55
53
  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;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
+ {"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,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 { ApolloClient, ApolloLink, InMemoryCache } from "@apollo/client";
4
+ import * as apolloClient from "@apollo/client";
5
5
  import { load as loadHtml } from "cheerio";
6
6
  import ReactDOMServer from "react-dom/server";
7
7
  import {
@@ -20,10 +20,8 @@ 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 prerenderApolloClient = new ApolloClient({
24
- cache: new InMemoryCache(),
25
- link: ApolloLink.empty()
26
- });
23
+ const { ApolloClient, InMemoryCache } = apolloClient.default;
24
+ const prerenderApolloClient = new ApolloClient({ cache: new InMemoryCache() });
27
25
  async function recursivelyRender(App, Routes, CellCacheContextProvider, LocationProvider, renderPath, fileImporter, gqlHandler, queryCache) {
28
26
  const { getOperationName } = await import("@cedarjs/web");
29
27
  let shouldShowGraphqlHandlerNotFoundWarn = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/prerender",
3
- "version": "6.0.0-canary.2851",
3
+ "version": "6.0.0-rc.221",
4
4
  "description": "CedarJS prerender",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,10 +70,10 @@
70
70
  "@babel/generator": "7.29.7",
71
71
  "@babel/parser": "7.29.7",
72
72
  "@babel/traverse": "7.29.7",
73
- "@cedarjs/babel-config": "6.0.0-canary.2851",
74
- "@cedarjs/project-config": "6.0.0-canary.2851",
75
- "@cedarjs/structure": "6.0.0-canary.2851",
76
- "@cedarjs/vite": "6.0.0-canary.2851",
73
+ "@cedarjs/babel-config": "6.0.0-rc.221",
74
+ "@cedarjs/project-config": "6.0.0-rc.221",
75
+ "@cedarjs/structure": "6.0.0-rc.221",
76
+ "@cedarjs/vite": "6.0.0-rc.221",
77
77
  "@rollup/plugin-alias": "5.1.1",
78
78
  "@rollup/plugin-commonjs": "28.0.9",
79
79
  "@rollup/plugin-node-resolve": "16.0.3",
@@ -91,9 +91,9 @@
91
91
  "vite": "7.3.6"
92
92
  },
93
93
  "devDependencies": {
94
- "@cedarjs/framework-tools": "6.0.0-canary.2851",
95
- "@cedarjs/router": "6.0.0-canary.2851",
96
- "@cedarjs/web": "6.0.0-canary.2851",
94
+ "@cedarjs/framework-tools": "6.0.0-rc.221",
95
+ "@cedarjs/router": "6.0.0-rc.221",
96
+ "@cedarjs/web": "6.0.0-rc.221",
97
97
  "@types/mime-types": "2.1.4",
98
98
  "@types/react": "^18.2.55",
99
99
  "babel-plugin-tester": "11.0.4",
@@ -103,10 +103,10 @@
103
103
  "vitest": "4.1.10"
104
104
  },
105
105
  "peerDependencies": {
106
- "@cedarjs/router": "6.0.0-canary.2851",
107
- "@cedarjs/web": "6.0.0-canary.2851",
108
- "react": "19.2.3",
109
- "react-dom": "19.2.3"
106
+ "@cedarjs/router": "6.0.0-rc.221",
107
+ "@cedarjs/web": "6.0.0-rc.221",
108
+ "react": "18.3.1",
109
+ "react-dom": "18.3.1"
110
110
  },
111
111
  "engines": {
112
112
  "node": ">=24"