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

feat: dependency updates incl. textmate #377

Merged
merged 10 commits into from
Dec 18, 2022

Conversation

muenzpraeger
Copy link
Collaborator

This PR updates all dependencies to recent versions (which actually also caused a few other changes). The change also included the update to the most recent vscode-textmate version.

@netlify
Copy link

netlify bot commented Nov 27, 2022

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit 31f9572
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/639f3fc6e043370008253b37
😎 Deploy Preview https://deploy-preview-377--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

__BROWSER__: false
},
snapshotFormat: {
escapeString: true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a change in Jest -> they don't escape anymore. For the sake of simplicity (no updated snapshots) in this PR I set the tests to use the previous behaviour.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made those changes in Jest ;) - but I dig not making things change unnecessarily

printBasicPrototype: true
},
transform: {
'^.+\\.tsx?$': [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another Jest change, this needs now to be a part of the transform object.

@@ -42,6 +42,5 @@ test(`SVG renderer should ignore minimal background width when it's own boundari
})

const out = (await r).renderToSVG([[{ content: 'foo', color: '#aabbccff' }]])
expect(out).toContain(`<svg viewBox="0 0 150`)
// expect(out).toMatchSnapshot()
expect(out).not.toContain(`<svg viewBox="0 0 150 `)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test was failing b/c of a wrong check. ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced the check was wrong... I think something updated in the renderer which resulted in an output change, but checking not contains is very suspicious...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the change is correct. Here's why:

  • The test description says it is a check that the render should ignore the minimal background width.
  • The test passes a value of 150 to getSVGRenderer for bgMinWidth. So that's what the SVG should have at minimum. And that's the value that should be ignore - according to the test description - if the SVG width is higher.
  • The renderer validates via Math.max() the actual width against the min width. In this test case the actual width is higher than the min width - so the actual width will be used instead of the min width.
  • If the min width would be set on the SVG, then <svg viewBox="0 0 150 would be correct. But as the actual width should override the min width the test should only pass when it's not <svg viewBox="0 0 150 .

Happy to be proven wrong though, first time for me in that codebase. 🤷🏼‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you're correct, thanks! I missed the "not" in the test description

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Been there too. ;-)

@@ -135,6 +146,7 @@ export class StackElementMetadata {
((_languageId << MetadataConsts.LANGUAGEID_OFFSET) |
(_tokenType << MetadataConsts.TOKEN_TYPE_OFFSET) |
(_fontStyle << MetadataConsts.FONT_STYLE_OFFSET) |
(_containsBalancedBracketsBit << MetadataConsts.BALANCED_BRACKETS_OFFSET) |
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only implemented, but not really exposed (yet).

packages/shiki/package.json Outdated Show resolved Hide resolved
packages/shiki/package.json Outdated Show resolved Hide resolved
@drwpow
Copy link

drwpow commented Nov 29, 2022

This PR would help the error I’m currently encountering (Node 18, macOS 13.x, Apple silicon chip):

import object field 'setTempRet0' is not a Function

Bumping vscode-oniguruma and vscode-textmate to the most recent versions seems to fix that error.

@orta
Copy link
Contributor

orta commented Dec 2, 2022

Yeah, I agree, this is a good PR

I'll try commit some time this weekend to deploying a new shiki release 👍🏻

@muenzpraeger
Copy link
Collaborator Author

@orta Cool! I'll have 2-3 more PRs in pipe (think of them as proposals, so not mandatory if you disagree). I'll try to get them in within the next 24h.

One of them is actually also adding more docs. ;-)

@muenzpraeger
Copy link
Collaborator Author

With the latest commit we can eventually supersede #379 (added embedded language resolution to IGrammarConfiguration)

@orta
Copy link
Contributor

orta commented Dec 18, 2022

OK, that's green now - biggest question mark on the PR is the removal of IRawThemeSetting to any but it doesn't seem to be user-facing so it's not a blocker IMO

Thanks for this @muenzpraeger - lets see if I can get all this wrangled into a release after I go through the other PRs.

@orta orta merged commit 2f6ed02 into shikijs:main Dec 18, 2022
@muenzpraeger
Copy link
Collaborator Author

Also not a big fan of the any changes either, but I figured they don't have an impact on the implementation.

I've seen on the vscode-textmate repo this issue with no response yet, so potentially an oversight on their end.

@orta
Copy link
Contributor

orta commented Dec 18, 2022

NP, all these changes just got shipped in 0.12.0 - thanks!

fuxingloh referenced this pull request in fuxingloh/contented Sep 1, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [shiki](https://togithub.com/octref/shiki/tree/main/packages/shiki)
([source](https://togithub.com/octref/shiki)) | [`^0.11.1` ->
`^0.14.4`](https://renovatebot.com/diffs/npm/shiki/0.11.1/0.14.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/0.14.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/0.14.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/0.11.1/0.14.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/0.11.1/0.14.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>octref/shiki (shiki)</summary>

###
[`v0.14.4`](https://togithub.com/octref/shiki/blob/HEAD/CHANGELOG.md#0144--2023-08-31)

[Compare
Source](https://togithub.com/octref/shiki/compare/v0.14.3...v0.14.4)

##### 🚀 Features & Fixes

-   feat: add ziglang
- fix: inconsistent git core.ignorecase causes marko.sample
added/removed
-   feat: add mojo lang
-   feat: add `mdc` grammar

##### 🙌 Contributions

- feat: add additional sample code |
[#&#8203;511](https://togithub.com/shikijs/shiki/pull/511) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)
- fix: Compiler errors in Node |
[#&#8203;504](https://togithub.com/shikijs/shiki/pull/504) |
[@&#8203;Gerrit0](https://togithub.com/Gerrit0)
- feat: add splunk grammar |
[#&#8203;505](https://togithub.com/shikijs/shiki/pull/505) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)
- Add bun support |
[#&#8203;493](https://togithub.com/shikijs/shiki/pull/493) |
[@&#8203;aabccd021](https://togithub.com/aabccd021)
- feat: add shellsession grammar |
[#&#8203;483](https://togithub.com/shikijs/shiki/pull/483) |
[@&#8203;mashehu](https://togithub.com/mashehu)

###
[`v0.14.3`](https://togithub.com/octref/shiki/blob/HEAD/CHANGELOG.md#0143--2023-06-25)

[Compare
Source](https://togithub.com/octref/shiki/compare/v0.14.2...v0.14.3)

##### 🚀 Features & Fixes

-   fix: exclude dark/light modern themes for now
- fix: fix unzipping issue with unzipper. fix
[#&#8203;478](https://togithub.com/octref/shiki/issues/478)

##### 🙌 Contributions

- feat: add narrat grammar |
[#&#8203;489](https://togithub.com/shikijs/shiki/pull/489) |
[@&#8203;liana-p](https://togithub.com/liana-p)
- feat: add glimmer js/ts language |
[#&#8203;486](https://togithub.com/shikijs/shiki/pull/486) |
[@&#8203;IgnaceMaes](https://togithub.com/IgnaceMaes)
- feat: add `displayName` to `BUNDLED_LANGUAGES` |
[#&#8203;470](https://togithub.com/shikijs/shiki/pull/470) |
[@&#8203;lawvs](https://togithub.com/lawvs)
- Specify langs in browser based example |
[#&#8203;477](https://togithub.com/shikijs/shiki/pull/477) |
[@&#8203;wesbos](https://togithub.com/wesbos)
- feat: add hjson |
[#&#8203;471](https://togithub.com/shikijs/shiki/pull/471) |
[@&#8203;AkaraChen](https://togithub.com/AkaraChen)
- feat: add nextflow grammar |
[#&#8203;472](https://togithub.com/shikijs/shiki/pull/472) |
[@&#8203;mashehu](https://togithub.com/mashehu)
- feat: add cypher grammar |
[#&#8203;465](https://togithub.com/shikijs/shiki/pull/465) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)
- feat: add vyper grammar |
[#&#8203;466](https://togithub.com/shikijs/shiki/pull/466) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)
- feat: add beancount grammar |
[#&#8203;468](https://togithub.com/shikijs/shiki/pull/468) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)

###
[`v0.14.2`](https://togithub.com/octref/shiki/blob/HEAD/CHANGELOG.md#0142--2023-04-28)

[Compare
Source](https://togithub.com/octref/shiki/compare/v0.14.1...v0.14.2)

##### 🚀 Features & Fixes

-   fix: improve changelog generation
-   fix: remove dlx to avoid playwright version mismatch
- feat: generate changelog. fix
[#&#8203;223](https://togithub.com/octref/shiki/issues/223)

##### 🙌 Contributions

- feat: add kusto grammar
([#&#8203;431](https://togithub.com/octref/shiki/issues/431)) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)
- Add support for the css-variables theme to ansi rendering |
[#&#8203;435](https://togithub.com/shikijs/shiki/pull/435) |
[@&#8203;blake-mealey](https://togithub.com/blake-mealey)
- feat: add wolfram grammar |
[#&#8203;464](https://togithub.com/shikijs/shiki/pull/464) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)
- feat: add c++ and golang support |
[#&#8203;459](https://togithub.com/shikijs/shiki/pull/459) |
[@&#8203;xinconan](https://togithub.com/xinconan)
- fix: avoid poisoning global scope |
[#&#8203;457](https://togithub.com/shikijs/shiki/pull/457) |
[@&#8203;Ayc0](https://togithub.com/Ayc0)
- fix(type): `theme` field autocompletion |
[#&#8203;449](https://togithub.com/shikijs/shiki/pull/449) |
[@&#8203;vaakian](https://togithub.com/vaakian)
- feat: add reg grammar |
[#&#8203;455](https://togithub.com/shikijs/shiki/pull/455) |
[@&#8203;KevinBatdorf](https://togithub.com/KevinBatdorf)
- Update Kotlin grammar and add a sample |
[#&#8203;445](https://togithub.com/shikijs/shiki/pull/445) |
[@&#8203;alllex](https://togithub.com/alllex)
- fix: marko, mdx, vue |
[#&#8203;452](https://togithub.com/shikijs/shiki/pull/452) |
[@&#8203;LeoDog896](https://togithub.com/LeoDog896)
- feat(gd\*): add gdscript family |
[#&#8203;451](https://togithub.com/shikijs/shiki/pull/451) |
[@&#8203;LeoDog896](https://togithub.com/LeoDog896)
- fix: add `protobuf` language id alias |
[#&#8203;446](https://togithub.com/shikijs/shiki/pull/446) |
[@&#8203;dimitropoulos](https://togithub.com/dimitropoulos)
- feat(lang): add alias dockerfile -> docker |
[#&#8203;444](https://togithub.com/shikijs/shiki/pull/444) |
[@&#8203;ezracelli](https://togithub.com/ezracelli)
- fix: faster parsing time for assets |
[#&#8203;443](https://togithub.com/shikijs/shiki/pull/443) |
[@&#8203;banga](https://togithub.com/banga)
- docs: update the src of VS Code Oniguruma repo |
[#&#8203;440](https://togithub.com/shikijs/shiki/pull/440) |
[@&#8203;donaldxdonald](https://togithub.com/donaldxdonald)
- docs: fix grammar of "grammar's" |
[#&#8203;442](https://togithub.com/shikijs/shiki/pull/442) |
[@&#8203;comex](https://togithub.com/comex)

***

##### 0.14.1 | 2023-02-09

- 🙌 Scrollable <pre> elements should be focusable.
[#&#8203;428](https://togithub.com/shikijs/shiki/issues/428). Thanks to
contribution from
[@&#8203;kevinleedrum](https://togithub.com/kevinleedrum).

##### 0.14.0 | 2023-01-29

- 🙌 ANSI support.
[#&#8203;386](https://togithub.com/shikijs/shiki/issues/386). Thanks to
contribution from
[@&#8203;blake-mealey](https://togithub.com/blake-mealey).

##### 0.13.0 | 2023-01-27

-   Improve grammar/theme fetching from marketplace.
- 🙌 Support CSON grammar sources.
[#&#8203;413](https://togithub.com/shikijs/shiki/issues/413). Thanks to
contribution from
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger)
-   Add a [Next.js 13 example](https://togithub.com/shikijs/next-shiki).
- Add a `bgFillOpacity` option for SVG renderer.
[#&#8203;276](https://togithub.com/shikijs/shiki/issues/276).

*Languages*

- Added `console` as an alias for `shell`.
[#&#8203;389](https://togithub.com/shikijs/shiki/issues/389).
- 🙌 Added `jison` and `wgsl` languages.
[#&#8203;413](https://togithub.com/shikijs/shiki/issues/413). Thanks to
contribution from
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger)

*Themes*

- Renamed `material-<themeName>` to `material-theme-<themeName>`. For
example, `material-ocean` to `material-theme-ocean`. `material-default`
is renamed to `material-theme`.

***

##### 0.10.1

- 🙌: feat: add ZenScript support
[#&#8203;300](https://togithub.com/shikijs/shiki/pull/300) |
**[@&#8203;jaredlll08](https://togithub.com/jaredlll08)**
- 🙌: feat: add marko language
[#&#8203;299](https://togithub.com/shikijs/shiki/pull/299) |
**[@&#8203;manan-gup](https://togithub.com/manan-gup)**
- 🙌: fix: split plaintext into lines
[#&#8203;298](https://togithub.com/shikijs/shiki/pull/298) |
**[@&#8203;silvenon](https://togithub.com/silvenon)**
- 🙌: fix(docs): fixed custom language instructions
[#&#8203;294](https://togithub.com/shikijs/shiki/pull/294) |
**[@&#8203;JuanM04](https://togithub.com/JuanM04)**
- 🙌: fix: updated astro grammar source
[#&#8203;293](https://togithub.com/shikijs/shiki/pull/293) |
**[@&#8203;JuanM04](https://togithub.com/JuanM04)**
- 🙌: feat: add rel lang
[#&#8203;287](https://togithub.com/shikijs/shiki/pull/287) |
**[@&#8203;robbear](https://togithub.com/robbear)**
- 🙌: feat: add rose pine themes
[#&#8203;282](https://togithub.com/shikijs/shiki/pull/281) |
**[@&#8203;EmeraldSnorlax](https://togithub.com/EmeraldSnorlax)**
- 🙌: feat: add stata lang
[#&#8203;281](https://togithub.com/shikijs/shiki/pull/281) |
**[@&#8203;kylebutts](kylebutts)**

**Full Changelog**:
[v0.10.0...v0.10.1](https://togithub.com/shikijs/shiki/compare/v0.10.0...v0.10.1)

***

##### 0.2.7 | 2020-11-13

- Fix color fallback issues.
[#&#8203;100](https://togithub.com/shikijs/shiki/issues/100).
- 🙌 Add Applescript grammar.
[#&#8203;99](https://togithub.com/shikijs/shiki/issues/99). Thanks to
contribution from [Arturo Galán](https://togithub.com/arturogalan).

##### 0.2.6 | 2020-09-28

-   Upgrade to onigasm 2.2.5.
-   Add Erlang grammar.
- 🙌 Add Elixir grammar.
[#&#8203;95](https://togithub.com/shikijs/shiki/issues/95). Thanks to
contribution from [Sebastien
Baudray](https://togithub.com/https://github.com/sbaudray).
- 🙌 Fix wrong escape sequence in vuepress plugin.
[#&#8203;93](https://togithub.com/shikijs/shiki/issues/93). Thanks to
contribution from [Yu Zhang](https://togithub.com/yzhang-gh).

##### 0.2.5 | 2020-09-17

- Reduce dependency size (shiki-themes is 47M).
[#&#8203;94](https://togithub.com/shikijs/shiki/issues/94).

##### 0.2.4 | 2020-09-13

-   Fix `RangeError: Invalid array length` in `vuepress-plugin-shiki`.
- 🙌 Wrap line in `<span class='line'></span>`.
[#&#8203;76](https://togithub.com/shikijs/shiki/issues/76). Thanks to
contribution from [Christoph Werner](https://togithub.com/codepunkt).

##### 0.2.3 | 2020-09-08

- Add `文言` language.
[#&#8203;88](https://togithub.com/shikijs/shiki/issues/88).
- Add `slack-theme-dark-mode` and `slack-theme-ochin` themes. Thanks to
contribution from [Christoph Werner](https://togithub.com/codepunkt).
[#&#8203;78](https://togithub.com/shikijs/shiki/pull/78).

##### 0.2.2 | 2020-08-26

-   Fix dark-plus syntax highlighting for uncolored white text.

##### 0.2.1 | 2020-08-24

- Allow custom languages for vuepress.
[#&#8203;80](https://togithub.com/shikijs/shiki/issues/80).
- Fix `php` syntax highlighting.
[#&#8203;21](https://togithub.com/shikijs/shiki/issues/21).
- Add `jinja-html` language, which embeds `jinja` language.
[#&#8203;24](https://togithub.com/shikijs/shiki/issues/24).
-   Remove `vue-html` language. Either use `vue` or `html` language.

##### 0.2.0 | 2020-08-24

-   Normalize all theme names to kebab-case.
-   Add GitHub light/dark themes.
-   Remove less popular themes.
- Add `hlsl`, `asm` (x86 Assembly), `m` (Matlab), `sas`, `d`, `dart`,
`plsql`, `logo`, , `pas` (Object Pascal/Delphi), `cobol`, `kt` (Kotlin),
`scala`, `abap`, `julia`, `scheme`, `prolog`, `ada`, `lisp`, `apex`,
`fortran`, `haskell`, `hcl`, `hack`, `awk`, `as` (ActionScript), `tcl`,
`ocaml`, `viml`, `puppet`, `jsonnet`, `smalltalk`, `cr` (Crystal), `wat`
(WASM), `nix`, `elm`, `purescript` and `svelte` languages.
-   Add `pug` language and make `jade` an alias of it.
- Use GitHub workflow to update grammars periodically.
[#&#8203;72](https://togithub.com/shikijs/shiki/issues/72).
- Use GitHub workflow to update themes periodically.
[#&#8203;71](https://togithub.com/shikijs/shiki/issues/71).
- Use theme foreground color when color of token is `undefined`.
[#&#8203;27](https://togithub.com/shikijs/shiki/issues/27).
- SVG Renderer.
[#&#8203;2](https://togithub.com/shikijs/shiki/issues/2).
- Fix HTML escaping.
[#&#8203;26](https://togithub.com/octref/shiki/issues/26) and
[#&#8203;28](https://togithub.com/octref/shiki/pull/28). Thanks to
contribution from [@&#8203;jackens](https://togithub.com/jackens).
- 🙌 Add an option to skip generating the explanation text.
[#&#8203;52](https://togithub.com/shikijs/shiki/pull/52). Thanks to
contribution from [Gerrit Birkeland](https://togithub.com/Gerrit0).
- 🙌 Improve performance by avoiding some unnecessary string copies.
[#&#8203;51](https://togithub.com/shikijs/shiki/pull/51). Thanks to
contribution from [Gerrit Birkeland](https://togithub.com/Gerrit0).
- 🙌 Allow loading custom `tmLanguage`.
[#&#8203;10](https://togithub.com/octref/shiki/issues/10) and
[#&#8203;49](https://togithub.com/octref/shiki/pull/49). Thanks to
contribution from [Orta Therox](https://togithub.com/orta) and
[@&#8203;pngwn](https://togithub.com/pngwn).
- 🙌 Update Java grammar.
[#&#8203;36](https://togithub.com/octref/shiki/issues/36) and
[#&#8203;37](https://togithub.com/octref/shiki/issues/37). Thanks to
contribution from [@&#8203;0xflotus](https://togithub.com/0xflotus).

##### 0.1.7 | 2020-04-28

-   Update to latest Dark+/Light+ theme from VS Code.

##### 0.1.6 | 2019-09-19

- Add `toml` language from https://github.com/bungcip/better-toml.
[#&#8203;20](https://togithub.com/octref/shiki/issues/20).

##### 0.1.5 | 2019-09-09

- Begin to keep a changelog.
[#&#8203;7](https://togithub.com/octref/shiki/issues/7).
- Accept `plaintext`, `text` and `txt` as `lang`. Will return `code` as
it is. [#&#8203;16](https://togithub.com/octref/shiki/issues/16).
- Add `jsonc` language.
[#&#8203;18](https://togithub.com/octref/shiki/issues/18).
- Add `csharp` language.
[#&#8203;14](https://togithub.com/octref/shiki/issues/14).
-   Add `md` as an alias for `markdown`.
-   Add `zsh` as an alias for `bash`.
-   Add `yml` as an alias for `yaml`.
- 🙌 Use json5 for parsing theme as JSONC.
[#&#8203;11](https://togithub.com/octref/shiki/issues/11). Thanks to
contribution from [Wes Bos](https://togithub.com/wesbos).

###
[`v0.14.1`](https://togithub.com/octref/shiki/blob/HEAD/CHANGELOG.md#0141--2023-02-09)

[Compare
Source](https://togithub.com/octref/shiki/compare/v0.14.0...v0.14.1)

- 🙌 Scrollable <pre> elements should be focusable.
[#&#8203;428](https://togithub.com/shikijs/shiki/issues/428). Thanks to
contribution from
[@&#8203;kevinleedrum](https://togithub.com/kevinleedrum).

###
[`v0.14.0`](https://togithub.com/octref/shiki/blob/HEAD/CHANGELOG.md#0140--2023-01-29)

[Compare
Source](https://togithub.com/octref/shiki/compare/v0.13.0...v0.14.0)

- 🙌 ANSI support.
[#&#8203;386](https://togithub.com/shikijs/shiki/issues/386). Thanks to
contribution from
[@&#8203;blake-mealey](https://togithub.com/blake-mealey).

###
[`v0.13.0`](https://togithub.com/octref/shiki/blob/HEAD/CHANGELOG.md#0130--2023-01-27)

[Compare
Source](https://togithub.com/octref/shiki/compare/3009d740b25ee2d74ca4ac6ac0e02b06bf567019...v0.13.0)

-   Improve grammar/theme fetching from marketplace.
- 🙌 Support CSON grammar sources.
[#&#8203;413](https://togithub.com/shikijs/shiki/issues/413). Thanks to
contribution from
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger)
-   Add a [Next.js 13 example](https://togithub.com/shikijs/next-shiki).
- Add a `bgFillOpacity` option for SVG renderer.
[#&#8203;276](https://togithub.com/shikijs/shiki/issues/276).

*Languages*

- Added `console` as an alias for `shell`.
[#&#8203;389](https://togithub.com/shikijs/shiki/issues/389).
- 🙌 Added `jison` and `wgsl` languages.
[#&#8203;413](https://togithub.com/shikijs/shiki/issues/413). Thanks to
contribution from
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger)

*Themes*

- Renamed `material-<themeName>` to `material-theme-<themeName>`. For
example, `material-ocean` to `material-theme-ocean`. `material-default`
is renamed to `material-theme`.

***

###
[`v0.12.1`](https://togithub.com/octref/shiki/compare/v0.12.0...3009d740b25ee2d74ca4ac6ac0e02b06bf567019)

[Compare
Source](https://togithub.com/octref/shiki/compare/v0.12.0...3009d740b25ee2d74ca4ac6ac0e02b06bf567019)

### [`v0.12.0`](https://togithub.com/shikijs/shiki/releases/tag/v0.12.0)

[Compare
Source](https://togithub.com/octref/shiki/compare/0b4eec41aab694bab82327aa9740af90054699fb...v0.12.0)

<!-- Release notes generated using configuration in .github/release.yml
at v0.12.0 -->

#### Key Changes

Updates to the core libraries used in Shiki, and a *huge* set of docs
improvements.

- feat: dependency updates incl. textmate by
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger) in
[https://github.com/shikijs/shiki/pull/377](https://togithub.com/shikijs/shiki/pull/377)
- feat: upgrade to vscode-textmate-v7. fix
[#&#8203;343](https://togithub.com/octref/shiki/issues/343) by
[@&#8203;octref](https://togithub.com/octref) in
[https://github.com/shikijs/shiki/pull/361](https://togithub.com/shikijs/shiki/pull/361)
- feat: resolve embedded languages automatically by
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger) in
[https://github.com/shikijs/shiki/pull/379](https://togithub.com/shikijs/shiki/pull/379)

#### What's Changed

- Fix: `fetchTheme` theme 'include' directory joining for absolute paths
by [@&#8203;Oblongmana](https://togithub.com/Oblongmana) in
[https://github.com/shikijs/shiki/pull/173](https://togithub.com/shikijs/shiki/pull/173)
- feat: update HCL grammar source by
[@&#8203;dbanck](https://togithub.com/dbanck) in
[https://github.com/shikijs/shiki/pull/340](https://togithub.com/shikijs/shiki/pull/340)
- Add several alias of languages by
[@&#8203;dannypsnl](https://togithub.com/dannypsnl) in
[https://github.com/shikijs/shiki/pull/344](https://togithub.com/shikijs/shiki/pull/344)
- feat: add proto grammar by
[@&#8203;ruanspies](https://togithub.com/ruanspies) in
[https://github.com/shikijs/shiki/pull/352](https://togithub.com/shikijs/shiki/pull/352)
- fix: add 'cs' alias for csharp and 'fs' alias for fsharp by
[@&#8203;mysticmind](https://togithub.com/mysticmind) in
[https://github.com/shikijs/shiki/pull/353](https://togithub.com/shikijs/shiki/pull/353)
- add imba as a shiki syntax by
[@&#8203;haikyuu](https://togithub.com/haikyuu) in
[https://github.com/shikijs/shiki/pull/363](https://togithub.com/shikijs/shiki/pull/363)
- feat(lang): Add V support + robot: update grammars by
[@&#8203;wennerryle](https://togithub.com/wennerryle) in
[https://github.com/shikijs/shiki/pull/374](https://togithub.com/shikijs/shiki/pull/374)
- feat: update/add language definitions by
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger) in
[https://github.com/shikijs/shiki/pull/378](https://togithub.com/shikijs/shiki/pull/378)
- feat: add documentation / optimize WASM loading by
[@&#8203;muenzpraeger](https://togithub.com/muenzpraeger) in
[https://github.com/shikijs/shiki/pull/384](https://togithub.com/shikijs/shiki/pull/384)

#### New Contributors

- [@&#8203;Oblongmana](https://togithub.com/Oblongmana) made their first
contribution in
[https://github.com/shikijs/shiki/pull/173](https://togithub.com/shikijs/shiki/pull/173)
- [@&#8203;dbanck](https://togithub.com/dbanck) made their first
contribution in
[https://github.com/shikijs/shiki/pull/340](https://togithub.com/shikijs/shiki/pull/340)
- [@&#8203;dannypsnl](https://togithub.com/dannypsnl) made their first
contribution in
[https://github.com/shikijs/shiki/pull/344](https://togithub.com/shikijs/shiki/pull/344)
- [@&#8203;ruanspies](https://togithub.com/ruanspies) made their first
contribution in
[https://github.com/shikijs/shiki/pull/352](https://togithub.com/shikijs/shiki/pull/352)
- [@&#8203;haikyuu](https://togithub.com/haikyuu) made their first
contribution in
[https://github.com/shikijs/shiki/pull/363](https://togithub.com/shikijs/shiki/pull/363)
- [@&#8203;wennerryle](https://togithub.com/wennerryle) made their first
contribution in
[https://github.com/shikijs/shiki/pull/374](https://togithub.com/shikijs/shiki/pull/374)
- [@&#8203;muenzpraeger](https://togithub.com/muenzpraeger) made their
first contribution in
[https://github.com/shikijs/shiki/pull/377](https://togithub.com/shikijs/shiki/pull/377)

**Full Changelog**:
shikijs/shiki@v0.11.0...v0.12.0

</details>

---

### 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/levaintech/contented).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuNjguMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Missing italic styles in 0.11?
5 participants