Skip to content

Commit

Permalink
update typescript to 5.5.2 (#6129)
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone authored Jun 27, 2024
1 parent d08bb63 commit 61fbf8a
Show file tree
Hide file tree
Showing 13 changed files with 171 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"^[.]/index$",
"<TYPES>"
],
"importOrderTypeScriptVersion": "5.4.5",
"importOrderTypeScriptVersion": "5.5.2",
"importOrderParserPlugins": [
"typescript",
"jsx",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/remix-pages-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"eslint": "^8.49.0",
"npm-run-all": "^4.1.5",
"remix": "^1.17.0",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"wrangler": "workspace:*"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion fixtures/vitest-pool-workers-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"jose": "^5.2.2",
"miniflare": "workspace:*",
"toucan-js": "^3.3.1",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"vitest": "1.5.0",
"wrangler": "workspace:*"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"prettier-plugin-packagejson": "^2.2.18",
"rimraf": "^5.0.1",
"turbo": "^1.10.14",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"vite": "^5.0.12",
"vitest": "^1.2.2"
},
Expand All @@ -72,7 +72,7 @@
"@types/react-tabs>@types/react": "^18",
"@types/react-transition-group>@types/react": "^18",
"@cloudflare/elements>@types/react": "^18",
"capnpc-ts>typescript": "5.4.5"
"capnpc-ts>typescript": "5.5.2"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"itty-router": "^3.0.12",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"wrangler": "^3.60.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"cf-typegen": "wrangler types"
},
"devDependencies": {
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"wrangler": "^3.60.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.4.5",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"vitest": "1.5.0",
"wrangler": "^3.60.3"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"cf-typegen": "wrangler types"
},
"devDependencies": {
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"wrangler": "^3.60.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"cf-typegen": "wrangler types"
},
"devDependencies": {
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"wrangler": "^3.60.3"
}
}
2 changes: 1 addition & 1 deletion packages/vitest-pool-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"capnp-ts": "^0.7.0",
"capnpc-ts": "^0.7.0",
"ts-dedent": "^2.2.0",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"undici": "^5.28.4",
"vitest": "1.5.0"
},
Expand Down
8 changes: 6 additions & 2 deletions packages/vitest-pool-workers/src/worker/lib/mlly.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function isObject(value: unknown) {
function isObject(value: unknown): value is Record<string, unknown> {
return value !== null && typeof value === "object";
}

Expand All @@ -9,7 +9,11 @@ export function resolvePathSync() {
// https://github.com/unjs/mlly/blob/71563c22ec7dbf25672d46bc679619dbd65e79d2/src/cjs.ts#L34
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function interopDefault(sourceModule: any): any {
if (!isObject(sourceModule) || !("default" in sourceModule)) {
if (
!isObject(sourceModule) ||
!("default" in sourceModule) ||
!isObject(sourceModule.default)
) {
return sourceModule;
}
const newModule = sourceModule.default;
Expand Down
7 changes: 4 additions & 3 deletions packages/wrangler/src/versions/secrets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ export async function copyWorkerVersionWithNewSecrets({
);

// Filter out secrets because we're gonna inherit them
const bindings = versionInfo.resources.bindings.filter(
(binding) => binding.type !== "secret_text"
);
const bindings: WorkerMetadataBinding[] =
versionInfo.resources.bindings.filter(
(binding) => binding.type !== "secret_text"
);

// We cannot upload a DO with a namespace_id so remove it
for (const binding of bindings) {
Expand Down
Loading

0 comments on commit 61fbf8a

Please sign in to comment.