From dac759798c111494e76affd2c2504d63944871fe Mon Sep 17 00:00:00 2001 From: Marawan Mohamed <40841193+marwan-mohamed12@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:26:25 +0200 Subject: [PATCH] Fix and update shikiji core (#10063) Co-authored-by: Bjorn Lu Co-authored-by: Florian Lefebvre --- .changeset/poor-bees-juggle.md | 5 +++++ packages/astro/package.json | 4 ++-- packages/markdown/remark/package.json | 2 +- pnpm-lock.yaml | 25 +++++++++++++------------ 4 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 .changeset/poor-bees-juggle.md diff --git a/.changeset/poor-bees-juggle.md b/.changeset/poor-bees-juggle.md new file mode 100644 index 0000000000..6e92110eea --- /dev/null +++ b/.changeset/poor-bees-juggle.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Moves `shikiji-core` from `devDependencies` to `dependencies` to prevent type errors diff --git a/packages/astro/package.json b/packages/astro/package.json index 6ae5e1aab8..7ee618eddd 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -169,7 +169,8 @@ "resolve": "^1.22.4", "semver": "^7.5.4", "server-destroy": "^1.0.1", - "shikiji": "^0.9.18", + "shikiji": "^0.9.19", + "shikiji-core": "^0.9.19", "string-width": "^7.0.0", "strip-ansi": "^7.1.0", "tsconfck": "^3.0.0", @@ -228,7 +229,6 @@ "remark-code-titles": "^0.1.2", "rollup": "^4.5.0", "sass": "^1.69.5", - "shikiji-core": "^0.9.18", "srcset-parse": "^1.1.0", "unified": "^11.0.4" }, diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 6a398ee83b..965b057cde 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -44,7 +44,7 @@ "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "remark-smartypants": "^2.0.0", - "shikiji": "^0.9.18", + "shikiji": "^0.9.19", "unified": "^11.0.4", "unist-util-visit": "^5.0.0", "vfile": "^6.0.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2fd13891ce..c917a7c35e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -654,8 +654,11 @@ importers: specifier: ^1.0.1 version: 1.0.1 shikiji: - specifier: ^0.9.18 - version: 0.9.18 + specifier: ^0.9.19 + version: 0.9.19 + shikiji-core: + specifier: ^0.9.19 + version: 0.9.19 string-width: specifier: ^7.0.0 version: 7.0.0 @@ -820,9 +823,6 @@ importers: sass: specifier: ^1.69.5 version: 1.69.6 - shikiji-core: - specifier: ^0.9.18 - version: 0.9.18 srcset-parse: specifier: ^1.1.0 version: 1.1.0 @@ -5065,8 +5065,8 @@ importers: specifier: ^2.0.0 version: 2.0.0 shikiji: - specifier: ^0.9.18 - version: 0.9.18 + specifier: ^0.9.19 + version: 0.9.19 unified: specifier: ^11.0.4 version: 11.0.4 @@ -14391,13 +14391,14 @@ packages: vscode-textmate: 5.2.0 dev: true - /shikiji-core@0.9.18: - resolution: {integrity: sha512-PKTXptbrp/WEDjNHV8OFG9KkfhmR0pSd161kzlDDlgQ0HXAnqJYNDSjqsy1CYZMx5bSvLMy42yJj9oFTqmkNTQ==} + /shikiji-core@0.9.19: + resolution: {integrity: sha512-AFJu/vcNT21t0e6YrfadZ+9q86gvPum6iywRyt1OtIPjPFe25RQnYJyxHQPMLKCCWA992TPxmEmbNcOZCAJclw==} + dev: false - /shikiji@0.9.18: - resolution: {integrity: sha512-/tFMIdV7UQklzN13VjF0/XFzmii6C606Jc878hNezvB8ZR8FG8FW9j0I4J9EJre0owlnPntgLVPpHqy27Gs+DQ==} + /shikiji@0.9.19: + resolution: {integrity: sha512-Kw2NHWktdcdypCj1GkKpXH4o6Vxz8B8TykPlPuLHOGSV8VkhoCLcFOH4k19K4LXAQYRQmxg+0X/eM+m2sLhAkg==} dependencies: - shikiji-core: 0.9.18 + shikiji-core: 0.9.19 dev: false /side-channel@1.0.4: