wrangler 2.4.0 → 2.4.1
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.
- package/package.json +2 -2
- package/src/__tests__/dev.test.tsx +1 -0
- package/src/__tests__/metrics.test.ts +1 -1
- package/src/bundle.ts +0 -7
- package/src/dev/dev.tsx +0 -1
- package/src/dev/local.tsx +34 -12
- package/src/dev/start-server.ts +7 -8
- package/src/dev/use-esbuild.ts +0 -4
- package/src/dev.tsx +23 -3
- package/src/metrics/metrics-config.ts +2 -2
- package/src/publish/publish.ts +0 -1
- package/wrangler-dist/cli.js +3969 -3954
- package/templates/experimental-local-cache-stubs.js +0 -27
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// `workerd` currently throws on any use of the Cache API. Workers Sites
|
|
2
|
-
// requires the Cache API to function though, so stub it out to no-ops, like in
|
|
3
|
-
// regular `wrangler dev`.
|
|
4
|
-
|
|
5
|
-
class Cache {
|
|
6
|
-
async put(req, res) {}
|
|
7
|
-
|
|
8
|
-
async match(req, options) {}
|
|
9
|
-
|
|
10
|
-
async delete(req, options) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
class CacheStorage {
|
|
16
|
-
#cache = new Cache();
|
|
17
|
-
|
|
18
|
-
get default() {
|
|
19
|
-
return this.#cache;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
async open(cacheName) {
|
|
23
|
-
return this.#cache;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
globalThis.caches = new CacheStorage();
|