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

Update expressive-code to ^0.40.1 #1297

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 7, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@expressive-code/plugin-collapsible-sections (source) ^0.38.3 -> ^0.40.1 age adoption passing confidence
@expressive-code/plugin-line-numbers (source) ^0.38.3 -> ^0.40.1 age adoption passing confidence
astro-expressive-code (source) ^0.38.3 -> ^0.40.1 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

expressive-code/expressive-code (@​expressive-code/plugin-collapsible-sections)

v0.40.1

Compare Source

Patch Changes

v0.40.0

Compare Source

Minor Changes
  • 4eed5d0: Adds new collapseStyle prop to @expressive-code/plugin-collapsible-sections. Thank you @​nerdymomocat!

    The new prop allows selecting one of the following collapsible section styles:

    • github: The default style, similar to the one used by GitHub. A summary line with an expand icon and the default text X collapsed lines is shown. When expanded, the summary line is replaced by the section's code lines. It is not possible to re-collapse the section.
    • collapsible-start: When collapsed, the summary line looks like the github style. However, when expanded, it remains visible above the expanded code lines, making it possible to re-collapse the section.
    • collapsible-end: Same as collapsible-start, but the summary line remains visible below the expanded code lines.
    • collapsible-auto: Automatically selects collapsible-start or collapsible-end based on the location of the collapsible section in the code block. Uses collapsible-start unless the section ends at the bottom of the code block, in which case collapsible-end is used.
Patch Changes

v0.39.0

Compare Source

Patch Changes
expressive-code/expressive-code (@​expressive-code/plugin-line-numbers)

v0.40.1

Compare Source

Patch Changes

v0.40.0

Compare Source

Patch Changes

v0.39.0

Compare Source

Patch Changes
expressive-code/expressive-code (astro-expressive-code)

v0.40.1

Compare Source

Patch Changes

v0.40.0

Compare Source

Patch Changes

v0.39.0

Compare Source

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

Configuration

📅 Schedule: Branch creation - "after 6pm on friday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) February 7, 2025 22:44
Copy link

vercel bot commented Feb 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dev-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 10:53pm

@renovate renovate bot merged commit c5ef867 into main Feb 7, 2025
6 checks passed
@renovate renovate bot deleted the renovate/expressive-code branch February 7, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants