Skip to content

chore: update versions - #187

Merged
AVGVSTVS96 merged 1 commit into
mainfrom
changeset-release/main
Aug 11, 2026
Merged

AVGVSTVS96 merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

react-shiki@0.11.1

Patch Changes

  • Fix: case-insensitive matching for language aliases. #184 2484f24 @aouxwoux

  • Fix(css): three default-style selectors left part of the selector outside :where() (pre, language label, highlighted line), giving them real specificity that could tie with or beat user rules depending on stylesheet order. All selectors are now fully wrapped and zero-specificity, so any user rule always wins. #185 607be76 @AVGVSTVS96

  • Feat: preloadLanguages now accepts dynamic grammar imports (shiki's LanguageInput) on the full and web bundles, so custom grammars can stay code-split instead of shipping in the main bundle: #193 530d033 @AVGVSTVS96

    const preload = [() => import("../langs/mcfunction.tmLanguage.json")];
    
    <ShikiHighlighter language="mcfunction" preloadLanguages={preload}>
      {code}
    </ShikiHighlighter>;

    Promises, getters, and module objects are all accepted and resolved by shiki during highlighter setup. Define them at module scope, preferring the getter form: a fresh arrow function on every render re-triggers highlighting, while swapping a bare promise at runtime is not detected. Additive only: strings and grammar objects work exactly as before.

  • Feat: add named engines. engine now accepts 'javascript' or 'oniguruma' alongside engine instances. #192 5f94c02 @AVGVSTVS96

    • Named engines are created, cached, and lazy-loaded internally; 'javascript' skips the WASM fetch entirely
    • Referentially stable, so safe to pass inline without re-triggering highlighting on rerenders
    • Engine instances are still accepted for custom configuration; create them once at module scope

    Heads up: the next minor release will swap the default engine from Oniguruma WASM to the JavaScript engine (with forgiving enabled by default, see shiki/regex-engines).

  • Fix: removed the hardcoded id="language-label" from the language label. Pages with multiple code blocks rendered duplicate ids (invalid HTML, and getElementById only ever found the first label). Style the label with the .rs-language-label class or [data-slot="language-label"] instead of #language-label. #190 9b73990 @AVGVSTVS96

  • Fix: styles are embedded in the JS and install automatically at runtime (as before 0.10.0), no CSS import or bundler configuration needed. Fixes styles dropped from webpack production builds, ERR_UNKNOWN_FILE_EXTENSION crashes in plain Node ESM, and broken no-bundler/CDN usage. react-shiki/css still exports the complete compiled stylesheet for build-time CSS pipelines. #188 6ef68a3 @AVGVSTVS96

@vercel

vercel Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-shiki Ready Ready Preview Aug 11, 2026 9:37pm

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 5b849cf to 7847ad7 Compare July 17, 2026 05:22
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 7847ad7 to 2939ac2 Compare August 2, 2026 05:02
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 2939ac2 to 2319a58 Compare August 2, 2026 06:24
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 2319a58 to 3e536d8 Compare August 4, 2026 05:56
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 3e536d8 to ed67ae3 Compare August 4, 2026 05:59
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from ed67ae3 to 8cadd90 Compare August 4, 2026 06:03
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 8cadd90 to 853a17b Compare August 11, 2026 06:37
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 853a17b to f54e43c Compare August 11, 2026 06:49
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from f54e43c to 21d7507 Compare August 11, 2026 06:51
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 21d7507 to 8768001 Compare August 11, 2026 21:30
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 8768001 to 38ac0ca Compare August 11, 2026 21:33
@AVGVSTVS96
AVGVSTVS96 merged commit 4f04b1f into main Aug 11, 2026
9 checks passed
@AVGVSTVS96
AVGVSTVS96 deleted the changeset-release/main branch August 11, 2026 23:20

This branch was successfully deployed

1 active deployment
Preview — f661db7c Deployed Aug 11, 2026 by vercel[bot]
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.

1 participant