From f4f68ba1317d844621254994367d1566042603ff Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 3 Jan 2025 13:13:14 +0300 Subject: [PATCH] feat: update import path for shiki languages (#2942) --- package.json | 3 +- pnpm-lock.yaml | 370 ++++++++++++------------------------- src/utils/content/index.ts | 2 +- 3 files changed, 123 insertions(+), 252 deletions(-) diff --git a/package.json b/package.json index f01c0efa9..14540f995 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ }, "dependencies": { "@nuxtjs/mdc": "^0.12.0", + "@shikijs/langs": "^1.25.1", "@sqlite.org/sqlite-wasm": "3.47.2-build1", "better-sqlite3": "^11.7.0", "c12": "^2.0.1", @@ -76,7 +77,7 @@ "pkg-types": "^1.3.0", "remark-mdc": "latest", "scule": "^1.3.0", - "shiki": "^1.24.4", + "shiki": "^1.25.1", "slugify": "^1.6.6", "socket.io-client": "^4.8.1", "tar": "^7.4.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ecc384007..776b259f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,7 +17,10 @@ importers: version: 0.14.0 '@nuxtjs/mdc': specifier: ^0.12.0 - version: 0.12.0(magicast@0.3.5)(rollup@3.29.5) + version: 0.12.0(magicast@0.3.5)(rollup@4.29.1) + '@shikijs/langs': + specifier: ^1.25.1 + version: 1.25.1 '@sqlite.org/sqlite-wasm': specifier: 3.47.2-build1 version: 3.47.2-build1 @@ -83,7 +86,7 @@ importers: version: 10.0.1 nuxt-component-meta: specifier: ^0.9.0 - version: 0.9.0(magicast@0.3.5)(rollup@3.29.5) + version: 0.9.0(magicast@0.3.5)(rollup@4.29.1) ohash: specifier: ^1.1.4 version: 1.1.4 @@ -106,8 +109,8 @@ importers: specifier: ^1.3.0 version: 1.3.0 shiki: - specifier: ^1.24.4 - version: 1.24.4 + specifier: ^1.25.1 + version: 1.25.1 slugify: specifier: ^1.6.6 version: 1.6.6 @@ -153,22 +156,22 @@ importers: version: 'link:' '@nuxt/devtools': specifier: ^1.7.0 - version: 1.7.0(rollup@3.29.5)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue@3.5.13(typescript@5.6.3)) + version: 1.7.0(rollup@4.29.1)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue@3.5.13(typescript@5.6.3)) '@nuxt/eslint-config': specifier: ^0.7.4 version: 0.7.4(@vue/compiler-sfc@3.5.13)(eslint@9.17.0(jiti@2.4.2))(typescript@5.6.3) '@nuxt/kit': specifier: ^3.15.0 - version: 3.15.0(magicast@0.3.5)(rollup@3.29.5) + version: 3.15.0(magicast@0.3.5)(rollup@4.29.1) '@nuxt/module-builder': specifier: ^0.8.4 - version: 0.8.4(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@3.29.5))(nuxi@3.17.2)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3)) + version: 0.8.4(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(nuxi@3.17.2)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3)) '@nuxt/schema': specifier: ^3.15.0 - version: 3.15.0(magicast@0.3.5)(rollup@3.29.5) + version: 3.15.0(magicast@0.3.5)(rollup@4.29.1) '@nuxt/test-utils': specifier: ^3.15.1 - version: 3.15.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) + version: 3.15.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) '@release-it/conventional-changelog': specifier: ^9.0.4 version: 9.0.4(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.0.0)(release-it@17.11.0(typescript@5.6.3)) @@ -204,7 +207,7 @@ importers: version: 2.0.1 nuxt: specifier: ^3.15.0 - version: 3.15.0(@libsql/client@0.14.0)(@parcel/watcher@2.5.0)(@types/node@22.10.2)(better-sqlite3@11.7.0)(db0@0.2.1(@libsql/client@0.14.0)(better-sqlite3@11.7.0))(eslint@9.17.0(jiti@2.4.2))(ioredis@5.4.2)(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue-tsc@2.2.0(typescript@5.6.3))(yaml@2.6.1) + version: 3.15.0(@libsql/client@0.14.0)(@parcel/watcher@2.5.0)(@types/node@22.10.2)(better-sqlite3@11.7.0)(db0@0.2.1(@libsql/client@0.14.0)(better-sqlite3@11.7.0))(eslint@9.17.0(jiti@2.4.2))(ioredis@5.4.2)(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue-tsc@2.2.0(typescript@5.6.3))(yaml@2.6.1) release-it: specifier: ^17.11.0 version: 17.11.0(typescript@5.6.3) @@ -2145,18 +2148,36 @@ packages: '@shikijs/core@1.24.4': resolution: {integrity: sha512-jjLsld+xEEGYlxAXDyGwWsKJ1sw5Pc1pnp4ai2ORpjx2UX08YYTC0NNqQYO1PaghYaR+PvgMOGuvzw2he9sk0Q==} + '@shikijs/core@1.25.1': + resolution: {integrity: sha512-0j5k3ZkLTQViOuNzPVyWGoW1zgH3kiFdUT/JOCkTm7TU74mz+dF+NID+YoiCBzHQxgsDpcGYPjKDJRcuVLSt4A==} + '@shikijs/engine-javascript@1.24.4': resolution: {integrity: sha512-TClaQOLvo9WEMJv6GoUsykQ6QdynuKszuORFWCke8qvi6PeLm7FcD9+7y45UenysxEWYpDL5KJaVXTngTE+2BA==} + '@shikijs/engine-javascript@1.25.1': + resolution: {integrity: sha512-zQ7UWKnRCfD/Q1M+XOSyjsbhpE0qv8LUnmn82HYCeOsgAHgUZGEDIQ63bbuK3kU5sQg+2CtI+dPfOqD/mjSY9w==} + '@shikijs/engine-oniguruma@1.24.4': resolution: {integrity: sha512-Do2ry6flp2HWdvpj2XOwwa0ljZBRy15HKZITzPcNIBOGSeprnA8gOooA/bLsSPuy8aJBa+Q/r34dMmC3KNL/zw==} + '@shikijs/engine-oniguruma@1.25.1': + resolution: {integrity: sha512-iKPMh3H+0USHtWfZ1irfMTH6tGmIUFSnqt3E2K8BgI1VEsqiPh0RYkG2WTwzNiM1/WHN4FzYx/nrKR7PDHiRyw==} + + '@shikijs/langs@1.25.1': + resolution: {integrity: sha512-hdYjq9aRJplAzGe2qF51PR9IDgEoyGb4IkXvr3Ts6lEdg4Z8M/kdknKRo2EIuv3IR/aKkJXTlBQRM+wr3t20Ew==} + + '@shikijs/themes@1.25.1': + resolution: {integrity: sha512-JO0lDn4LgGqg5QKvgich5ScUmC2okK+LxM9a3iLUH7YMeI2c8UGXThuJv6sZduS7pdJbYQHPrvWq9t/V4GhpbQ==} + '@shikijs/transformers@1.24.4': resolution: {integrity: sha512-0jq5p9WLB7ToM/O7RWfxuIwirTJbIQsUR06jxdG3h3CEuO5m7ik8GnDsxwHhyIEfgJSZczSnVUZWFrNKy5It6g==} '@shikijs/types@1.24.4': resolution: {integrity: sha512-0r0XU7Eaow0PuDxuWC1bVqmWCgm3XqizIaT7SM42K03vc69LGooT0U8ccSR44xP/hGlNx4FKhtYpV+BU6aaKAA==} + '@shikijs/types@1.25.1': + resolution: {integrity: sha512-dceqFUoO95eY4tpOj3OGq8wE8EgJ4ey6Me1HQEu5UbwIYszFndEll/bjlB8Kp9wl4fx3uM7n4+y9XCYuDBmcXA==} + '@shikijs/vscode-textmate@9.3.1': resolution: {integrity: sha512-79QfK1393x9Ho60QFyLti+QfdJzRQCVLFb97kOIV7Eo9vQU/roINgk7m24uv0a7AUvN//RDH36FLjjK48v0s9g==} @@ -5491,6 +5512,9 @@ packages: resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} engines: {node: '>=18'} + oniguruma-to-es@0.10.0: + resolution: {integrity: sha512-zapyOUOCJxt+xhiNRPPMtfJkHGsZ98HHB9qJEkdT8BGytO/+kpe4m1Ngf0MzbzTmhacn11w9yGeDP6tzDhnCdg==} + oniguruma-to-es@0.8.1: resolution: {integrity: sha512-dekySTEvCxCj0IgKcA2uUCO/e4ArsqpucDPcX26w9ajx+DvMWLc5eZeJaRQkd7oC/+rwif5gnT900tA34uN9Zw==} @@ -6378,6 +6402,9 @@ packages: shiki@1.24.4: resolution: {integrity: sha512-aVGSFAOAr1v26Hh/+GBIsRVDWJ583XYV7CuNURKRWh9gpGv4OdbisZGq96B9arMYTZhTQkmRF5BrShOSTvNqhw==} + shiki@1.25.1: + resolution: {integrity: sha512-/1boRvNYwRW3GLG9Y6dXdnZ/Ha+J5T/5y3hV7TGQUcDSBM185D3FCbXlz2eTGNKG2iWCbWqo+P0yhGKZ4/CUrw==} + siginfo@2.0.0: resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} @@ -8566,10 +8593,10 @@ snapshots: '@nuxt/devalue@2.0.2': {} - '@nuxt/devtools-kit@1.7.0(magicast@0.3.5)(rollup@3.29.5)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))': + '@nuxt/devtools-kit@1.7.0(magicast@0.3.5)(rollup@4.29.1)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))': dependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) - '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@3.29.5) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) + '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) execa: 7.2.0 vite: 5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0) transitivePeerDependencies: @@ -8601,12 +8628,12 @@ snapshots: rc9: 2.1.2 semver: 7.6.3 - '@nuxt/devtools@1.7.0(rollup@3.29.5)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue@3.5.13(typescript@5.6.3))': + '@nuxt/devtools@1.7.0(rollup@4.29.1)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue@3.5.13(typescript@5.6.3))': dependencies: '@antfu/utils': 0.7.10 - '@nuxt/devtools-kit': 1.7.0(magicast@0.3.5)(rollup@3.29.5)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) + '@nuxt/devtools-kit': 1.7.0(magicast@0.3.5)(rollup@4.29.1)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) '@nuxt/devtools-wizard': 1.7.0 - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) '@vue/devtools-core': 7.6.8(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue@3.5.13(typescript@5.6.3)) '@vue/devtools-kit': 7.6.8 birpc: 0.2.19 @@ -8635,9 +8662,9 @@ snapshots: simple-git: 3.27.0 sirv: 3.0.0 tinyglobby: 0.2.10 - unimport: 3.14.5(rollup@3.29.5) + unimport: 3.14.5(rollup@4.29.1) vite: 5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0) - vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@3.29.5))(rollup@3.29.5)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) + vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(rollup@4.29.1)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) vite-plugin-vue-inspector: 5.3.1(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) which: 3.0.1 ws: 8.18.0 @@ -8839,33 +8866,6 @@ snapshots: - supports-color - uploadthing - '@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@3.29.5)': - dependencies: - '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@3.29.5) - c12: 2.0.1(magicast@0.3.5) - consola: 3.3.3 - defu: 6.1.4 - destr: 2.0.3 - globby: 14.0.2 - ignore: 7.0.0 - jiti: 2.4.2 - klona: 2.0.6 - knitwork: 1.2.0 - mlly: 1.7.3 - ohash: 1.1.4 - pathe: 1.1.2 - pkg-types: 1.3.0 - scule: 1.3.0 - semver: 7.6.3 - ufo: 1.5.4 - unctx: 2.4.1 - unimport: 3.14.5(rollup@3.29.5) - untyped: 1.5.2 - transitivePeerDependencies: - - magicast - - rollup - - supports-color - '@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1)': dependencies: '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) @@ -8893,9 +8893,9 @@ snapshots: - rollup - supports-color - '@nuxt/module-builder@0.8.4(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@3.29.5))(nuxi@3.17.2)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3))': + '@nuxt/module-builder@0.8.4(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(nuxi@3.17.2)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3))': dependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) citty: 0.1.6 consola: 3.3.3 defu: 6.1.4 @@ -8912,26 +8912,6 @@ snapshots: - typescript - vue-tsc - '@nuxt/schema@3.15.0(magicast@0.3.5)(rollup@3.29.5)': - dependencies: - c12: 2.0.1(magicast@0.3.5) - compatx: 0.1.8 - consola: 3.3.3 - defu: 6.1.4 - hookable: 5.5.3 - pathe: 1.1.2 - pkg-types: 1.3.0 - scule: 1.3.0 - std-env: 3.8.0 - ufo: 1.5.4 - uncrypto: 0.1.3 - unimport: 3.14.5(rollup@3.29.5) - untyped: 1.5.2 - transitivePeerDependencies: - - magicast - - rollup - - supports-color - '@nuxt/schema@3.15.0(magicast@0.3.5)(rollup@4.29.1)': dependencies: c12: 2.0.1(magicast@0.3.5) @@ -8952,27 +8932,6 @@ snapshots: - rollup - supports-color - '@nuxt/telemetry@2.6.2(magicast@0.3.5)(rollup@3.29.5)': - dependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) - citty: 0.1.6 - consola: 3.3.3 - destr: 2.0.3 - dotenv: 16.4.7 - git-url-parse: 16.0.0 - is-docker: 3.0.0 - jiti: 2.4.2 - ofetch: 1.4.1 - package-manager-detector: 0.2.8 - parse-git-config: 3.0.0 - pathe: 1.1.2 - rc9: 2.1.2 - std-env: 3.8.0 - transitivePeerDependencies: - - magicast - - rollup - - supports-color - '@nuxt/telemetry@2.6.2(magicast@0.3.5)(rollup@4.29.1)': dependencies: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) @@ -8994,10 +8953,10 @@ snapshots: - rollup - supports-color - '@nuxt/test-utils@3.15.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))': + '@nuxt/test-utils@3.15.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))': dependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) - '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@3.29.5) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) + '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) c12: 2.0.1(magicast@0.3.5) consola: 3.3.3 defu: 6.1.4 @@ -9020,7 +8979,7 @@ snapshots: unenv: 1.10.0 unplugin: 2.1.2 vite: 5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0) - vitest-environment-nuxt: 1.0.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) + vitest-environment-nuxt: 1.0.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) vue: 3.5.13(typescript@5.6.3) optionalDependencies: playwright-core: 1.49.1 @@ -9334,65 +9293,6 @@ snapshots: - vite - vue - '@nuxt/vite-builder@3.15.0(@types/node@22.10.2)(eslint@9.17.0(jiti@2.4.2))(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3))(vue@3.5.13(typescript@5.6.3))(yaml@2.6.1)': - dependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) - '@rollup/plugin-replace': 6.0.2(rollup@3.29.5) - '@vitejs/plugin-vue': 5.2.1(vite@6.0.6(@types/node@22.10.2)(jiti@2.4.2)(lightningcss@1.28.2)(terser@5.37.0)(yaml@2.6.1))(vue@3.5.13(typescript@5.6.3)) - '@vitejs/plugin-vue-jsx': 4.1.1(vite@6.0.6(@types/node@22.10.2)(jiti@2.4.2)(lightningcss@1.28.2)(terser@5.37.0)(yaml@2.6.1))(vue@3.5.13(typescript@5.6.3)) - autoprefixer: 10.4.20(postcss@8.4.49) - consola: 3.3.3 - cssnano: 7.0.6(postcss@8.4.49) - defu: 6.1.4 - esbuild: 0.24.2 - escape-string-regexp: 5.0.0 - externality: 1.0.2 - get-port-please: 3.1.2 - h3: 1.13.0 - jiti: 2.4.2 - knitwork: 1.2.0 - magic-string: 0.30.17 - mlly: 1.7.3 - ohash: 1.1.4 - pathe: 1.1.2 - perfect-debounce: 1.0.0 - pkg-types: 1.3.0 - postcss: 8.4.49 - rollup-plugin-visualizer: 5.13.1(rollup@3.29.5) - std-env: 3.8.0 - ufo: 1.5.4 - unenv: 1.10.0 - unplugin: 2.1.2 - vite: 6.0.6(@types/node@22.10.2)(jiti@2.4.2)(lightningcss@1.28.2)(terser@5.37.0)(yaml@2.6.1) - vite-node: 2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0) - vite-plugin-checker: 0.8.0(eslint@9.17.0(jiti@2.4.2))(optionator@0.9.4)(typescript@5.6.3)(vite@6.0.6(@types/node@22.10.2)(jiti@2.4.2)(lightningcss@1.28.2)(terser@5.37.0)(yaml@2.6.1))(vue-tsc@2.2.0(typescript@5.6.3)) - vue: 3.5.13(typescript@5.6.3) - vue-bundle-renderer: 2.1.1 - transitivePeerDependencies: - - '@biomejs/biome' - - '@types/node' - - eslint - - less - - lightningcss - - magicast - - meow - - optionator - - rolldown - - rollup - - sass - - sass-embedded - - stylelint - - stylus - - sugarss - - supports-color - - terser - - tsx - - typescript - - vls - - vti - - vue-tsc - - yaml - '@nuxt/vite-builder@3.15.0(@types/node@22.10.2)(eslint@9.17.0(jiti@2.4.2))(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3))(vue@3.5.13(typescript@5.6.3))(yaml@2.6.1)': dependencies: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) @@ -9543,9 +9443,9 @@ snapshots: - typescript - vue - '@nuxtjs/mdc@0.12.0(magicast@0.3.5)(rollup@3.29.5)': + '@nuxtjs/mdc@0.12.0(magicast@0.3.5)(rollup@4.29.1)': dependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) '@shikijs/transformers': 1.24.4 '@types/hast': 3.0.4 '@types/mdast': 4.0.4 @@ -9579,7 +9479,7 @@ snapshots: remark-rehype: 11.1.1 remark-stringify: 11.0.0 scule: 1.3.0 - shiki: 1.24.4 + shiki: 1.25.1 ufo: 1.5.4 unified: 11.0.5 unist-builder: 4.0.0 @@ -9973,13 +9873,6 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/plugin-replace@6.0.2(rollup@3.29.5)': - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@3.29.5) - magic-string: 0.30.17 - optionalDependencies: - rollup: 3.29.5 - '@rollup/plugin-replace@6.0.2(rollup@4.29.1)': dependencies: '@rollup/pluginutils': 5.1.4(rollup@4.29.1) @@ -10087,17 +9980,45 @@ snapshots: '@types/hast': 3.0.4 hast-util-to-html: 9.0.4 + '@shikijs/core@1.25.1': + dependencies: + '@shikijs/engine-javascript': 1.25.1 + '@shikijs/engine-oniguruma': 1.25.1 + '@shikijs/types': 1.25.1 + '@shikijs/vscode-textmate': 9.3.1 + '@types/hast': 3.0.4 + hast-util-to-html: 9.0.4 + '@shikijs/engine-javascript@1.24.4': dependencies: '@shikijs/types': 1.24.4 '@shikijs/vscode-textmate': 9.3.1 oniguruma-to-es: 0.8.1 + '@shikijs/engine-javascript@1.25.1': + dependencies: + '@shikijs/types': 1.25.1 + '@shikijs/vscode-textmate': 9.3.1 + oniguruma-to-es: 0.10.0 + '@shikijs/engine-oniguruma@1.24.4': dependencies: '@shikijs/types': 1.24.4 '@shikijs/vscode-textmate': 9.3.1 + '@shikijs/engine-oniguruma@1.25.1': + dependencies: + '@shikijs/types': 1.25.1 + '@shikijs/vscode-textmate': 9.3.1 + + '@shikijs/langs@1.25.1': + dependencies: + '@shikijs/types': 1.25.1 + + '@shikijs/themes@1.25.1': + dependencies: + '@shikijs/types': 1.25.1 + '@shikijs/transformers@1.24.4': dependencies: shiki: 1.24.4 @@ -10107,6 +10028,11 @@ snapshots: '@shikijs/vscode-textmate': 9.3.1 '@types/hast': 3.0.4 + '@shikijs/types@1.25.1': + dependencies: + '@shikijs/vscode-textmate': 9.3.1 + '@types/hast': 3.0.4 + '@shikijs/vscode-textmate@9.3.1': {} '@shuding/opentype.js@1.4.0-beta.0': @@ -10614,19 +10540,6 @@ snapshots: path-browserify: 1.0.1 vscode-uri: 3.0.8 - '@vue-macros/common@1.15.1(rollup@3.29.5)(vue@3.5.13(typescript@5.6.3))': - dependencies: - '@babel/types': 7.26.3 - '@rollup/pluginutils': 5.1.4(rollup@3.29.5) - '@vue/compiler-sfc': 3.5.13 - ast-kit: 1.3.2 - local-pkg: 0.5.1 - magic-string-ast: 0.6.3 - optionalDependencies: - vue: 3.5.13(typescript@5.6.3) - transitivePeerDependencies: - - rollup - '@vue-macros/common@1.15.1(rollup@4.29.1)(vue@3.5.13(typescript@5.6.3))': dependencies: '@babel/types': 7.26.3 @@ -12796,16 +12709,6 @@ snapshots: parent-module: 1.0.1 resolve-from: 4.0.0 - impound@0.2.0(rollup@3.29.5): - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@3.29.5) - mlly: 1.7.3 - pathe: 1.1.2 - unenv: 1.10.0 - unplugin: 1.16.0 - transitivePeerDependencies: - - rollup - impound@0.2.0(rollup@4.29.1): dependencies: '@rollup/pluginutils': 5.1.4(rollup@4.29.1) @@ -13986,9 +13889,9 @@ snapshots: nuxi@3.17.2: {} - nuxt-component-meta@0.9.0(magicast@0.3.5)(rollup@3.29.5): + nuxt-component-meta@0.9.0(magicast@0.3.5)(rollup@4.29.1): dependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) citty: 0.1.6 mlly: 1.7.3 scule: 1.3.0 @@ -14069,14 +13972,14 @@ snapshots: - vite - vue - nuxt@3.15.0(@libsql/client@0.14.0)(@parcel/watcher@2.5.0)(@types/node@22.10.2)(better-sqlite3@11.7.0)(db0@0.2.1(@libsql/client@0.14.0)(better-sqlite3@11.7.0))(eslint@9.17.0(jiti@2.4.2))(ioredis@5.4.2)(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue-tsc@2.2.0(typescript@5.6.3))(yaml@2.6.1): + nuxt@3.15.0(@libsql/client@0.14.0)(@parcel/watcher@2.5.0)(@types/node@22.10.2)(better-sqlite3@11.7.0)(db0@0.2.1(@libsql/client@0.14.0)(better-sqlite3@11.7.0))(eslint@9.17.0(jiti@2.4.2))(ioredis@5.4.2)(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue-tsc@2.2.0(typescript@5.6.3))(yaml@2.6.1): dependencies: '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.7.0(rollup@3.29.5)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue@3.5.13(typescript@5.6.3)) - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) - '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@3.29.5) - '@nuxt/telemetry': 2.6.2(magicast@0.3.5)(rollup@3.29.5) - '@nuxt/vite-builder': 3.15.0(@types/node@22.10.2)(eslint@9.17.0(jiti@2.4.2))(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3))(vue@3.5.13(typescript@5.6.3))(yaml@2.6.1) + '@nuxt/devtools': 1.7.0(rollup@4.29.1)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0))(vue@3.5.13(typescript@5.6.3)) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) + '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) + '@nuxt/telemetry': 2.6.2(magicast@0.3.5)(rollup@4.29.1) + '@nuxt/vite-builder': 3.15.0(@types/node@22.10.2)(eslint@9.17.0(jiti@2.4.2))(lightningcss@1.28.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vue-tsc@2.2.0(typescript@5.6.3))(vue@3.5.13(typescript@5.6.3))(yaml@2.6.1) '@unhead/dom': 1.11.14 '@unhead/shared': 1.11.14 '@unhead/ssr': 1.11.14 @@ -14099,7 +14002,7 @@ snapshots: h3: 1.13.0 hookable: 5.5.3 ignore: 7.0.0 - impound: 0.2.0(rollup@3.29.5) + impound: 0.2.0(rollup@4.29.1) jiti: 2.4.2 klona: 2.0.6 knitwork: 1.2.0 @@ -14126,9 +14029,9 @@ snapshots: unctx: 2.4.1 unenv: 1.10.0 unhead: 1.11.14 - unimport: 3.14.5(rollup@3.29.5) + unimport: 3.14.5(rollup@4.29.1) unplugin: 2.1.2 - unplugin-vue-router: 0.10.9(rollup@3.29.5)(vue-router@4.5.0(vue@3.5.13(typescript@5.6.3)))(vue@3.5.13(typescript@5.6.3)) + unplugin-vue-router: 0.10.9(rollup@4.29.1)(vue-router@4.5.0(vue@3.5.13(typescript@5.6.3)))(vue@3.5.13(typescript@5.6.3)) unstorage: 1.14.4(db0@0.2.1(@libsql/client@0.14.0)(better-sqlite3@11.7.0))(ioredis@5.4.2) untyped: 1.5.2 vue: 3.5.13(typescript@5.6.3) @@ -14361,6 +14264,12 @@ snapshots: dependencies: mimic-function: 5.0.1 + oniguruma-to-es@0.10.0: + dependencies: + emoji-regex-xs: 1.0.0 + regex: 5.1.1 + regex-recursion: 5.1.1 + oniguruma-to-es@0.8.1: dependencies: emoji-regex-xs: 1.0.0 @@ -15299,15 +15208,6 @@ snapshots: dependencies: rollup-plugin-inject: 3.0.2 - rollup-plugin-visualizer@5.13.1(rollup@3.29.5): - dependencies: - open: 8.4.2 - picomatch: 4.0.2 - source-map: 0.7.4 - yargs: 17.7.2 - optionalDependencies: - rollup: 3.29.5 - rollup-plugin-visualizer@5.13.1(rollup@4.29.1): dependencies: open: 8.4.2 @@ -15483,6 +15383,17 @@ snapshots: '@shikijs/vscode-textmate': 9.3.1 '@types/hast': 3.0.4 + shiki@1.25.1: + dependencies: + '@shikijs/core': 1.25.1 + '@shikijs/engine-javascript': 1.25.1 + '@shikijs/engine-oniguruma': 1.25.1 + '@shikijs/langs': 1.25.1 + '@shikijs/themes': 1.25.1 + '@shikijs/types': 1.25.1 + '@shikijs/vscode-textmate': 9.3.1 + '@types/hast': 3.0.4 + siginfo@2.0.0: {} signal-exit@3.0.7: {} @@ -16062,25 +15973,6 @@ snapshots: css-tree: 3.1.0 ohash: 1.1.4 - unimport@3.14.5(rollup@3.29.5): - dependencies: - '@rollup/pluginutils': 5.1.4(rollup@3.29.5) - acorn: 8.14.0 - escape-string-regexp: 5.0.0 - estree-walker: 3.0.3 - fast-glob: 3.3.2 - local-pkg: 0.5.1 - magic-string: 0.30.17 - mlly: 1.7.3 - pathe: 1.1.2 - picomatch: 4.0.2 - pkg-types: 1.3.0 - scule: 1.3.0 - strip-literal: 2.1.1 - unplugin: 1.16.0 - transitivePeerDependencies: - - rollup - unimport@3.14.5(rollup@4.29.1): dependencies: '@rollup/pluginutils': 5.1.4(rollup@4.29.1) @@ -16209,28 +16101,6 @@ snapshots: - rollup - supports-color - unplugin-vue-router@0.10.9(rollup@3.29.5)(vue-router@4.5.0(vue@3.5.13(typescript@5.6.3)))(vue@3.5.13(typescript@5.6.3)): - dependencies: - '@babel/types': 7.26.3 - '@rollup/pluginutils': 5.1.4(rollup@3.29.5) - '@vue-macros/common': 1.15.1(rollup@3.29.5)(vue@3.5.13(typescript@5.6.3)) - ast-walker-scope: 0.6.2 - chokidar: 3.6.0 - fast-glob: 3.3.2 - json5: 2.2.3 - local-pkg: 0.5.1 - magic-string: 0.30.17 - mlly: 1.7.3 - pathe: 1.1.2 - scule: 1.3.0 - unplugin: 2.0.0-beta.1 - yaml: 2.6.1 - optionalDependencies: - vue-router: 4.5.0(vue@3.5.13(typescript@5.6.3)) - transitivePeerDependencies: - - rollup - - vue - unplugin-vue-router@0.10.9(rollup@4.29.1)(vue-router@4.5.0(vue@3.5.13(typescript@5.6.3)))(vue@3.5.13(typescript@5.6.3)): dependencies: '@babel/types': 7.26.3 @@ -16436,10 +16306,10 @@ snapshots: typescript: 5.6.3 vue-tsc: 2.2.0(typescript@5.6.3) - vite-plugin-inspect@0.8.9(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@3.29.5))(rollup@3.29.5)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)): + vite-plugin-inspect@0.8.9(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(rollup@4.29.1)(vite@5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)): dependencies: '@antfu/utils': 0.7.10 - '@rollup/pluginutils': 5.1.4(rollup@3.29.5) + '@rollup/pluginutils': 5.1.4(rollup@4.29.1) debug: 4.4.0(supports-color@9.4.0) error-stack-parser-es: 0.1.5 fs-extra: 11.2.0 @@ -16449,7 +16319,7 @@ snapshots: sirv: 3.0.0 vite: 5.4.11(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0) optionalDependencies: - '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) + '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) transitivePeerDependencies: - rollup - supports-color @@ -16526,9 +16396,9 @@ snapshots: terser: 5.37.0 yaml: 2.6.1 - vitest-environment-nuxt@1.0.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)): + vitest-environment-nuxt@1.0.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)): dependencies: - '@nuxt/test-utils': 3.15.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@3.29.5)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) + '@nuxt/test-utils': 3.15.1(@types/node@22.10.2)(lightningcss@1.28.2)(magicast@0.3.5)(playwright-core@1.49.1)(rollup@4.29.1)(terser@5.37.0)(typescript@5.6.3)(vitest@2.1.8(@types/node@22.10.2)(lightningcss@1.28.2)(terser@5.37.0)) transitivePeerDependencies: - '@cucumber/cucumber' - '@jest/globals' diff --git a/src/utils/content/index.ts b/src/utils/content/index.ts index 7643840b6..192e7fb00 100644 --- a/src/utils/content/index.ts +++ b/src/utils/content/index.ts @@ -53,7 +53,7 @@ async function _getHighlightPlugin(options: HighlighterOptions) { ])) const bundledLangs = await Promise.all(langs.map(async lang => [ lang, - await import(`shiki/langs/${lang}.mjs`).then(m => m.default || m), + await import(`@shikijs/langs/${lang}`).then(m => m.default || m), ])) const highlighter = createShikiHighlighter({