diff --git a/package-lock.json b/package-lock.json index 7de167d..6401c88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,13 +13,13 @@ "@xterm/addon-fit": "^0.10.0", "@xterm/addon-web-links": "^0.11.0", "@xterm/xterm": "^5.5.0", - "@zenfs/core": "^1.0.10", - "@zenfs/dom": "^0.2.17", - "@zenfs/iso": "^0.3.0", - "@zenfs/zip": "^0.5.1", + "@zenfs/core": "^1.1.0", + "@zenfs/dom": "^1.0.0", + "@zenfs/iso": "^0.3.3", + "@zenfs/zip": "^0.5.2", "chalk": "^5.3.0", "jquery": "^3.7.1", - "utilium": "^0.8.8" + "utilium": "^1.0.0" }, "devDependencies": { "@eslint/js": "^9.12.0", @@ -783,6 +783,13 @@ "integrity": "sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==", "license": "MIT" }, + "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==", + "license": "MIT", + "optional": true + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.8.1.tgz", @@ -1011,9 +1018,9 @@ "license": "MIT" }, "node_modules/@zenfs/core": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-1.0.10.tgz", - "integrity": "sha512-aUCOOjz/3qA6aGbD41F33U71DgPauJeirzg0HJtxE3h4lSJFs5+xeOFdO7yqAEliepMO24LIInWwlNKRRgfQag==", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-1.2.7.tgz", + "integrity": "sha512-sfZy8Baljw+xwW8ZXa3KmH7lLbAL0CJP00iyKJP9aUT1vlG3TIoiQ10Ge0l+OhaUlQSCg6fnbZ113kfcnKqDBA==", "license": "MIT", "dependencies": { "@types/node": "^20.16.10", @@ -1022,13 +1029,18 @@ "eventemitter3": "^5.0.1", "minimatch": "^9.0.3", "readable-stream": "^4.5.2", - "utilium": "^0.7.4" + "utilium": "^1.0.0" }, "bin": { - "make-index": "scripts/make-index.js" + "make-index": "scripts/make-index.js", + "zenfs-test": "scripts/test.js" }, "engines": { "node": ">= 16" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/james-pre" } }, "node_modules/@zenfs/core/node_modules/@types/node": { @@ -1040,74 +1052,63 @@ "undici-types": "~6.19.2" } }, - "node_modules/@zenfs/core/node_modules/utilium": { - "version": "0.7.10", - "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.7.10.tgz", - "integrity": "sha512-xMKSCp+AeKuuh+tqJQG45ge4gTgb47dXVooePDidJY/G07kYIIId1M9XXcClDs3HZbk/Whz+Ih6inYZmZVcdeQ==", - "license": "MIT", - "dependencies": { - "eventemitter3": "^5.0.1" - } - }, "node_modules/@zenfs/dom": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/@zenfs/dom/-/dom-0.2.17.tgz", - "integrity": "sha512-DdH5ZFk9tTyFUlyHTAxnc/qj0Sq9z/jpt2JAbPrVRoVmV5Z41em34Jgw1u89bxaw1mRkJl8F1tbl8ZKdGnh1KA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@zenfs/dom/-/dom-1.0.3.tgz", + "integrity": "sha512-u1U9w9zX40RDZthM/yHJO3t5mKII6wYBNkt3H/YqB62oGaLzj9NlXWYXPFpstKAzk2xRbXE6anwujgvc+nmeWA==", "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": "^1.0.4" + "@zenfs/core": "^1.2.0" } }, "node_modules/@zenfs/iso": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@zenfs/iso/-/iso-0.3.0.tgz", - "integrity": "sha512-cTLU7x0CUrzVw763JYWz1GFs5W7ucqvnStMQ+MoZ5JzRtnfWQrA1BxFiGryBzXmnCjKvOcMZAmJ64hzO3tZ/Lg==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@zenfs/iso/-/iso-0.3.3.tgz", + "integrity": "sha512-ZchACrdNL8vwAYtIYdtjaPBabkdlZUfSdiLDXkD6Sy9edg17qkKXT6vljZ0/YekwOsYaMSqlN40LxZ9QH7vLXA==", "license": "MIT", "dependencies": { - "utilium": "^0.7.0" + "utilium": "^1.0.0" }, "engines": { "node": ">= 18" }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/james-pre" + }, "peerDependencies": { - "@zenfs/core": "^1.0.2" - } - }, - "node_modules/@zenfs/iso/node_modules/utilium": { - "version": "0.7.10", - "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.7.10.tgz", - "integrity": "sha512-xMKSCp+AeKuuh+tqJQG45ge4gTgb47dXVooePDidJY/G07kYIIId1M9XXcClDs3HZbk/Whz+Ih6inYZmZVcdeQ==", - "license": "MIT", - "dependencies": { - "eventemitter3": "^5.0.1" + "@zenfs/core": "^1.2.0" } }, "node_modules/@zenfs/zip": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/@zenfs/zip/-/zip-0.5.1.tgz", - "integrity": "sha512-Fh/Cz+B0oxXV/6YKpvhEE/hfjTWCL6JC+J4rUu9bzG4WcqM8Rzq9Nodh4jCq6Yg4rrDqjHTI5uTrVUpea62+RA==", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@zenfs/zip/-/zip-0.5.2.tgz", + "integrity": "sha512-1rrYJ7SWiIqa2+TCoaOY5QjTScMhPim0odpbuwrzukIW+NAR3ZGqkuMVc7/hlkdj2nxpGuvini53vWyWNwdhWQ==", "license": "MIT", "dependencies": { "fflate": "^0.8.2", - "utilium": "^0.7.0" + "utilium": "^1.0.0" }, "engines": { "node": ">= 18" }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/james-pre" + }, "peerDependencies": { - "@zenfs/core": "^1.0.4" - } - }, - "node_modules/@zenfs/zip/node_modules/utilium": { - "version": "0.7.10", - "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.7.10.tgz", - "integrity": "sha512-xMKSCp+AeKuuh+tqJQG45ge4gTgb47dXVooePDidJY/G07kYIIId1M9XXcClDs3HZbk/Whz+Ih6inYZmZVcdeQ==", - "license": "MIT", - "dependencies": { - "eventemitter3": "^5.0.1" + "@zenfs/core": "^1.0.11" } }, "node_modules/abort-controller": { @@ -1619,6 +1620,16 @@ "node": ">=0.8.x" } }, + "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==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=18" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -1680,6 +1691,30 @@ "reusify": "^1.0.4" } }, + "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==", + "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/fflate": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", @@ -1699,6 +1734,24 @@ "node": ">=16.0.0" } }, + "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==", + "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", @@ -2058,6 +2111,26 @@ "dev": true, "license": "MIT" }, + "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==", + "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/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", @@ -2957,9 +3030,9 @@ } }, "node_modules/utilium": { - "version": "0.8.8", - "resolved": "https://registry.npmjs.org/utilium/-/utilium-0.8.8.tgz", - "integrity": "sha512-u9IiV0yWciXiwSsNe+w7ufvbA7MLCad0wz1RilexnzIwDKAqYBpx2ITz2Dc/0ULAHER3MrM2k2M8NbGXNFri4w==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/utilium/-/utilium-1.0.4.tgz", + "integrity": "sha512-EGesAFASk3rUTA60heHpw9aspYzRbKe5+3+QO3bS/MoXdEZr0WbMI8SQ6PgI9aEXEUKiKdWnLv4zbArbAW8ohQ==", "license": "MIT", "dependencies": { "eventemitter3": "^5.0.1" @@ -2968,6 +3041,16 @@ "@xterm/xterm": "^5.5.0" } }, + "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==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/package.json b/package.json index d2f03bf..2de71ae 100644 --- a/package.json +++ b/package.json @@ -30,13 +30,13 @@ "@xterm/addon-fit": "^0.10.0", "@xterm/addon-web-links": "^0.11.0", "@xterm/xterm": "^5.5.0", - "@zenfs/core": "^1.0.10", - "@zenfs/dom": "^0.2.17", - "@zenfs/iso": "^0.3.0", - "@zenfs/zip": "^0.5.1", + "@zenfs/core": "^1.1.0", + "@zenfs/dom": "^1.0.0", + "@zenfs/iso": "^0.3.3", + "@zenfs/zip": "^0.5.2", "chalk": "^5.3.0", "jquery": "^3.7.1", - "utilium": "^0.8.8" + "utilium": "^1.0.0" }, "devDependencies": { "@eslint/js": "^9.12.0", diff --git a/src/common.ts b/src/common.ts index 9b4277c..569d8b5 100644 --- a/src/common.ts +++ b/src/common.ts @@ -1,5 +1,5 @@ import { configure, Fetch, fs, InMemory, Overlay } from '@zenfs/core'; -import { cd, cwd, resolve } from '@zenfs/core/emulation/path.js'; +import { cd, cwd, resolve } from '@zenfs/core/path'; import $ from 'jquery'; import * as editor from './editor.js'; import { update as updateExplorer } from './explorer.js'; diff --git a/src/explorer.ts b/src/explorer.ts index dc62433..001b029 100644 --- a/src/explorer.ts +++ b/src/explorer.ts @@ -1,5 +1,5 @@ import { fs } from '@zenfs/core'; -import { cwd, dirname, join } from '@zenfs/core/emulation/path.js'; +import { cwd, dirname, join } from '@zenfs/core/path'; import $ from 'jquery'; import { formatCompact } from 'utilium'; import { cloneTemplate } from 'utilium/dom.js'; diff --git a/src/index.ts b/src/index.ts index 4b02f64..4d9a683 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import './config.js'; import './editor.js'; import { location } from './explorer.js'; import './shell.js'; -import { cwd, isAbsolute } from '@zenfs/core/emulation/path.js'; +import { cwd, isAbsolute } from '@zenfs/core/path'; import { fs } from '@zenfs/core'; import { openPath, switchTab } from './common.js'; diff --git a/src/shell.ts b/src/shell.ts index 12cef28..ca3ff7d 100644 --- a/src/shell.ts +++ b/src/shell.ts @@ -4,7 +4,7 @@ import { WebLinksAddon } from '@xterm/addon-web-links'; import { Terminal } from '@xterm/xterm'; import { resolveMountConfig as __mount_resolve, fs } from '@zenfs/core'; import { X_OK } from '@zenfs/core/emulation/constants.js'; -import * as path from '@zenfs/core/emulation/path.js'; +import * as path from '@zenfs/core/path'; import chalk from 'chalk'; import $ from 'jquery'; import { createShell } from 'utilium/shell.js'; diff --git a/system/bin/lib.d.ts b/system/bin/lib.d.ts index e69e01a..d2049c6 100644 --- a/system/bin/lib.d.ts +++ b/system/bin/lib.d.ts @@ -1,5 +1,5 @@ import type { fs as _fs, resolveMountConfig } from '@zenfs/core'; -import type * as _path from '@zenfs/core/emulation/path.js'; +import type * as _path from '@zenfs/core/path'; import type { Terminal } from '@xterm/xterm'; declare global {