@cedarjs/vite 7.0.0-canary.2982 → 7.0.0-canary.2984

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.
@@ -4,9 +4,14 @@ import type { ServerAuthState } from '@cedarjs/auth/dist/AuthProvider/ServerAuth
4
4
  import type { TagDescriptor } from '@cedarjs/web';
5
5
  import type { MiddlewareResponse } from '@cedarjs/web/middleware';
6
6
  import type { ServerEntryType } from '../types.js';
7
+ interface FallbackDocumentProps {
8
+ css: string[];
9
+ meta: TagDescriptor[];
10
+ children?: React.ReactNode;
11
+ }
7
12
  interface RenderToStreamArgs {
8
13
  ServerEntry: ServerEntryType;
9
- FallbackDocument: React.FunctionComponent;
14
+ FallbackDocument: React.FunctionComponent<FallbackDocumentProps>;
10
15
  currentUrl: URL;
11
16
  metaTags: TagDescriptor[];
12
17
  cssLinks: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"streamHelpers.d.ts","sourceRoot":"","sources":["../../src/streaming/streamHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAI5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAGjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAYlD,UAAU,kBAAkB;IAC1B,WAAW,EAAE,eAAe,CAAA;IAC5B,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACzC,UAAU,EAAE,GAAG,CAAA;IACf,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE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a;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAA;CAC/B;AA2BD,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,kBAAkB,EACzB,aAAa,EAAE,kBAAkB,EACjC,aAAa,EAAE,aAAa,EAC5B,aAAa,CAAC,EAAE,aAAa,qBAgM9B"}
@@ -137,7 +137,7 @@ async function reactRenderToStreamResponse(mwRes, renderOptions, streamOptions,
137
137
  console.error("\u{1F53B} Failed to render shell");
138
138
  streamOptions.onError?.(e);
139
139
  const fallbackShell = await renderToReadableStream(
140
- FallbackDocument({
140
+ createElement(FallbackDocument, {
141
141
  children: null,
142
142
  css: cssLinks,
143
143
  meta: metaTags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "7.0.0-canary.2982",
3
+ "version": "7.0.0-canary.2984",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,17 +52,17 @@
52
52
  "@babel/parser": "7.29.8",
53
53
  "@babel/traverse": "7.29.8",
54
54
  "@babel/types": "7.29.8",
55
- "@cedarjs/api": "7.0.0-canary.2982",
56
- "@cedarjs/api-server": "7.0.0-canary.2982",
57
- "@cedarjs/babel-config": "7.0.0-canary.2982",
58
- "@cedarjs/context": "7.0.0-canary.2982",
59
- "@cedarjs/graphql-server": "7.0.0-canary.2982",
60
- "@cedarjs/internal": "7.0.0-canary.2982",
61
- "@cedarjs/jobs": "7.0.0-canary.2982",
62
- "@cedarjs/project-config": "7.0.0-canary.2982",
63
- "@cedarjs/server-store": "7.0.0-canary.2982",
64
- "@cedarjs/structure": "7.0.0-canary.2982",
65
- "@cedarjs/testing": "7.0.0-canary.2982",
55
+ "@cedarjs/api": "7.0.0-canary.2984",
56
+ "@cedarjs/api-server": "7.0.0-canary.2984",
57
+ "@cedarjs/babel-config": "7.0.0-canary.2984",
58
+ "@cedarjs/context": "7.0.0-canary.2984",
59
+ "@cedarjs/graphql-server": "7.0.0-canary.2984",
60
+ "@cedarjs/internal": "7.0.0-canary.2984",
61
+ "@cedarjs/jobs": "7.0.0-canary.2984",
62
+ "@cedarjs/project-config": "7.0.0-canary.2984",
63
+ "@cedarjs/server-store": "7.0.0-canary.2984",
64
+ "@cedarjs/structure": "7.0.0-canary.2984",
65
+ "@cedarjs/testing": "7.0.0-canary.2984",
66
66
  "@swc/core": "1.16.0",
67
67
  "@universal-deploy/store": "^0.2.1",
68
68
  "@universal-deploy/vite": "^0.1.9",
@@ -93,10 +93,10 @@
93
93
  "yargs-parser": "21.1.1"
94
94
  },
95
95
  "devDependencies": {
96
- "@cedarjs/auth": "7.0.0-canary.2982",
97
- "@cedarjs/framework-tools": "7.0.0-canary.2982",
98
- "@cedarjs/router": "7.0.0-canary.2982",
99
- "@cedarjs/web": "7.0.0-canary.2982",
96
+ "@cedarjs/auth": "7.0.0-canary.2984",
97
+ "@cedarjs/framework-tools": "7.0.0-canary.2984",
98
+ "@cedarjs/router": "7.0.0-canary.2984",
99
+ "@cedarjs/web": "7.0.0-canary.2984",
100
100
  "@dr.pogodin/react-helmet": "2.0.4",
101
101
  "@hyrious/esbuild-plugin-commonjs": "0.2.6",
102
102
  "@jridgewell/trace-mapping": "0.3.31",
@@ -104,7 +104,7 @@
104
104
  "@types/aws-lambda": "8.10.162",
105
105
  "@types/busboy": "^1",
106
106
  "@types/express": "4",
107
- "@types/react": "^18.2.55",
107
+ "@types/react": "^19.2.0",
108
108
  "@types/ws": "^8",
109
109
  "@types/yargs-parser": "21.0.3",
110
110
  "concurrently": "9.2.4",
@@ -116,9 +116,9 @@
116
116
  "vitest": "4.1.10"
117
117
  },
118
118
  "peerDependencies": {
119
- "@cedarjs/auth": "7.0.0-canary.2982",
120
- "@cedarjs/router": "7.0.0-canary.2982",
121
- "@cedarjs/web": "7.0.0-canary.2982"
119
+ "@cedarjs/auth": "7.0.0-canary.2984",
120
+ "@cedarjs/router": "7.0.0-canary.2984",
121
+ "@cedarjs/web": "7.0.0-canary.2984"
122
122
  },
123
123
  "engines": {
124
124
  "node": ">=24"