diff --git a/app/composables/shiki.ts b/app/composables/shiki.ts index 4d7ffef..80e194f 100644 --- a/app/composables/shiki.ts +++ b/app/composables/shiki.ts @@ -1,9 +1,9 @@ import type { HighlighterCore } from 'shiki/core' -import { getHighlighterCore } from 'shiki/core' +import { createHighlighterCore } from 'shiki/core' export const shiki = shallowRef() -getHighlighterCore({ +createHighlighterCore({ themes: [ import('shiki/themes/vitesse-light.mjs'), import('shiki/themes/vitesse-dark.mjs'), diff --git a/package.json b/package.json index 17803ef..cf4ecb1 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "lint-staged": "^15.2.7", "nuxt": "^3.12.2", "nuxt-eslint-auto-explicit-import": "^0.0.2", - "shiki": "^1.7.0", + "shiki": "^1.9.0", "simple-git-hooks": "^2.11.1", "textmate-grammar-glob": "^0.0.1", "typescript": "^5.5.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3df64cc..cfef5e2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -121,8 +121,8 @@ importers: specifier: ^0.0.2 version: 0.0.2(eslint@9.5.0)(magicast@0.3.4)(rollup@3.29.4)(typescript@5.5.2) shiki: - specifier: ^1.7.0 - version: 1.7.0 + specifier: ^1.9.0 + version: 1.9.0 simple-git-hooks: specifier: ^2.11.1 version: 2.11.1 @@ -1411,8 +1411,8 @@ packages: '@shikijs/core@1.3.0': resolution: {integrity: sha512-7fedsBfuILDTBmrYZNFI8B6ATTxhQAasUHllHmjvSZPnoq4bULWoTpHwmuQvZ8Aq03/tAa2IGo6RXqWtHdWaCA==} - '@shikijs/core@1.7.0': - resolution: {integrity: sha512-O6j27b7dGmJbR3mjwh/aHH8Ld+GQvA0OQsNO43wKWnqbAae3AYXrhFyScHGX8hXZD6vX2ngjzDFkZY5srtIJbQ==} + '@shikijs/core@1.9.0': + resolution: {integrity: sha512-cbSoY8P/jgGByG8UOl3jnP/CWg/Qk+1q+eAKWtcrU3pNoILF8wTsLB0jT44qUBV8Ce1SvA9uqcM9Xf+u3fJFBw==} '@sigstore/bundle@2.3.1': resolution: {integrity: sha512-eqV17lO3EIFqCWK3969Rz+J8MYrRZKw9IBHpSo6DEcEX2c+uzDFOgHE9f2MnyDpfs48LFO4hXmk9KhQ74JzU1g==} @@ -1902,7 +1902,7 @@ packages: '@vueuse/nuxt@10.11.0': resolution: {integrity: sha512-PV15CU28qzr/+4IleyahobwU9kfTwfbsl8f+wkv6TWjboFVdt4WLMP2TNfPj7QgssyDdCRdl3gLZ4DC884wnDw==} peerDependencies: - nuxt: ^3.12.2 + nuxt: ^3.0.0 '@vueuse/shared@10.11.0': resolution: {integrity: sha512-fyNoIXEq3PfX1L3NkNhtVQUSRtqYwJtJg+Bp9rIzculIZWHTkKSysujrOk2J+NrRulLTQH9+3gGSfYLWSEWU1A==} @@ -4377,7 +4377,7 @@ packages: engines: {node: '>=14'} hasBin: true peerDependencies: - rollup: ^4.18.0 + rollup: 2.x || 3.x || 4.x peerDependenciesMeta: rollup: optional: true @@ -4466,8 +4466,8 @@ packages: shiki@1.3.0: resolution: {integrity: sha512-9aNdQy/etMXctnPzsje1h1XIGm9YfRcSksKOGqZWXA/qP9G18/8fpz5Bjpma8bOgz3tqIpjERAd6/lLjFyzoww==} - shiki@1.7.0: - resolution: {integrity: sha512-H5pMn4JA7ayx8H0qOz1k2qANq6mZVCMl1gKLK6kWIrv1s2Ial4EmD4s4jE8QB5Dw03d/oCQUxc24sotuyR5byA==} + shiki@1.9.0: + resolution: {integrity: sha512-i6//Lqgn7+7nZA0qVjoYH0085YdNk4MC+tJV4bo+HgjgRMJ0JmkLZzFAuvVioJqLkcGDK5GAMpghZEZkCnwxpQ==} signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -6691,7 +6691,7 @@ snapshots: '@shikijs/core@1.3.0': {} - '@shikijs/core@1.7.0': {} + '@shikijs/core@1.9.0': {} '@sigstore/bundle@2.3.1': dependencies: @@ -10450,9 +10450,9 @@ snapshots: dependencies: '@shikijs/core': 1.3.0 - shiki@1.7.0: + shiki@1.9.0: dependencies: - '@shikijs/core': 1.7.0 + '@shikijs/core': 1.9.0 signal-exit@3.0.7: {}