Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump astro-expressive-code from 0.38.3 to 0.39.0 #454

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 11, 2025

Bumps astro-expressive-code from 0.38.3 to 0.39.0.

Release notes

Sourced from astro-expressive-code's releases.

astro-expressive-code@0.39.0

Minor Changes

  • dc05ddc: Adds new config option shiki.engine.

    Allows selecting the Shiki RegExp engine to be used for syntax highlighting. The following options are available:

    • 'oniguruma': The default engine that supports all grammars, but requires a target environment with WebAssembly (WASM) support.
    • 'javascript': A pure JavaScript engine that does not require WASM. The Shiki team is continuously improving this engine and aims for full compatibility with the Oniguruma engine. Use this engine if your target environment does not support WASM.
  • 9149332: Adds new config option shiki.bundledLangs.

    Allows defining a subset of language IDs from the full Shiki bundle that should be available for syntax highlighting.

    In server-side rendering (SSR) environments, setting this option to the languages used on your site can reduce bundle size by up to 80%.

    If this option is not set, all languages from the full Shiki bundle are available.

  • dc05ddc: Adds new config option removeUnusedThemes.

    In Astro and Starlight, Expressive Code now automatically removes any themes from the bundle that are not used by your themes configuration. This reduces the SSR bundle size by over 1 MB.

    This new optimization is enabled by default and does not need to be configured for most sites. If you have an advanced use case that requires access all bundled themes, you can set this option to false.

  • dc05ddc: Adds new config option shiki.langAlias.

    Allows defining alias names for languages. The keys are the alias names, and the values are the language IDs to which they should resolve.

    The values can either be bundled languages, or additional languages defined in shiki.langs.

    For example, setting langAlias: { mjs: 'javascript' } allows using mjs in your code blocks as an alias for the javascript language.

  • 9149332: Updates Shiki to the latest version (1.26.1).

Patch Changes

  • Updated dependencies [9149332]
    • rehype-expressive-code@0.39.0
Changelog

Sourced from astro-expressive-code's changelog.

0.39.0

Minor Changes

  • dc05ddc: Adds new config option shiki.engine.

    Allows selecting the Shiki RegExp engine to be used for syntax highlighting. The following options are available:

    • 'oniguruma': The default engine that supports all grammars, but requires a target environment with WebAssembly (WASM) support.
    • 'javascript': A pure JavaScript engine that does not require WASM. The Shiki team is continuously improving this engine and aims for full compatibility with the Oniguruma engine. Use this engine if your target environment does not support WASM.
  • 9149332: Adds new config option shiki.bundledLangs.

    Allows defining a subset of language IDs from the full Shiki bundle that should be available for syntax highlighting.

    In server-side rendering (SSR) environments, setting this option to the languages used on your site can reduce bundle size by up to 80%.

    If this option is not set, all languages from the full Shiki bundle are available.

  • dc05ddc: Adds new config option removeUnusedThemes.

    In Astro and Starlight, Expressive Code now automatically removes any themes from the bundle that are not used by your themes configuration. This reduces the SSR bundle size by over 1 MB.

    This new optimization is enabled by default and does not need to be configured for most sites. If you have an advanced use case that requires access all bundled themes, you can set this option to false.

  • dc05ddc: Adds new config option shiki.langAlias.

    Allows defining alias names for languages. The keys are the alias names, and the values are the language IDs to which they should resolve.

    The values can either be bundled languages, or additional languages defined in shiki.langs.

    For example, setting langAlias: { mjs: 'javascript' } allows using mjs in your code blocks as an alias for the javascript language.

  • 9149332: Updates Shiki to the latest version (1.26.1).

Patch Changes

  • Updated dependencies [9149332]
    • rehype-expressive-code@0.39.0
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [astro-expressive-code](https://github.com/expressive-code/expressive-code/tree/HEAD/packages/astro-expressive-code) from 0.38.3 to 0.39.0.
- [Release notes](https://github.com/expressive-code/expressive-code/releases)
- [Changelog](https://github.com/expressive-code/expressive-code/blob/main/packages/astro-expressive-code/CHANGELOG.md)
- [Commits](https://github.com/expressive-code/expressive-code/commits/astro-expressive-code@0.39.0/packages/astro-expressive-code)

---
updated-dependencies:
- dependency-name: astro-expressive-code
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 11, 2025
@acelaya acelaya merged commit 39f8d90 into main Jan 11, 2025
1 check passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/astro-expressive-code-0.39.0 branch January 11, 2025 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant