diff --git a/package.json b/package.json index 6a8f680..27da98f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "type": "module", - "packageManager": "pnpm@9.5.0", + "packageManager": "pnpm@9.7.0", "scripts": { "build": "nuxt build", "dev": "nuxt dev -o", @@ -21,7 +21,7 @@ "eslint": "^9.8.0", "happy-dom": "^14.12.3", "nuxt": "^3.12.4", - "nuxt-echarts": "^0.2.1", + "nuxt-echarts": "0.2.1", "playwright-core": "^1.46.0", "prettier": "^3.3.3", "rollup-plugin-regexp": "^5.0.1", @@ -39,6 +39,9 @@ "allowedVersions": { "@typescript-eslint/utils>eslint": "^9.0.0" } + }, + "patchedDependencies": { + "nuxt-echarts": "patches/nuxt-echarts.patch" } } } diff --git a/patches/nuxt-echarts.patch b/patches/nuxt-echarts.patch new file mode 100644 index 0000000..567229e --- /dev/null +++ b/patches/nuxt-echarts.patch @@ -0,0 +1,13 @@ +diff --git a/dist/runtime/utils/wc.js b/dist/runtime/utils/wc.js +index 91b8b2e7e40cda93e3c75450128a71cd4e783009..d6330a6db557b0e3c83823e802227291ac70fb56 100644 +--- a/dist/runtime/utils/wc.js ++++ b/dist/runtime/utils/wc.js +@@ -1,7 +1,7 @@ + let registered = null; + export const TAG_NAME = "x-vue-echarts"; + if (import.meta.server) { +- global.HTMLElement = Object; ++ globalThis.HTMLElement = Object; + } + export class EChartsElement extends HTMLElement { + __dispose = null; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index efc55bd..9753a86 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + nuxt-echarts: + hash: jlk32fl7odckzxtymmgi56bsum + path: patches/nuxt-echarts.patch + importers: .: @@ -13,7 +18,7 @@ importers: version: 0.5.3(magicast@0.3.4)(rollup@4.20.0)(typescript@5.5.4)(vue@3.4.37(typescript@5.5.4)) '@vueuse/nuxt': specifier: ^10.11.1 - version: 10.11.1(magicast@0.3.4)(nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.20.0)(vue@3.4.37(typescript@5.5.4)) + version: 10.11.1(magicast@0.3.4)(nuxt@3.12.4(@netlify/blobs@7.4.0)(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.20.0)(vue@3.4.37(typescript@5.5.4)) nuxt-auth-utils: specifier: ^0.3.2 version: 0.3.2(magicast@0.3.4)(rollup@4.20.0) @@ -26,7 +31,7 @@ importers: version: 0.5.0(eslint@9.8.0)(magicast@0.3.4)(rollup@4.20.0)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5)) '@nuxt/test-utils': specifier: ^3.14.0 - version: 3.14.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)) + version: 3.14.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)) '@vue/test-utils': specifier: ^2.4.6 version: 2.4.6 @@ -38,10 +43,10 @@ importers: version: 14.12.3 nuxt: specifier: ^3.12.4 - version: 3.12.4(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)) + version: 3.12.4(@netlify/blobs@7.4.0)(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)) nuxt-echarts: - specifier: ^0.2.1 - version: 0.2.1(echarts@5.5.1)(magicast@0.3.4)(rollup@4.20.0) + specifier: 0.2.1 + version: 0.2.1(patch_hash=jlk32fl7odckzxtymmgi56bsum)(echarts@5.5.1)(magicast@0.3.4)(rollup@4.20.0) playwright-core: specifier: ^1.46.0 version: 1.46.0 @@ -742,6 +747,10 @@ packages: '@mdi/js@7.4.47': resolution: {integrity: sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ==} + '@netlify/blobs@7.4.0': + resolution: {integrity: sha512-7rdPzo8bggt3D2CVO+U1rmEtxxs8X7cLusDbHZRJaMlxqxBD05mXgThj5DUJMFOvmfVjhEH/S/3AyiLUbDQGDg==} + engines: {node: ^14.16.0 || >=16.0.0} + '@netlify/functions@2.8.1': resolution: {integrity: sha512-+6wtYdoz0yE06dSa9XkP47tw5zm6g13QMeCwM3MmHx1vn8hzwFa51JtmfraprdkL7amvb7gaNM+OOhQU1h6T8A==} engines: {node: '>=14.0.0'} @@ -4897,6 +4906,9 @@ snapshots: '@mdi/js@7.4.47': {} + '@netlify/blobs@7.4.0': + optional: true + '@netlify/functions@2.8.1': dependencies: '@netlify/serverless-functions-api': 1.19.1 @@ -5133,7 +5145,7 @@ snapshots: - rollup - supports-color - '@nuxt/test-utils@3.14.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4))': + '@nuxt/test-utils@3.14.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4))': dependencies: '@nuxt/kit': 3.12.4(magicast@0.3.4)(rollup@4.20.0) '@nuxt/schema': 3.12.4(rollup@4.20.0) @@ -5148,7 +5160,7 @@ snapshots: h3: 1.12.0 local-pkg: 0.5.0 magic-string: 0.30.11 - nitropack: 2.9.7(encoding@0.1.13)(magicast@0.3.4) + nitropack: 2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4) node-fetch-native: 1.6.4 ofetch: 1.3.4 pathe: 1.1.2 @@ -5160,7 +5172,7 @@ snapshots: unenv: 1.10.0 unplugin: 1.12.1 vite: 5.4.0(@types/node@22.1.0)(terser@5.31.5) - vitest-environment-nuxt: 1.0.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)) + vitest-environment-nuxt: 1.0.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)) vue: 3.4.37(typescript@5.5.4) vue-router: 4.4.3(vue@3.4.37(typescript@5.5.4)) optionalDependencies: @@ -5901,13 +5913,13 @@ snapshots: '@vueuse/metadata@10.11.1': {} - '@vueuse/nuxt@10.11.1(magicast@0.3.4)(nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.20.0)(vue@3.4.37(typescript@5.5.4))': + '@vueuse/nuxt@10.11.1(magicast@0.3.4)(nuxt@3.12.4(@netlify/blobs@7.4.0)(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.20.0)(vue@3.4.37(typescript@5.5.4))': dependencies: '@nuxt/kit': 3.12.4(magicast@0.3.4)(rollup@4.20.0) '@vueuse/core': 10.11.1(vue@3.4.37(typescript@5.5.4)) '@vueuse/metadata': 10.11.1 local-pkg: 0.5.0 - nuxt: 3.12.4(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)) + nuxt: 3.12.4(@netlify/blobs@7.4.0)(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)) vue-demi: 0.14.10(vue@3.4.37(typescript@5.5.4)) transitivePeerDependencies: - '@vue/composition-api' @@ -7452,7 +7464,7 @@ snapshots: natural-compare@1.4.0: {} - nitropack@2.9.7(encoding@0.1.13)(magicast@0.3.4): + nitropack@2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4): dependencies: '@cloudflare/kv-asset-handler': 0.3.4 '@netlify/functions': 2.8.1 @@ -7518,7 +7530,7 @@ snapshots: unctx: 2.3.1 unenv: 1.10.0 unimport: 3.10.0(rollup@4.20.0) - unstorage: 1.10.2(ioredis@5.4.1) + unstorage: 1.10.2(@netlify/blobs@7.4.0)(ioredis@5.4.1) unwasm: 0.3.9 transitivePeerDependencies: - '@azure/app-configuration' @@ -7613,7 +7625,7 @@ snapshots: - rollup - supports-color - nuxt-echarts@0.2.1(echarts@5.5.1)(magicast@0.3.4)(rollup@4.20.0): + nuxt-echarts@0.2.1(patch_hash=jlk32fl7odckzxtymmgi56bsum)(echarts@5.5.1)(magicast@0.3.4)(rollup@4.20.0): dependencies: '@nuxt/kit': 3.12.4(magicast@0.3.4)(rollup@4.20.0) echarts: 5.5.1 @@ -7622,7 +7634,7 @@ snapshots: - rollup - supports-color - nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)): + nuxt@3.12.4(@netlify/blobs@7.4.0)(@parcel/watcher@2.4.1)(@types/node@22.1.0)(encoding@0.1.13)(eslint@9.8.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.20.0)(terser@5.31.5)(typescript@5.5.4)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vue-tsc@2.0.29(typescript@5.5.4)): dependencies: '@nuxt/devalue': 2.0.2 '@nuxt/devtools': 1.3.9(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5)) @@ -7656,7 +7668,7 @@ snapshots: knitwork: 1.1.0 magic-string: 0.30.11 mlly: 1.7.1 - nitropack: 2.9.7(encoding@0.1.13)(magicast@0.3.4) + nitropack: 2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4) nuxi: 3.12.0 nypm: 0.3.9 ofetch: 1.3.4 @@ -7677,7 +7689,7 @@ snapshots: unimport: 3.10.0(rollup@4.20.0) unplugin: 1.12.1 unplugin-vue-router: 0.10.2(rollup@4.20.0)(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)) - unstorage: 1.10.2(ioredis@5.4.1) + unstorage: 1.10.2(@netlify/blobs@7.4.0)(ioredis@5.4.1) untyped: 1.4.2 vue: 3.4.37(typescript@5.5.4) vue-bundle-renderer: 2.1.0 @@ -8634,7 +8646,7 @@ snapshots: webpack-sources: 3.2.3 webpack-virtual-modules: 0.6.2 - unstorage@1.10.2(ioredis@5.4.1): + unstorage@1.10.2(@netlify/blobs@7.4.0)(ioredis@5.4.1): dependencies: anymatch: 3.1.3 chokidar: 3.6.0 @@ -8647,6 +8659,7 @@ snapshots: ofetch: 1.3.4 ufo: 1.5.4 optionalDependencies: + '@netlify/blobs': 7.4.0 ioredis: 5.4.1 transitivePeerDependencies: - uWebSockets.js @@ -8800,9 +8813,9 @@ snapshots: fsevents: 2.3.3 terser: 5.31.5 - vitest-environment-nuxt@1.0.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)): + vitest-environment-nuxt@1.0.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)): dependencies: - '@nuxt/test-utils': 3.14.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)) + '@nuxt/test-utils': 3.14.0(@vue/test-utils@2.4.6)(h3@1.12.0)(happy-dom@14.12.3)(magicast@0.3.4)(nitropack@2.9.7(@netlify/blobs@7.4.0)(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.46.0)(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(terser@5.31.5))(vitest@2.0.5(@types/node@22.1.0)(happy-dom@14.12.3)(terser@5.31.5))(vue-router@4.4.3(vue@3.4.37(typescript@5.5.4)))(vue@3.4.37(typescript@5.5.4)) transitivePeerDependencies: - '@cucumber/cucumber' - '@jest/globals'