Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bump astro-expressive-code from 0.40.1 to 0.41.2 #351

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: astro
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 23, 2025

Bumps astro-expressive-code from 0.40.1 to 0.41.2.

Release notes

Sourced from astro-expressive-code's releases.

[email protected]

Patch Changes

  • 013f07a: Fixes an issue where the deprecated, but still available theme option was not being taken into account during SSR bundle trimming.
  • 013f07a: Improves the error message when the <Code> component is being used on a page without having the Astro integration enabled in the project.

[email protected]

Patch Changes

  • a53e749: Fixes a regression that caused inline text markers to be rendered with two layered background colors.
  • Updated dependencies [a53e749]

[email protected]

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]

... (truncated)

Changelog

Sourced from astro-expressive-code's changelog.

0.41.2

Patch Changes

  • 013f07a: Fixes an issue where the deprecated, but still available theme option was not being taken into account during SSR bundle trimming.
  • 013f07a: Improves the error message when the <Code> component is being used on a page without having the Astro integration enabled in the project.

0.41.1

Patch Changes

  • a53e749: Fixes a regression that caused inline text markers to be rendered with two layered background colors.
  • Updated dependencies [a53e749]

0.41.0

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

... (truncated)

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.40.1 to 0.41.2.
- [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/[email protected]/packages/astro-expressive-code)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 23, 2025
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.

0 participants