feat: support deploy worker with UI assets (#627)

This commit is contained in:
Dream Hunter
2025-04-12 15:37:34 +08:00
committed by GitHub
parent 32767176f0
commit 47e2cb56b4
22 changed files with 449 additions and 343 deletions
+51 -51
View File
@@ -88,8 +88,8 @@ importers:
specifier: ^7.3.0
version: 7.3.0
wrangler:
specifier: ^4.7.2
version: 4.7.2
specifier: ^4.9.1
version: 4.9.1
packages:
@@ -601,32 +601,32 @@ packages:
workerd:
optional: true
'@cloudflare/workerd-darwin-64@1.20250404.0':
resolution: {integrity: sha512-+z67wjimn7pZDJI5Ibt2TtNxreFJdFPd5dBMmQqtIfkwrlIsL4PkjHYdiffO7guFP9UygomThuKUaBOU4JA15Q==}
'@cloudflare/workerd-darwin-64@1.20250408.0':
resolution: {integrity: sha512-bxhIwBWxaNItZLXDNOKY2dCv0FHjDiDkfJFpwv4HvtvU5MKcrivZHVmmfDzLW85rqzfcDOmKbZeMPVfiKxdBZw==}
engines: {node: '>=16'}
cpu: [x64]
os: [darwin]
'@cloudflare/workerd-darwin-arm64@1.20250404.0':
resolution: {integrity: sha512-MxFuWqR5bMcc92khreSlYOJxr0OIlJxABdrWQsaogWsxI6p7Df9gV1T36pqg+ERa9fVhkkGERkalt9DJYyYicA==}
'@cloudflare/workerd-darwin-arm64@1.20250408.0':
resolution: {integrity: sha512-5XZ2Oykr8bSo7zBmERtHh18h5BZYC/6H1YFWVxEj3PtalF3+6SHsO4KZsbGvDml9Pu7sHV277jiZE5eny8Hlyw==}
engines: {node: '>=16'}
cpu: [arm64]
os: [darwin]
'@cloudflare/workerd-linux-64@1.20250404.0':
resolution: {integrity: sha512-f4rNJ45376vGB6WHmxxiZ50nmxMws337EvWthhNAZTyeoTYmJUbZjjWCaHR8clWXN8LLK1Tu1bkjsih730X41g==}
'@cloudflare/workerd-linux-64@1.20250408.0':
resolution: {integrity: sha512-WbgItXWln6G5d7GvYLWcuOzAVwafysZaWunH3UEfsm95wPuRofpYnlDD861gdWJX10IHSVgMStGESUcs7FLerQ==}
engines: {node: '>=16'}
cpu: [x64]
os: [linux]
'@cloudflare/workerd-linux-arm64@1.20250404.0':
resolution: {integrity: sha512-UW54a/vZG6W1oiA9PUSatQ0LLWrxnwAX7rN/bCFLiT6n51PP8KgpM1LzrIvQM80WjH/ufqopZJe/TSgrrSss6Q==}
'@cloudflare/workerd-linux-arm64@1.20250408.0':
resolution: {integrity: sha512-pAhEywPPvr92SLylnQfZEPgXz+9pOG9G9haAPLpEatncZwYiYd9yiR6HYWhKp2erzCoNrOqKg9IlQwU3z1IDiw==}
engines: {node: '>=16'}
cpu: [arm64]
os: [linux]
'@cloudflare/workerd-windows-64@1.20250404.0':
resolution: {integrity: sha512-AJJP8vjJ6ioBzqUxVyByv5tE74z5LZ7G5To7w7dtYjWvKZzFo39bZZwGCGryHmH4yaOylXubFv72YVH8+Y4GSQ==}
'@cloudflare/workerd-windows-64@1.20250408.0':
resolution: {integrity: sha512-nJ3RjMKGae2aF2rZ/CNeBvQPM+W5V1SUK0FYWG/uomyr7uQ2l4IayHna1ODg/OHHTEgIjwom0Mbn58iXb0WOcQ==}
engines: {node: '>=16'}
cpu: [x64]
os: [win32]
@@ -1812,8 +1812,8 @@ packages:
engines: {node: '>=0.10.0'}
hasBin: true
electron-to-chromium@1.5.132:
resolution: {integrity: sha512-QgX9EBvWGmvSRa74zqfnG7+Eno0Ak0vftBll0Pt2/z5b3bEGYL6OUXLgKPtvx73dn3dvwrlyVkjPKRRlhLYTEg==}
electron-to-chromium@1.5.134:
resolution: {integrity: sha512-zSwzrLg3jNP3bwsLqWHmS5z2nIOQ5ngMnfMZOWWtXnqqQkPVyOipxK98w+1beLw1TB+EImPNcG8wVP/cLVs2Og==}
entities@4.5.0:
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
@@ -2329,8 +2329,8 @@ packages:
engines: {node: '>=10.0.0'}
hasBin: true
miniflare@4.20250404.0:
resolution: {integrity: sha512-OeNnXrOdgSoN5iDA+u1Ue3etOyPY89BJFFizMgGEPJvGTYL+kZhKqeBKeZiZIS7xjjlrfXNqleYGnCyomQ1pDQ==}
miniflare@4.20250408.0:
resolution: {integrity: sha512-h1FAK1l/RzZyhGAeLKD+XawWBWowY8tjOcj0Yz8RmCpZ5xBfl255O5eGw4Xk1rcpgxyEB0qiaL2CmV9HAyMfhw==}
engines: {node: '>=18.0.0'}
hasBin: true
@@ -2761,8 +2761,8 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
ufo@1.5.4:
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
ufo@1.6.1:
resolution: {integrity: sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==}
unbox-primitive@1.1.0:
resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}
@@ -2797,8 +2797,8 @@ packages:
resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==}
engines: {node: '>=4'}
unimport@4.1.3:
resolution: {integrity: sha512-H+IVJ7rAkE3b+oC8rSJ2FsPaVsweeMC8eKZc+C6Mz7+hxDF45AnrY/tVCNRBvzMwWNcJEV67WdAVcal27iMjOw==}
unimport@4.2.0:
resolution: {integrity: sha512-mYVtA0nmzrysnYnyb3ALMbByJ+Maosee2+WyE0puXl+Xm2bUwPorPaaeZt0ETfuroPOtG8jj1g/qeFZ6buFnag==}
engines: {node: '>=18.12.0'}
unique-string@2.0.0:
@@ -3035,17 +3035,17 @@ packages:
workbox-window@7.3.0:
resolution: {integrity: sha512-qW8PDy16OV1UBaUNGlTVcepzrlzyzNW/ZJvFQQs2j2TzGsg6IKjcpZC1RSquqQnTOafl5pCj5bGfAHlCjOOjdA==}
workerd@1.20250404.0:
resolution: {integrity: sha512-dvXsRdy49/vd4nPENpTDFjbPvR3XdPa8lJrxcnDKL1XtoioYXflq3ys8ljuu+X71ojqAAjnQj62AzrmmKM095g==}
workerd@1.20250408.0:
resolution: {integrity: sha512-bBUX+UsvpzAqiWFNeZrlZmDGddiGZdBBbftZJz2wE6iUg/cIAJeVQYTtS/3ahaicguoLBz4nJiDo8luqM9fx1A==}
engines: {node: '>=16'}
hasBin: true
wrangler@4.7.2:
resolution: {integrity: sha512-fK9h7PL8wrrdSLCFXVDotoSHOebRmdNdB4VRkUDWOIyiP0Dx54TBfXTt3bXB98EYx7VT+vj6CNVnEC8gSCxt0w==}
wrangler@4.9.1:
resolution: {integrity: sha512-wBV0OKFp+4Ii4bFIIBRm1JJi1od5KGhzsUjWw+2jtlX/H0n2TkdskMDQtrOdV9ybFKj2h+v93VxhAEBePghAkQ==}
engines: {node: '>=18.0.0'}
hasBin: true
peerDependencies:
'@cloudflare/workers-types': ^4.20250404.0
'@cloudflare/workers-types': ^4.20250408.0
peerDependenciesMeta:
'@cloudflare/workers-types':
optional: true
@@ -3734,25 +3734,25 @@ snapshots:
dependencies:
mime: 3.0.0
'@cloudflare/unenv-preset@2.3.1(unenv@2.0.0-rc.15)(workerd@1.20250404.0)':
'@cloudflare/unenv-preset@2.3.1(unenv@2.0.0-rc.15)(workerd@1.20250408.0)':
dependencies:
unenv: 2.0.0-rc.15
optionalDependencies:
workerd: 1.20250404.0
workerd: 1.20250408.0
'@cloudflare/workerd-darwin-64@1.20250404.0':
'@cloudflare/workerd-darwin-64@1.20250408.0':
optional: true
'@cloudflare/workerd-darwin-arm64@1.20250404.0':
'@cloudflare/workerd-darwin-arm64@1.20250408.0':
optional: true
'@cloudflare/workerd-linux-64@1.20250404.0':
'@cloudflare/workerd-linux-64@1.20250408.0':
optional: true
'@cloudflare/workerd-linux-arm64@1.20250404.0':
'@cloudflare/workerd-linux-arm64@1.20250408.0':
optional: true
'@cloudflare/workerd-windows-64@1.20250404.0':
'@cloudflare/workerd-windows-64@1.20250408.0':
optional: true
'@cspotcode/source-map-support@0.8.1':
@@ -4597,7 +4597,7 @@ snapshots:
browserslist@4.24.4:
dependencies:
caniuse-lite: 1.0.30001712
electron-to-chromium: 1.5.132
electron-to-chromium: 1.5.134
node-releases: 2.0.19
update-browserslist-db: 1.1.3(browserslist@4.24.4)
@@ -4772,7 +4772,7 @@ snapshots:
dependencies:
jake: 10.9.2
electron-to-chromium@1.5.132: {}
electron-to-chromium@1.5.134: {}
entities@4.5.0: {}
@@ -5357,7 +5357,7 @@ snapshots:
mime@3.0.0: {}
miniflare@4.20250404.0:
miniflare@4.20250408.0:
dependencies:
'@cspotcode/source-map-support': 0.8.1
acorn: 8.14.0
@@ -5366,7 +5366,7 @@ snapshots:
glob-to-regexp: 0.4.1
stoppable: 1.1.0
undici: 5.29.0
workerd: 1.20250404.0
workerd: 1.20250408.0
ws: 8.18.0
youch: 3.3.4
zod: 3.22.3
@@ -5387,7 +5387,7 @@ snapshots:
acorn: 8.14.1
pathe: 2.0.3
pkg-types: 1.3.1
ufo: 1.5.4
ufo: 1.6.1
ms@2.1.3: {}
@@ -5916,7 +5916,7 @@ snapshots:
typescript@5.4.5:
optional: true
ufo@1.5.4: {}
ufo@1.6.1: {}
unbox-primitive@1.1.0:
dependencies:
@@ -5938,7 +5938,7 @@ snapshots:
exsolve: 1.0.4
ohash: 2.0.11
pathe: 2.0.3
ufo: 1.5.4
ufo: 1.6.1
unhead@1.11.20:
dependencies:
@@ -5958,7 +5958,7 @@ snapshots:
unicode-property-aliases-ecmascript@2.1.0: {}
unimport@4.1.3:
unimport@4.2.0:
dependencies:
acorn: 8.14.1
escape-string-regexp: 5.0.0
@@ -5986,7 +5986,7 @@ snapshots:
local-pkg: 1.1.1
magic-string: 0.30.17
picomatch: 4.0.2
unimport: 4.1.3
unimport: 4.2.0
unplugin: 2.2.2
unplugin-utils: 0.2.4
optionalDependencies:
@@ -6278,24 +6278,24 @@ snapshots:
'@types/trusted-types': 2.0.7
workbox-core: 7.3.0
workerd@1.20250404.0:
workerd@1.20250408.0:
optionalDependencies:
'@cloudflare/workerd-darwin-64': 1.20250404.0
'@cloudflare/workerd-darwin-arm64': 1.20250404.0
'@cloudflare/workerd-linux-64': 1.20250404.0
'@cloudflare/workerd-linux-arm64': 1.20250404.0
'@cloudflare/workerd-windows-64': 1.20250404.0
'@cloudflare/workerd-darwin-64': 1.20250408.0
'@cloudflare/workerd-darwin-arm64': 1.20250408.0
'@cloudflare/workerd-linux-64': 1.20250408.0
'@cloudflare/workerd-linux-arm64': 1.20250408.0
'@cloudflare/workerd-windows-64': 1.20250408.0
wrangler@4.7.2:
wrangler@4.9.1:
dependencies:
'@cloudflare/kv-asset-handler': 0.4.0
'@cloudflare/unenv-preset': 2.3.1(unenv@2.0.0-rc.15)(workerd@1.20250404.0)
'@cloudflare/unenv-preset': 2.3.1(unenv@2.0.0-rc.15)(workerd@1.20250408.0)
blake3-wasm: 2.1.5
esbuild: 0.24.2
miniflare: 4.20250404.0
miniflare: 4.20250408.0
path-to-regexp: 6.3.0
unenv: 2.0.0-rc.15
workerd: 1.20250404.0
workerd: 1.20250408.0
optionalDependencies:
fsevents: 2.3.3
sharp: 0.33.5