Update Expressive Code and related packages#3109
Conversation
🦋 Changeset detectedLatest commit: 435ef9b The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
So it's going to be a bit more complex than just a version bump. |
Thanks for the contribution 🙌 Not at a computer right now to take a very close look, but sharing a few early pointers regarding the issues:
Let me know if you want to me to take a closer look at any of these issues, give you a bit more guidance around them or if you want to take a stab at investigating them yourself. Thanks again for the contribution. |
|
Thanks for the PR @dhruvkb and for taking an early look @HiDeoo. Probably good to ping @hippotastic on this too just so he’s aware! Looking at the a11y errors, I spotted this difference for example:
All the other failing contrast checks seem to be related to code marking styles too. The error message in the |
|
The accessibility warnings are from upstream. Created this issue to track: expressive-code/expressive-code#323 |
|
Thank you for the ping! I'll release a fix in the next few minutes. I think this shows how great it is to have automated a11y checks! I have some of my own in EC already, but apparently I'll need to upgrade them to use the same tool Starlight uses as well. :) |
|
The patch is live now as EC version 0.41.1 on NPM. If you bump the version again to this patch, the tests should no longer fail. |
|
Thanks @HiDeoo for looking into the PR and for the quick feedback on the failures, thanks @delucis for pointing out the new All checks are passing now, excited to be able to use this update! |
Great work, this PR looks good to me! In case you want to use your new EC feature before the next Starlight release, I'd like to point out that you can use the following method explained in the EC docs to use the latest version earlier: https://expressive-code.com/upgrading/#overriding-expressive-code-within-starlight |
|
Thanks @hippotastic, guess I should've read the manual. I could've avoided all this work 🤦♂️ for myself and everyone else here. |
|
I'm really grateful for your work contributing your new feature to EC and even making the version bump PR here that turned out to be more than a version bump! |
delucis
left a comment
There was a problem hiding this comment.
Yes, it’s helpful for us to have PRs like this! We discovered a bug and @hippotastic and @dhruvkb fixed it 🎉
Thanks all around 🙌
* main: (31 commits) [ci] release (withastro#3091) i18n(de): update `environmental-impact` (withastro#3112) feat: update environment comparisons data (withastro#3097) chore(deps): update actions/setup-node action to v4.4.0 (withastro#3111) Update Expressive Code and related packages (withastro#3109) i18n(de): update `reference/overrides.md` (withastro#3093) i18n(de): update `reference/route-data.mdx` (withastro#3094) i18n(de): update `resources/themes.mdx` (withastro#3092) [ci] format i18n(zh-cn): Update configuration.mdx (withastro#3102) i18n(zh-cn): Update overrides.mdx (withastro#3103) [ci] format i18n(zh-cn): Add route-data.mdx (withastro#3106) [ci] format i18n(zh-cn): Add themes.mdx (withastro#3105) [ci] format i18n(zh-cn): Update plugins.md (withastro#3104) [ci] format i18n(zh-cn): Update customization.mdx (withastro#3101) i18n(zh-cn): Update badges.mdx (withastro#3100) ...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> Co-authored-by: hippotastic <6137925+hippotastic@users.noreply.github.com>



Description
astro-expressive-codeto v0.41.0 #3108astro-expressive-codefrom v0.40 to v0.41. This also replaces Shiki v1 dependencies with Shiki v3.