diff --git a/package-lock.json b/package-lock.json index f0923ee..1e4d233 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,9 +28,9 @@ "@typescript/vfs": "1.6.0", "@web/dev-server-esbuild": "1.0.2", "@web/test-runner": "0.19.0", - "@zenfs/core": "0.9.7", - "@zenfs/dom": "0.2.6", - "@zenfs/zip": "0.3.1", + "@zenfs/core": "1.2.7", + "@zenfs/dom": "1.0.3", + "@zenfs/zip": "0.5.2", "codemirror": "6.0.1", "esbuild": "0.24.0", "idb-keyval": "6.2.1", @@ -1740,12 +1740,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.12.12", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", - "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "version": "20.17.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.3.tgz", + "integrity": "sha512-tSQrmKKatLDGnG92h40GD7FzUt0MjahaHwOME4VAFeeA/Xopayq5qLyQRy7Jg/pjgKIFBXuKcGhJo+UdYG55jQ==", "dev": true, + "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.2" } }, "node_modules/@types/parse5": { @@ -1815,6 +1816,14 @@ "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", "dev": true }, + "node_modules/@types/wicg-file-system-access": { + "version": "2020.9.8", + "resolved": "https://registry.npmjs.org/@types/wicg-file-system-access/-/wicg-file-system-access-2020.9.8.tgz", + "integrity": "sha512-ggMz8nOygG7d/stpH40WVaNvBwuyYLnrg5Mbyf6bmsj/8+gb6Ei4ZZ9/4PNpcPNTT8th9Q8sM8wYmWGjMWLX/A==", + "dev": true, + "license": "MIT", + "optional": true + }, "node_modules/@types/ws": { "version": "7.4.7", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.4.7.tgz", @@ -2616,53 +2625,88 @@ "node": ">=18.0.0" } }, + "node_modules/@xterm/xterm": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@xterm/xterm/-/xterm-5.5.0.tgz", + "integrity": "sha512-hqJHYaQb5OptNunnyAnkHyM8aCjZ1MEIDTQu1iIbbTD/xops91NB5yq1ZK/dC2JDbVWtF23zUtl9JE2NqwT87A==", + "dev": true, + "license": "MIT", + "optional": true + }, "node_modules/@zenfs/core": { - "version": "0.9.7", - "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-0.9.7.tgz", - "integrity": "sha512-Lmwt1DPhJy07Qx4m4JrzyB8LNBbe5SMq5Z+ZpLjJRfMcSHkoy64l+t8njADVKl0mns91tzo2hEcHNfKG/5Pxog==", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-1.2.7.tgz", + "integrity": "sha512-sfZy8Baljw+xwW8ZXa3KmH7lLbAL0CJP00iyKJP9aUT1vlG3TIoiQ10Ge0l+OhaUlQSCg6fnbZ113kfcnKqDBA==", "dev": true, + "license": "MIT", "dependencies": { - "@types/node": "^20.12.5", + "@types/node": "^20.16.10", "@types/readable-stream": "^4.0.10", "buffer": "^6.0.3", + "eventemitter3": "^5.0.1", "minimatch": "^9.0.3", "readable-stream": "^4.5.2", - "utilium": "^0.2.1" + "utilium": "^1.0.0" }, "bin": { - "build": "scripts/build.js", - "make-index": "scripts/make-index.js" + "make-index": "scripts/make-index.js", + "zenfs-test": "scripts/test.js" }, "engines": { - "node": ">= 18" + "node": ">= 16" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/james-pre" } }, + "node_modules/@zenfs/core/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "dev": true, + "license": "MIT" + }, "node_modules/@zenfs/dom": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@zenfs/dom/-/dom-0.2.6.tgz", - "integrity": "sha512-TCo40azeN9b/W8z1TS0DhCUJPW0S8I5ypMOcizJ8aK4NZmC/b+bYAwrdUITHRZOatgHEncIxeK3gxXC9SaD68Q==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@zenfs/dom/-/dom-1.0.3.tgz", + "integrity": "sha512-u1U9w9zX40RDZthM/yHJO3t5mKII6wYBNkt3H/YqB62oGaLzj9NlXWYXPFpstKAzk2xRbXE6anwujgvc+nmeWA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 18" }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/james-pre" + }, + "optionalDependencies": { + "fake-indexeddb": "^6.0.0", + "file-system-access": "^1.0.4" + }, "peerDependencies": { - "@zenfs/core": "^0.9.7" + "@zenfs/core": "^1.2.0" } }, "node_modules/@zenfs/zip": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@zenfs/zip/-/zip-0.3.1.tgz", - "integrity": "sha512-1Rx2qxVYNT2hb537z1xfwfFz289DIIFzhzJtVb2WoiZpz+CuXurBLYzrqI+PMojmWu+Qg9qy6kbkb2XhlGYSzQ==", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@zenfs/zip/-/zip-0.5.2.tgz", + "integrity": "sha512-1rrYJ7SWiIqa2+TCoaOY5QjTScMhPim0odpbuwrzukIW+NAR3ZGqkuMVc7/hlkdj2nxpGuvini53vWyWNwdhWQ==", "dev": true, + "license": "MIT", "dependencies": { "fflate": "^0.8.2", - "utilium": "^0.3.4" + "utilium": "^1.0.0" }, "engines": { "node": ">= 18" }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/james-pre" + }, "peerDependencies": { - "@zenfs/core": "^0.9.2" + "@zenfs/core": "^1.0.11" } }, "node_modules/@zenfs/zip/node_modules/fflate": { @@ -2671,12 +2715,6 @@ "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", "dev": true }, - "node_modules/@zenfs/zip/node_modules/utilium": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.3.4.tgz", - "integrity": "sha512-qk6wXThaKkeigQchXWEmTw388ZPvKHwYzpkcII/azXuE8OgQypOKH1j+fA6M88ucpqEdHqldXjNKzHya2S9lHA==", - "dev": true - }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -4671,6 +4709,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/fake-indexeddb": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/fake-indexeddb/-/fake-indexeddb-6.0.0.tgz", + "integrity": "sha512-YEboHE5VfopUclOck7LncgIqskAqnv4q0EWbYCaxKKjAvO93c+TJIaBuGy8CBFdbg9nKdpN3AuPRwVBJ4k7NrQ==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=18" + } + }, "node_modules/fast-fifo": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", @@ -4713,6 +4762,50 @@ "pend": "~1.2.0" } }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "optional": true, + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/file-system-access": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/file-system-access/-/file-system-access-1.0.4.tgz", + "integrity": "sha512-JDlhH+gJfZu/oExmtN4/6VX+q1etlrbJbR5uzoBa4BzfTRQbEXGFuGIBRk3ZcPocko3WdEclZSu+d/SByjG6Rg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@types/wicg-file-system-access": "^2020.9.2", + "fetch-blob": "^3.0.0", + "node-domexception": "^1.0.0" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "web-streams-polyfill": "^3.1.0" + } + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -6205,6 +6298,27 @@ "nice-grpc-common": "^2.0.2" } }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "optional": true, + "engines": { + "node": ">=10.5.0" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -7804,10 +7918,11 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true, + "license": "MIT" }, "node_modules/universalify": { "version": "2.0.1", @@ -7836,10 +7951,24 @@ "license": "MIT" }, "node_modules/utilium": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.2.1.tgz", - "integrity": "sha512-uLn55gYhtxFcS2X6rgvd3+aIEx5xVA3GBQgBkyJRdKAHxXXYiyB5P6ZmL/94HIWvgZaVs8xnNRCiiiRUBqyUIA==", - "dev": true + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/utilium/-/utilium-1.0.4.tgz", + "integrity": "sha512-EGesAFASk3rUTA60heHpw9aspYzRbKe5+3+QO3bS/MoXdEZr0WbMI8SQ6PgI9aEXEUKiKdWnLv4zbArbAW8ohQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eventemitter3": "^5.0.1" + }, + "optionalDependencies": { + "@xterm/xterm": "^5.5.0" + } + }, + "node_modules/utilium/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "dev": true, + "license": "MIT" }, "node_modules/uuid": { "version": "9.0.0", @@ -8200,6 +8329,17 @@ "node": ">=14.17" } }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/webidl-conversions": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", diff --git a/package.json b/package.json index e25dd3b..96c0b72 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,9 @@ "@typescript/vfs": "1.6.0", "@web/dev-server-esbuild": "1.0.2", "@web/test-runner": "0.19.0", - "@zenfs/core": "0.9.7", - "@zenfs/dom": "0.2.6", - "@zenfs/zip": "0.3.1", + "@zenfs/core": "1.2.7", + "@zenfs/dom": "1.0.3", + "@zenfs/zip": "0.5.2", "codemirror": "6.0.1", "esbuild": "0.24.0", "idb-keyval": "6.2.1", @@ -60,7 +60,7 @@ "gzip": "3.5 KB" }, "dist/play-pen.js": { - "none": "26580 KB", + "none": "26681 KB", "gzip": "4826 KB" } }, diff --git a/src/elements/play-assets/play-assets.ts b/src/elements/play-assets/play-assets.ts index c655e7b..470257d 100644 --- a/src/elements/play-assets/play-assets.ts +++ b/src/elements/play-assets/play-assets.ts @@ -224,7 +224,7 @@ export class PlayAssets extends ReactiveElement { file = fileHandle as File await this.#cacheClear() } - await this.#mountRoot(Zip.create({zipData: await file.arrayBuffer()})) + await this.#mountRoot(Zip.create({data: await file.arrayBuffer()})) this.#updateState({archiveFilename: fileHandle.name}) }