Skip to content

Commit 3df12ae

Browse files
committed
Upgrade to latest wrangler and @cloudflare/workers-types
1 parent 8c4643d commit 3df12ae

File tree

9 files changed

+303
-136
lines changed

9 files changed

+303
-136
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
.env.development.local
1616
.env.test.local
1717
.env.production.local
18-
1918
npm-debug.log*
2019

20+
# TypeScript cached build info
21+
*.tsbuildinfo
22+
2123
# generated source map with local paths
2224
public/*.wasm.map
2325

package-lock.json

Lines changed: 282 additions & 122 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"use-debounce": "^10.0.3"
1616
},
1717
"devDependencies": {
18+
"@cloudflare/workers-types": "^4.20240925.0",
1819
"@types/audioworklet": "^0.0.46",
1920
"@types/dom-view-transitions": "^1.0.4",
2021
"@types/emscripten": "^1.39.7",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,
17-
"jsx": "react-jsx"
17+
"jsx": "react-jsx",
18+
"incremental": true
1819
},
1920
"include": ["src"]
2021
}

workers-site/library.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {isValidSrcUrl} from "./cd-rom";
22
import libraryDetails from "./Library-details.json";
3-
import {type RequestInit as CloudflareWorkerRequestInit} from "@cloudflare/workers-types";
3+
import {type RequestInit as CloudflareWorkerRequestInit} from "@cloudflare/workers-types/2021-11-03";
44

55
export async function handleRequest(request: Request) {
66
if (request.method !== "GET") {

workers-site/package-lock.json

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workers-site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"@cloudflare/kv-asset-handler": "^0.3.0"
1010
},
1111
"devDependencies": {
12-
"@cloudflare/workers-types": "^3.11.0"
12+
"@cloudflare/workers-types": "^4.20240925.0"
1313
}
1414
}

workers-site/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"lib": ["ES2020"],
66
"types": ["@cloudflare/workers-types"],
77
"strict": true,
8-
"resolveJsonModule": true
8+
"resolveJsonModule": true,
9+
"esModuleInterop": true,
10+
"incremental": true
911
}
1012
}

wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ kv_namespaces = [
4444

4545
r2_buckets = [
4646
{ binding = "DISK_BUCKET", bucket_name = "infinite-mac-disk" },
47-
]
47+
]

0 commit comments

Comments
 (0)