@cedarjs/vite 8.0.0-canary.3467 → 8.0.0-canary.3471

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.
@@ -8,7 +8,9 @@ export interface CedarNetlifySkewProtectionPluginOptions {
8
8
  * requests to the deploy it last loaded a page from. Page loads are never
9
9
  * pinned and always refresh the cookie, so a long value can't keep anyone
10
10
  * on an old version; it only bounds how long an open tab can keep loading
11
- * lazy chunks from the deploy it started on. Defaults to 24 hours.
11
+ * lazy chunks and calling the API of the deploy it started on. That old
12
+ * API runs against the current database, so a longer value means older API
13
+ * code has to keep working with the latest schema. Defaults to 7 days.
12
14
  */
13
15
  cookieMaxAge?: number;
14
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin-cedar-netlify-skew-protection.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-netlify-skew-protection.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAOlD,MAAM,WAAW,uCAAuC;IACtD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,mDAAmD;IACnD,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB;AAoBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,GACzD,mBAAmB,CAgCrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,GAAE,uCAA4C,GACpD,MAAM,CAwOR"}
1
+ {"version":3,"file":"vite-plugin-cedar-netlify-skew-protection.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-netlify-skew-protection.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AAOlD,MAAM,WAAW,uCAAuC;IACtD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,mDAAmD;IACnD,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB;AAoBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,GACzD,mBAAmB,CAgCrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,GAAE,uCAA4C,GACpD,MAAM,CAwOR"}
@@ -40,7 +40,7 @@ function cedarNetlifySkewProtectionPlugin(options = {}) {
40
40
  headerName = "cedar-skew-token",
41
41
  queryName = "skew",
42
42
  cookieName = "cedar-skew-token",
43
- cookieMaxAge = 60 * 60 * 24
43
+ cookieMaxAge = 60 * 60 * 24 * 7
44
44
  } = options;
45
45
  const skewToken = process.env.NETLIFY_SKEW_PROTECTION_TOKEN ?? "";
46
46
  let skewProtectionPaths = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "8.0.0-canary.3467",
3
+ "version": "8.0.0-canary.3471",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,17 +54,17 @@
54
54
  "@babel/preset-typescript": "7.29.7",
55
55
  "@babel/traverse": "7.29.10",
56
56
  "@babel/types": "7.29.8",
57
- "@cedarjs/api": "8.0.0-canary.3467",
58
- "@cedarjs/api-server": "8.0.0-canary.3467",
59
- "@cedarjs/babel-config": "8.0.0-canary.3467",
60
- "@cedarjs/context": "8.0.0-canary.3467",
61
- "@cedarjs/graphql-server": "8.0.0-canary.3467",
62
- "@cedarjs/internal": "8.0.0-canary.3467",
63
- "@cedarjs/jobs": "8.0.0-canary.3467",
64
- "@cedarjs/project-config": "8.0.0-canary.3467",
65
- "@cedarjs/server-store": "8.0.0-canary.3467",
66
- "@cedarjs/structure": "8.0.0-canary.3467",
67
- "@cedarjs/testing": "8.0.0-canary.3467",
57
+ "@cedarjs/api": "8.0.0-canary.3471",
58
+ "@cedarjs/api-server": "8.0.0-canary.3471",
59
+ "@cedarjs/babel-config": "8.0.0-canary.3471",
60
+ "@cedarjs/context": "8.0.0-canary.3471",
61
+ "@cedarjs/graphql-server": "8.0.0-canary.3471",
62
+ "@cedarjs/internal": "8.0.0-canary.3471",
63
+ "@cedarjs/jobs": "8.0.0-canary.3471",
64
+ "@cedarjs/project-config": "8.0.0-canary.3471",
65
+ "@cedarjs/server-store": "8.0.0-canary.3471",
66
+ "@cedarjs/structure": "8.0.0-canary.3471",
67
+ "@cedarjs/testing": "8.0.0-canary.3471",
68
68
  "@swc/core": "1.16.18",
69
69
  "@universal-deploy/store": "^0.3.0",
70
70
  "@universal-deploy/vite": "^0.2.0",
@@ -94,10 +94,10 @@
94
94
  "yargs-parser": "21.1.1"
95
95
  },
96
96
  "devDependencies": {
97
- "@cedarjs/auth": "8.0.0-canary.3467",
98
- "@cedarjs/framework-tools": "8.0.0-canary.3467",
99
- "@cedarjs/router": "8.0.0-canary.3467",
100
- "@cedarjs/web": "8.0.0-canary.3467",
97
+ "@cedarjs/auth": "8.0.0-canary.3471",
98
+ "@cedarjs/framework-tools": "8.0.0-canary.3471",
99
+ "@cedarjs/router": "8.0.0-canary.3471",
100
+ "@cedarjs/web": "8.0.0-canary.3471",
101
101
  "@dr.pogodin/react-helmet": "2.0.4",
102
102
  "@hyrious/esbuild-plugin-commonjs": "0.2.6",
103
103
  "@jridgewell/trace-mapping": "0.3.31",
@@ -119,9 +119,9 @@
119
119
  "vitest": "4.1.12"
120
120
  },
121
121
  "peerDependencies": {
122
- "@cedarjs/auth": "8.0.0-canary.3467",
123
- "@cedarjs/router": "8.0.0-canary.3467",
124
- "@cedarjs/web": "8.0.0-canary.3467",
122
+ "@cedarjs/auth": "8.0.0-canary.3471",
123
+ "@cedarjs/router": "8.0.0-canary.3471",
124
+ "@cedarjs/web": "8.0.0-canary.3471",
125
125
  "react": "19.3.1",
126
126
  "react-dom": "19.3.1"
127
127
  },