Skip to content

Commit e4287cc

Browse files
committed
chore: align Vite, Vitest, and Wrangler tooling
Pin Vite 7.3.6 for Worker decorator compatibility, align Vitest pool workers at 0.18.8 and Wrangler at 4.118.0, and regenerate Worker types through the shared script.
1 parent e1ab8fb commit e4287cc

54 files changed

Lines changed: 18223 additions & 935 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
"lint:check": "oxlint",
1414
"lint:fix": "oxlint --fix",
1515
"types:check": "pnpm run --recursive --if-present types:check",
16-
"lint": "pnpm run lint:check && pnpm run types:check"
16+
"lint": "pnpm run lint:check && pnpm run types:check",
17+
"types:generate": "node scripts/generate-worker-types.mjs"
1718
},
1819
"devDependencies": {
1920
"aws4fetch": "^1.0.20",
2021
"jsonc-parser": "^3.3.1",
2122
"oxlint": "^1.76.0",
2223
"typescript": "^5.9.3",
2324
"vite": "^7.3.6",
24-
"wrangler": "^4.115.0"
25+
"wrangler": "^4.119.0"
2526
}
2627
}

packages/backend-utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"@gadgets/error-reporting": "workspace:*"
2929
},
3030
"devDependencies": {
31-
"@cloudflare/vitest-pool-workers": "^0.16.20",
32-
"@cloudflare/workers-types": "^4.20260702.1",
31+
"@cloudflare/vitest-pool-workers": "^0.18.8",
32+
"@cloudflare/workers-types": "^5.20260722.1",
3333
"vitest": "^4.1.10"
3434
}
3535
}

packages/gatekeeper-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
},
1919
"devDependencies": {
2020
"typescript": "^5.9.3",
21-
"wrangler": "^4.115.0"
21+
"wrangler": "^4.119.0"
2222
}
2323
}

packages/gatekeeper-cloudflare/worker-configuration.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types` (hash: f65f78a66f95c7c2098403682e609f6b)
3-
// Runtime types generated with workerd@1.20260731.1 2026-02-02 allow_irrevocable_stub_storage,nodejs_als
3+
// Runtime types generated with workerd@1.20260801.1 2026-02-02 allow_irrevocable_stub_storage,nodejs_als
44
interface __BaseEnv_Env {
55
}
66
declare namespace Cloudflare {
@@ -11530,7 +11530,7 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
1153011530
/**
1153111531
* How to combine the foreground and backdrop pixels to create the result
1153211532
*/
11533-
composite?:
11533+
composite?:
1153411534
/** Foreground drawn on top of backdrop (default) */
1153511535
'over'
1153611536
/** Foreground shown only where backdrop is opaque */
@@ -12044,7 +12044,7 @@ interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder {
1204412044
certChainRFC9440TooLarge: false;
1204512045
}
1204612046
/** Possible outcomes of TLS verification */
12047-
declare type CertVerificationStatus =
12047+
declare type CertVerificationStatus =
1204812048
/** Authentication succeeded */
1204912049
"SUCCESS"
1205012050
/** No certificate was presented */
@@ -12112,7 +12112,7 @@ interface D1ExecResult {
1211212112
count: number;
1211312113
duration: number;
1211412114
}
12115-
type D1SessionConstraint =
12115+
type D1SessionConstraint =
1211612116
// Indicates that the first query should go to the primary, and the rest queries
1211712117
// using the same D1DatabaseSession will go to any replica that is consistent with
1211812118
// the bookmark maintained by the session (returned by the first query).
@@ -12532,7 +12532,7 @@ type ImageDrawOptions = {
1253212532
bottom?: number;
1253312533
right?: number;
1253412534
};
12535-
type ImageCompositeMode =
12535+
type ImageCompositeMode =
1253612536
/** Foreground drawn on top of backdrop (default) */
1253712537
'over'
1253812538
/** Foreground shown only where backdrop is opaque */
@@ -12967,7 +12967,7 @@ declare namespace Rpc {
1296712967
// The reason for using a generic type here is to build a serializable subset of structured
1296812968
// cloneable composite types. This allows types defined with the "interface" keyword to pass the
1296912969
// serializable check as well. Otherwise, only types defined with the "type" keyword would pass.
12970-
type Serializable<T> =
12970+
type Serializable<T> =
1297112971
// Structured cloneables
1297212972
BaseType
1297312973
// Structured cloneable composites

packages/gatekeeper-confluence/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"typescript": "^5.9.3",
24-
"vitest": "^3.2.7",
25-
"wrangler": "^4.115.0"
24+
"vitest": "^4.1.10",
25+
"wrangler": "^4.119.0"
2626
}
2727
}

packages/gatekeeper-confluence/worker-configuration.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types` (hash: 79ff1ae5583229eaed1435f78fa57a5d)
3-
// Runtime types generated with workerd@1.20260731.1 2026-02-02 allow_irrevocable_stub_storage
3+
// Runtime types generated with workerd@1.20260801.1 2026-02-02 allow_irrevocable_stub_storage
44
interface __BaseEnv_Env {
55
}
66
declare namespace Cloudflare {
@@ -11530,7 +11530,7 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
1153011530
/**
1153111531
* How to combine the foreground and backdrop pixels to create the result
1153211532
*/
11533-
composite?:
11533+
composite?:
1153411534
/** Foreground drawn on top of backdrop (default) */
1153511535
'over'
1153611536
/** Foreground shown only where backdrop is opaque */
@@ -12044,7 +12044,7 @@ interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder {
1204412044
certChainRFC9440TooLarge: false;
1204512045
}
1204612046
/** Possible outcomes of TLS verification */
12047-
declare type CertVerificationStatus =
12047+
declare type CertVerificationStatus =
1204812048
/** Authentication succeeded */
1204912049
"SUCCESS"
1205012050
/** No certificate was presented */
@@ -12112,7 +12112,7 @@ interface D1ExecResult {
1211212112
count: number;
1211312113
duration: number;
1211412114
}
12115-
type D1SessionConstraint =
12115+
type D1SessionConstraint =
1211612116
// Indicates that the first query should go to the primary, and the rest queries
1211712117
// using the same D1DatabaseSession will go to any replica that is consistent with
1211812118
// the bookmark maintained by the session (returned by the first query).
@@ -12532,7 +12532,7 @@ type ImageDrawOptions = {
1253212532
bottom?: number;
1253312533
right?: number;
1253412534
};
12535-
type ImageCompositeMode =
12535+
type ImageCompositeMode =
1253612536
/** Foreground drawn on top of backdrop (default) */
1253712537
'over'
1253812538
/** Foreground shown only where backdrop is opaque */
@@ -12967,7 +12967,7 @@ declare namespace Rpc {
1296712967
// The reason for using a generic type here is to build a serializable subset of structured
1296812968
// cloneable composite types. This allows types defined with the "interface" keyword to pass the
1296912969
// serializable check as well. Otherwise, only types defined with the "type" keyword would pass.
12970-
type Serializable<T> =
12970+
type Serializable<T> =
1297112971
// Structured cloneables
1297212972
BaseType
1297312973
// Structured cloneable composites

packages/gatekeeper-context/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626
},
2727
"devDependencies": {
2828
"@cloudflare/kumo": "^2.9.0",
29-
"@codemirror/commands": "6.10.3",
29+
"@codemirror/commands": "^6.10.4",
3030
"@codemirror/lang-javascript": "^6.2.5",
3131
"@codemirror/lang-json": "^6.0.2",
3232
"@codemirror/lang-markdown": "^6.5.1",
3333
"@codemirror/lang-yaml": "^6.1.3",
3434
"@codemirror/language": "^6.12.4",
35-
"@codemirror/state": "6.6.0",
36-
"@codemirror/view": "6.43.1",
35+
"@codemirror/state": "^6.7.1",
36+
"@codemirror/view": "^6.43.7",
3737
"@emoji-mart/data": "^1.2.1",
3838
"@lezer/highlight": "^1.2.3",
3939
"@phosphor-icons/react": "^2.1.10",
4040
"@tailwindcss/vite": "^4.3.3",
4141
"@types/node": "26.1.0",
4242
"@types/react": "^19.2.17",
4343
"@types/react-dom": "^19.2.3",
44-
"@vitejs/plugin-react": "^4.7.0",
44+
"@vitejs/plugin-react": "^5.2.0",
4545
"emoji-mart": "^5.6.0",
4646
"react": "^19.2.8",
4747
"react-dom": "^19.2.8",
@@ -53,7 +53,7 @@
5353
"vite": "^7.3.6",
5454
"vite-plugin-singlefile": "^2.3.3",
5555
"vite-tsconfig-paths": "^6.1.1",
56-
"vitest": "^3.2.7",
57-
"wrangler": "^4.115.0"
56+
"vitest": "^4.1.10",
57+
"wrangler": "^4.119.0"
5858
}
5959
}

packages/gatekeeper-context/worker-configuration.d.ts

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/* eslint-disable */
2-
// Generated by Wrangler by running `wrangler types` (hash: 7d22281bb997cc87f70d893bcba17ef4)
3-
// Runtime types generated with workerd@1.20260731.1 2026-02-02 allow_irrevocable_stub_storage,nodejs_compat
4-
interface __BaseEnv_Env {
5-
CONTEXT_COLLECTIONS: KVNamespace;
6-
}
7-
declare namespace Cloudflare {
8-
interface GlobalProps {
9-
mainModule: typeof import("./src/index");
10-
durableNamespaces: "ContextCollectionDurableObject" | "UserLibraryDurableObject" | "LibraryRegistryDurableObject" | "ContextGatekeeper";
11-
}
12-
interface Env extends __BaseEnv_Env {}
13-
}
14-
interface Env extends __BaseEnv_Env {}
15-
2+
// Runtime types generated with workerd@1.20260801.1 2026-02-02 allow_irrevocable_stub_storage,nodejs_compat
163
// Begin runtime types
174
/*! *****************************************************************************
185
Copyright (c) Cloudflare. All rights reserved.
@@ -11524,7 +11511,7 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
1152411511
/**
1152511512
* How to combine the foreground and backdrop pixels to create the result
1152611513
*/
11527-
composite?:
11514+
composite?:
1152811515
/** Foreground drawn on top of backdrop (default) */
1152911516
'over'
1153011517
/** Foreground shown only where backdrop is opaque */
@@ -12038,7 +12025,7 @@ interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder {
1203812025
certChainRFC9440TooLarge: false;
1203912026
}
1204012027
/** Possible outcomes of TLS verification */
12041-
declare type CertVerificationStatus =
12028+
declare type CertVerificationStatus =
1204212029
/** Authentication succeeded */
1204312030
"SUCCESS"
1204412031
/** No certificate was presented */
@@ -12106,7 +12093,7 @@ interface D1ExecResult {
1210612093
count: number;
1210712094
duration: number;
1210812095
}
12109-
type D1SessionConstraint =
12096+
type D1SessionConstraint =
1211012097
// Indicates that the first query should go to the primary, and the rest queries
1211112098
// using the same D1DatabaseSession will go to any replica that is consistent with
1211212099
// the bookmark maintained by the session (returned by the first query).
@@ -12526,7 +12513,7 @@ type ImageDrawOptions = {
1252612513
bottom?: number;
1252712514
right?: number;
1252812515
};
12529-
type ImageCompositeMode =
12516+
type ImageCompositeMode =
1253012517
/** Foreground drawn on top of backdrop (default) */
1253112518
'over'
1253212519
/** Foreground shown only where backdrop is opaque */
@@ -12961,7 +12948,7 @@ declare namespace Rpc {
1296112948
// The reason for using a generic type here is to build a serializable subset of structured
1296212949
// cloneable composite types. This allows types defined with the "interface" keyword to pass the
1296312950
// serializable check as well. Otherwise, only types defined with the "type" keyword would pass.
12964-
type Serializable<T> =
12951+
type Serializable<T> =
1296512952
// Structured cloneables
1296612953
BaseType
1296712954
// Structured cloneable composites

packages/gatekeeper-email/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
},
2222
"devDependencies": {
2323
"typescript": "^5.9.3",
24-
"wrangler": "^4.115.0"
24+
"wrangler": "^4.119.0"
2525
}
2626
}

packages/gatekeeper-email/worker-configuration.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types` (hash: b522116bb91be8938d7f8d09b29d8f92)
3-
// Runtime types generated with workerd@1.20260731.1 2026-02-02 allow_irrevocable_stub_storage,nodejs_als
3+
// Runtime types generated with workerd@1.20260801.1 2026-02-02 allow_irrevocable_stub_storage,nodejs_als
44
interface __BaseEnv_Env {
55
}
66
declare namespace Cloudflare {
@@ -11530,7 +11530,7 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
1153011530
/**
1153111531
* How to combine the foreground and backdrop pixels to create the result
1153211532
*/
11533-
composite?:
11533+
composite?:
1153411534
/** Foreground drawn on top of backdrop (default) */
1153511535
'over'
1153611536
/** Foreground shown only where backdrop is opaque */
@@ -12044,7 +12044,7 @@ interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder {
1204412044
certChainRFC9440TooLarge: false;
1204512045
}
1204612046
/** Possible outcomes of TLS verification */
12047-
declare type CertVerificationStatus =
12047+
declare type CertVerificationStatus =
1204812048
/** Authentication succeeded */
1204912049
"SUCCESS"
1205012050
/** No certificate was presented */
@@ -12112,7 +12112,7 @@ interface D1ExecResult {
1211212112
count: number;
1211312113
duration: number;
1211412114
}
12115-
type D1SessionConstraint =
12115+
type D1SessionConstraint =
1211612116
// Indicates that the first query should go to the primary, and the rest queries
1211712117
// using the same D1DatabaseSession will go to any replica that is consistent with
1211812118
// the bookmark maintained by the session (returned by the first query).
@@ -12532,7 +12532,7 @@ type ImageDrawOptions = {
1253212532
bottom?: number;
1253312533
right?: number;
1253412534
};
12535-
type ImageCompositeMode =
12535+
type ImageCompositeMode =
1253612536
/** Foreground drawn on top of backdrop (default) */
1253712537
'over'
1253812538
/** Foreground shown only where backdrop is opaque */
@@ -12967,7 +12967,7 @@ declare namespace Rpc {
1296712967
// The reason for using a generic type here is to build a serializable subset of structured
1296812968
// cloneable composite types. This allows types defined with the "interface" keyword to pass the
1296912969
// serializable check as well. Otherwise, only types defined with the "type" keyword would pass.
12970-
type Serializable<T> =
12970+
type Serializable<T> =
1297112971
// Structured cloneables
1297212972
BaseType
1297312973
// Structured cloneable composites

0 commit comments

Comments
 (0)