Skip to content

Update dependency astro-expressive-code to ^0.41.0 #39

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 31, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astro-expressive-code (source) ^0.37.0 -> ^0.41.0 age adoption passing confidence

Release Notes

expressive-code/expressive-code (astro-expressive-code)

v0.41.0

Compare Source

Minor Changes
  • 380bfcc: Adds new createInlineSvgUrl export that creates an inline SVG image data URL from the given contents of an SVG file.

    You can use it to embed SVG images directly into a plugin's styles or HAST, or pass it to an existing styleOverrides icon setting.

  • 0f33477: Updates Shiki to the latest version (3.2.2).

    This adds support for the strikethrough ANSI control code, updates language grammars and adds the bundled themes gruvbox-dark-hard, gruvbox-dark-medium, gruvbox-dark-soft, gruvbox-light-hard, gruvbox-light-medium, and gruvbox-light-soft.

  • 6497f09: Adds new preventUnitlessValues property to PluginStyleSettings. Thank you @​RantingHuman!

    Plugins can set this property to an array of style setting paths to prevent unitless values for specific style settings. If the user passes a unitless value to one of these settings, the engine will automatically add px to the value. This is recommended for settings used in CSS calculations which would otherwise break if a unitless value is passed.

  • a826a4a: Adds a new hangingIndent prop to all code blocks. Thank you @​Signum!

    By setting this prop to a positive number of columns (either in the opening code fence, as a prop on the <Code> component, or in the defaultProps config option), you can now further refine the indentation of wrapped lines.

    If the prop preserveIndent is true (which is the default), the hangingIndent value is added to the indentation of the original line. If preserveIndent is false, the value is used as the fixed indentation level of all wrapped lines.

    This option only affects how the code block is displayed and does not change the actual code. When copied to the clipboard, the code will still contain the original unwrapped lines.

  • 0f33477: Extends ANSI formatting support to allow background colors and strikethrough text. Thank you @​dhruvkb!

  • 380bfcc: Adds the following new styleOverrides settings:

    • frames.copyIcon: Allows overriding the SVG icon used for the copy button. Thank you @​louisescher!
    • frames.terminalIcon: Allows overriding the SVG icon used for the terminal window frame. Defaults to three dots in the top left corner.
  • 0f33477: Adds support for bgColor and strikethrough to InlineStyleAnnotation. Thank you @​dhruvkb!

Patch Changes
  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
  • Updated dependencies [6497f09]
  • Updated dependencies [a826a4a]
  • Updated dependencies [0f33477]
  • Updated dependencies [380bfcc]
  • Updated dependencies [0f33477]
    • rehype-expressive-code@0.41.0

v0.40.2

Compare Source

Patch Changes
  • 1734d73: Prevents the default style reset from interfering with more complex SVGs inside Expressive Code blocks. Now, not only path elements, but all SVGs and their contents are excluded from the reset. Thank you @​xt0rted!
  • Updated dependencies [1734d73]
    • rehype-expressive-code@0.40.2

v0.40.1

Compare Source

Patch Changes
  • ecf6ca1: Removes unnecessary end padding from the first code line if the copy to clipboard button is disabled. Thank you @​goulvenclech!
  • Updated dependencies [ecf6ca1]
    • rehype-expressive-code@0.40.1

v0.40.0

Compare Source

Patch Changes
  • rehype-expressive-code@0.40.0

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
  • Updated dependencies [9149332]
    • rehype-expressive-code@0.39.0

v0.38.3

Compare Source

Patch Changes
  • 90b614e: Makes the types used by the shiki.langs config option less strict to align them better with actual grammars found in the wild. This attempts to reduce the amount of type errors that occurred before when using external grammars, while still being supported by the language processing code.
  • Updated dependencies [90b614e]
    • rehype-expressive-code@0.38.3

v0.38.2

Compare Source

Patch Changes
  • 480361a: Fixes an issue where the optional getBlockLocale callback function was not called when using the <Code> component. Thank you @​HiDeoo!

    As the parent document's source file path is not available from an Astro component, the file property passed to the getBlockLocale callback function now contains an additional url property that will be set to the value of Astro.url in this case.

    When determining the locale of a code block, it is recommended to use this new property first, and only fall back to the existing path and cwd properties if url is undefined.

  • 480361a: Fixes an issue where the tabWidth setting was not applied when using the <Code> component. Thank you @​mrchantey!

  • Updated dependencies [480361a]

    • rehype-expressive-code@0.38.2

v0.38.1

Compare Source

Patch Changes
  • rehype-expressive-code@0.38.1

v0.38.0

Compare Source

Minor Changes
  • 944dda0: Updates Shiki to the latest version (1.22.2).

  • b6638f9: Adds config merging functionality to astro-expressive-code, which allows using ec.config.mjs together with other configuration sources like the Astro / Starlight config or Starlight themes.

    Options defined in ec.config.mjs have the highest priority and will override any corresponding values coming from other configuration sources.

    For the following object options, a deep merge is performed instead of a simple override:

    • defaultProps
    • frames
    • shiki
    • styleOverrides

    The following array options are concatenated instead of being replaced:

    • shiki.langs
Patch Changes
  • Updated dependencies [944dda0]
    • rehype-expressive-code@0.38.0

v0.37.1

Compare Source

Patch Changes
  • rehype-expressive-code@0.37.1

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update 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 force-pushed the renovate/astro-expressive-code-0.x branch from 6b5ed75 to e9be6b3 Compare January 10, 2025 10:35
@renovate renovate bot changed the title Update dependency astro-expressive-code to ^0.38.0 Update dependency astro-expressive-code to ^0.39.0 Jan 10, 2025
@renovate renovate bot changed the title Update dependency astro-expressive-code to ^0.39.0 Update dependency astro-expressive-code to ^0.40.0 Jan 13, 2025
@renovate renovate bot force-pushed the renovate/astro-expressive-code-0.x branch from e9be6b3 to a94ff81 Compare January 13, 2025 13:31
| datasource | package               | from   | to     |
| ---------- | --------------------- | ------ | ------ |
| npm        | astro-expressive-code | 0.37.0 | 0.41.0 |
@renovate renovate bot force-pushed the renovate/astro-expressive-code-0.x branch from a94ff81 to 89de1a5 Compare April 12, 2025 17:53
@renovate renovate bot changed the title Update dependency astro-expressive-code to ^0.40.0 Update dependency astro-expressive-code to ^0.41.0 Apr 12, 2025
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