diff --git a/package.json b/package.json index 387a72f6..58d9c49b 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@iconify-json/ri": "^1.1.19", "@iconify-json/svg-spinners": "^1.1.2", "@iconify-json/tabler": "^1.1.105", - "@nuxt/content": "2.11.0", + "@nuxt/content": "2.12.0", "@nuxt/fonts": "0.0.1", "@nuxt/image": "1.3.0", "@nuxt/kit": "3.10.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0ea89f99..8965fad2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ dependencies: specifier: ^1.1.105 version: 1.1.106 '@nuxt/content': - specifier: 2.11.0 - version: 2.11.0(nuxt@3.10.3)(rollup@4.12.0)(vue@3.4.21) + specifier: 2.12.0 + version: 2.12.0(nuxt@3.10.3)(rollup@4.12.0)(vue@3.4.21) '@nuxt/fonts': specifier: 0.0.1 version: 0.0.1(rollup@4.12.0) @@ -1996,11 +1996,11 @@ packages: - supports-color dev: false - /@nuxt/content@2.11.0(nuxt@3.10.3)(rollup@4.12.0)(vue@3.4.21): - resolution: {integrity: sha512-bHk4Vs+9k94z9WDdQcjTKWeXEkHiRsatTPx/914okegKaWz3yntt3x6NUPv6Ch3zI5JJZvepqbVPoWxuySFmmQ==} + /@nuxt/content@2.12.0(nuxt@3.10.3)(rollup@4.12.0)(vue@3.4.21): + resolution: {integrity: sha512-XQkbkJzFRWKdX4aoVDprqLphbQGDsRX35ZRgHe4i7Phe3F1z2EzXVhZ9WXBTmpXau3MkLlmsQ+NzcRns1kOOvQ==} dependencies: '@nuxt/kit': 3.10.3(rollup@4.12.0) - '@nuxtjs/mdc': 0.3.2(rollup@4.12.0) + '@nuxtjs/mdc': 0.5.0(rollup@4.12.0) '@vueuse/core': 10.9.0(vue@3.4.21) '@vueuse/head': 2.0.0(vue@3.4.21) '@vueuse/nuxt': 10.9.0(nuxt@3.10.3)(rollup@4.12.0)(vue@3.4.21) @@ -2019,7 +2019,7 @@ packages: ohash: 1.1.3 pathe: 1.1.2 scule: 1.3.0 - shikiji: 0.9.19 + shiki: 1.1.7 slugify: 1.6.6 socket.io-client: 4.7.4 ufo: 1.4.0 @@ -2460,14 +2460,16 @@ packages: - vitest dev: false - /@nuxtjs/mdc@0.3.2(rollup@4.12.0): - resolution: {integrity: sha512-iSepiwfNCh5dgO3ETqSdBHWdendRuRIZ7OsgIpEQXX2J9ubHK5XvRsK3DSUOqZZ8PHbRZ3eSr/9ZF9+IeZ0GFw==} + /@nuxtjs/mdc@0.5.0(rollup@4.12.0): + resolution: {integrity: sha512-480Ajc7o/YAl9b21btd0oRtVe/UjUWmVSEWauS+H+izwEGdGvJTVfZRdaiAXcXKl+UmUTpf+POel027sE9HAZQ==} dependencies: '@nuxt/kit': 3.10.3(rollup@4.12.0) + '@shikijs/transformers': 1.1.7 '@types/hast': 3.0.4 '@types/mdast': 4.0.3 '@vue/compiler-core': 3.4.21 consola: 3.2.3 + debug: 4.3.4 defu: 6.1.4 destr: 2.0.3 detab: 3.0.2 @@ -2476,6 +2478,8 @@ packages: mdast-util-to-hast: 13.1.0 micromark-util-sanitize-uri: 2.0.0 ohash: 1.1.3 + parse5: 7.1.2 + pathe: 1.1.2 property-information: 6.4.1 rehype-external-links: 3.0.0 rehype-raw: 7.0.0 @@ -2488,8 +2492,7 @@ packages: remark-parse: 11.0.0 remark-rehype: 11.1.0 scule: 1.3.0 - shikiji: 0.9.19 - shikiji-transformers: 0.9.19 + shiki: 1.1.7 ufo: 1.4.0 unified: 11.0.4 unist-builder: 4.0.0 @@ -2911,6 +2914,16 @@ packages: resolution: {integrity: sha512-RbhOOTCNoCrbfkRyoXODZp75MlpiHMgbE5MEBZAnnnLyQNgrigEj4p0lzsMDyc1zVsJDLrivB58tgg3emX0eEA==} dev: true + /@shikijs/core@1.1.7: + resolution: {integrity: sha512-gTYLUIuD1UbZp/11qozD3fWpUTuMqPSf3svDMMrL0UmlGU7D9dPw/V1FonwAorCUJBltaaESxq90jrSjQyGixg==} + dev: false + + /@shikijs/transformers@1.1.7: + resolution: {integrity: sha512-lXz011ao4+rvweps/9h3CchBfzb1U5OtP5D51Tqc9lQYdLblWMIxQxH6Ybe1GeGINcEVM4goMyPrI0JvlIp4UQ==} + dependencies: + shiki: 1.1.7 + dev: false + /@sidvind/better-ajv-errors@2.1.3(ajv@8.12.0): resolution: {integrity: sha512-lWuod/rh7Xz5uXiEGSfm2Sd5PG7K/6yJfoAZVqzsEswjPJhUz15R7Gn/o8RczA041QS15hBd/BCSeu9vwPArkA==} engines: {node: '>= 16.14'} @@ -9712,20 +9725,10 @@ packages: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} dev: false - /shikiji-core@0.9.19: - resolution: {integrity: sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw==} - dev: false - - /shikiji-transformers@0.9.19: - resolution: {integrity: sha512-lGLI7Z8frQrIBbhZ74/eiJtxMoCQRbpaHEB+gcfvdIy+ZFaAtXncJGnc52932/UET+Y4GyKtwwC/vjWUCp+c/Q==} - dependencies: - shikiji: 0.9.19 - dev: false - - /shikiji@0.9.19: - resolution: {integrity: sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==} + /shiki@1.1.7: + resolution: {integrity: sha512-9kUTMjZtcPH3i7vHunA6EraTPpPOITYTdA5uMrvsJRexktqP0s7P3s9HVK80b4pP42FRVe03D7fT3NmJv2yYhw==} dependencies: - shikiji-core: 0.9.19 + '@shikijs/core': 1.1.7 dev: false /siginfo@2.0.0: diff --git a/test/unit/bundle.spec.ts b/test/unit/bundle.spec.ts index 613d8425..dc6803f5 100644 --- a/test/unit/bundle.spec.ts +++ b/test/unit/bundle.spec.ts @@ -79,12 +79,12 @@ describe('project sizes', () => { stats.server = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir) expect .soft(roundToKilobytes(stats.server.totalBytes)) - .toMatchInlineSnapshot(`"1049k"`) + .toMatchInlineSnapshot(`"442k"`) const modules = await analyzeSizes('node_modules/**/*', serverDir) expect .soft(roundToKilobytes(modules.totalBytes)) - .toMatchInlineSnapshot(`"10841k"`) + .toMatchInlineSnapshot(`"5296k"`) const packages = modules.files .filter(m => m.endsWith('package.json')) @@ -93,6 +93,8 @@ describe('project sizes', () => { expect.soft(packages).toMatchInlineSnapshot(` [ "@atproto/api", + "@shikijs/core", + "@shikijs/transformers", "@sindresorhus/is", "@ungap/structured-clone", "bail", @@ -189,9 +191,7 @@ describe('project sizes', () => { "remark-rehype", "sax", "scule", - "shikiji", - "shikiji-core", - "shikiji-transformers", + "shiki", "skin-tone", "slugify", "space-separated-tokens",