prettier/prettier (prettier)
### [`v2.8.8`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#288)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.8.7...2.8.8)
This version is a republished version of v2.8.7.
A bad version was accidentally published and [it can't be unpublished](https://togithub.com/npm/cli/issues/1686), apologies for the churn.
### [`v2.8.7`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#287)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7)
[diff](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7)
##### Allow multiple decorators on same getter/setter ([#14584](https://togithub.com/prettier/prettier/pull/14584) by [@fisker](https://togithub.com/fisker))
```ts
// Input
class A {
@decorator()
get foo () {}
@decorator()
set foo (value) {}
}
// Prettier 2.8.6
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
3 | get foo () {}
4 |
> 5 | @decorator()
| ^^^^^^^^^^^^
6 | set foo (value) {}
7 | }
// Prettier 2.8.7
class A {
@decorator()
get foo() {}
@decorator()
set foo(value) {}
}
```
### [`v2.8.6`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#286)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6)
[diff](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6)
##### Allow decorators on private members and class expressions ([#14548](https://togithub.com/prettier/prettier/pull/14548) by [@fisker](https://togithub.com/fisker))
```ts
// Input
class A {
@decorator()
#privateMethod () {}
}
// Prettier 2.8.5
SyntaxError: Decorators are not valid here. (2:3)
1 | class A {
> 2 | @decorator()
| ^^^^^^^^^^^^
3 | #privateMethod () {}
4 | }
// Prettier 2.8.6
class A {
@decorator()
#privateMethod() {}
}
```
### [`v2.8.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#285)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5)
[diff](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5)
##### Support TypeScript 5.0 ([#14391](https://togithub.com/prettier/prettier/pull/14391) by [@fisker](https://togithub.com/fisker), [#13819](https://togithub.com/prettier/prettier/pull/13819) by [@fisker](https://togithub.com/fisker), [@sosukesuzuki](https://togithub.com/sosukesuzuki))
TypeScript 5.0 introduces two new syntactic features:
- `const` modifiers for type parameters
- `export type *` declarations
##### Add missing parentheses for decorator ([#14393](https://togithub.com/prettier/prettier/pull/14393) by [@fisker](https://togithub.com/fisker))
```jsx
// Input
class Person {
@(myDecoratorArray[0])
greet() {}
}
// Prettier 2.8.4
class Person {
@myDecoratorArray[0]
greet() {}
}
// Prettier 2.8.5
class Person {
@(myDecoratorArray[0])
greet() {}
}
```
##### Add parentheses for `TypeofTypeAnnotation` to improve readability ([#14458](https://togithub.com/prettier/prettier/pull/14458) by [@fisker](https://togithub.com/fisker))
```tsx
// Input
type A = (typeof node.children)[];
// Prettier 2.8.4
type A = typeof node.children[];
// Prettier 2.8.5
type A = (typeof node.children)[];
```
##### Support `max_line_length=off` when parsing `.editorconfig` ([#14516](https://togithub.com/prettier/prettier/pull/14516) by [@josephfrazier](https://togithub.com/josephfrazier))
If an .editorconfig file is in your project and it sets `max_line_length=off` for the file you're formatting,
it will be interpreted as a `printWidth` of `Infinity` rather than being ignored
(which previously resulted in the default `printWidth` of 80 being applied, if not overridden by Prettier-specific configuration).
```html
;
;
```
### [`v2.8.4`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#284)
[Compare Source](https://togithub.com/prettier/prettier/compare/2.8.3...2.8.4)
[diff](https://togithub.com/prettier/prettier/compare/2.8.3...2.8.4)
##### Fix leading comments in mapped types with `readonly` ([#13427](https://togithub.com/prettier/prettier/pull/13427) by [@thorn0](https://togithub.com/thorn0), [@sosukesuzuki](https://togithub.com/sosukesuzuki))
```tsx
// Input
type Type = {
// comment
readonly [key in Foo];
};
// Prettier 2.8.3
type Type = {
readonly // comment
[key in Foo];
};
// Prettier 2.8.4
type Type = {
// comment
readonly [key in Foo];
};
```
##### Group params in opening block statements ([#14067](https://togithub.com/prettier/prettier/pull/14067) by [@jamescdavis](https://togithub.com/jamescdavis))
This is a follow-up to [#13930](https://togithub.com/prettier/prettier/issues/13930) to establish wrapping consistency between opening block statements and else blocks by
grouping params in opening blocks. This causes params to break to a new line together and not be split across lines
unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the
same as opening blocks.
```hbs
{{! Input }}
{{#block param param param param param param param param param param as |blockParam|}}
Hello
{{else block param param param param param param param param param param as |blockParam|}}
There
{{/block}}
{{! Prettier 2.8.3 }}
{{#block
param
param
param
param
param
param
param
param
param
param
as |blockParam|
}}
Hello
{{else block param
param
param
param
param
param
param
param
param
param}}
There
{{/block}}
{{! Prettier 2.8.4 }}
{{#block
param param param param param param param param param param
as |blockParam|
}}
Hello
{{else block
param param param param param param param param param param
as |blockParam|
}}
There
{{/block}}
```
##### Ignore files in `.sl/` ([#14206](https://togithub.com/prettier/prettier/pull/14206) by [@bolinfest](https://togithub.com/bolinfest))
In [Sapling SCM](https://sapling-scm.com/), `.sl/` is the folder where it stores its state, analogous to `.git/` in Git. It should be ignored in Prettier like the other SCM folders.
##### Recognize `@satisfies` in Closure-style type casts ([#14262](https://togithub.com/prettier/prettier/pull/14262) by [@fisker](https://togithub.com/fisker))
```jsx
// Input
const a = /** @satisfies {Record} */ ({hello: 1337});
const b = /** @type {Record} */ ({hello: 1337});
// Prettier 2.8.3
const a = /** @satisfies {Record} */ { hello: 1337 };
const b = /** @type {Record} */ ({ hello: 1337 });
// Prettier 2.8.4
const a = /** @satisfies {Record} */ ({hello: 1337});
const b = /** @type {Record} */ ({hello: 1337});
```
##### Fix parens in inferred function return types with `extends` ([#14279](https://togithub.com/prettier/prettier/pull/14279) by [@fisker](https://togithub.com/fisker))
```ts
// Input
type Foo = T extends ((a) => a is infer R extends string) ? R : never;
// Prettier 2.8.3 (First format)
type Foo = T extends (a) => a is infer R extends string ? R : never;
// Prettier 2.8.3 (Second format)
SyntaxError: '?' expected.
// Prettier 2.8.4
type Foo = T extends ((a) => a is infer R extends string) ? R : never;
```
shikijs/shiki (shiki)
### [`v0.14.7`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0147--2023-12-15)
[Compare Source](https://togithub.com/shikijs/shiki/compare/v0.14.6...v0.14.7)
##### π Contributions
- doc: fix typo | [#544](https://togithub.com/shikijs/shiki/pull/544) | [@Seven-Y-Q-Guo](https://togithub.com/Seven-Y-Q-Guo)
- feat: Add `nushell` grammar | [#522](https://togithub.com/shikijs/shiki/pull/522) | [@hustcer](https://togithub.com/hustcer)
- feat: add `wl` alias for `wolfram` | [#535](https://togithub.com/shikijs/shiki/pull/535) | [@stone-zeng](https://togithub.com/stone-zeng)
### [`v0.14.6`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0146--2023-12-07)
[Compare Source](https://togithub.com/shikijs/shiki/compare/v0.14.5...v0.14.6)
##### π Features & Fixes
- fix: update razor grammar source
- fix: update kotlin language source
- fix: update vue syntax path
##### π Contributions
- feat: add csv highlighting | [#536](https://togithub.com/shikijs/shiki/pull/536) | [@mashehu](https://togithub.com/mashehu)
### [`v0.14.5`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0145--2023-10-10)
[Compare Source](https://togithub.com/shikijs/shiki/compare/v0.14.4...v0.14.5)
##### π Features & Fixes
- feat: add `gql` as an alias of `graphql`
##### π Contributions
- fix: alias `c++` to `cpp` | [#518](https://togithub.com/shikijs/shiki/pull/518) | [@scarf005](https://togithub.com/scarf005)
- fix: add 'kt' and 'kts' alias for kotlin | [#525](https://togithub.com/shikijs/shiki/pull/525) | [@camina-apps](https://togithub.com/camina-apps)
### [`v0.14.4`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0144--2023-08-31)
[Compare Source](https://togithub.com/shikijs/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 | [#511](https://togithub.com/shikijs/shiki/pull/511) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
- fix: Compiler errors in Node | [#504](https://togithub.com/shikijs/shiki/pull/504) | [@Gerrit0](https://togithub.com/Gerrit0)
- feat: add splunk grammar | [#505](https://togithub.com/shikijs/shiki/pull/505) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
- Add bun support | [#493](https://togithub.com/shikijs/shiki/pull/493) | [@aabccd021](https://togithub.com/aabccd021)
- feat: add shellsession grammar | [#483](https://togithub.com/shikijs/shiki/pull/483) | [@mashehu](https://togithub.com/mashehu)
### [`v0.14.3`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0143--2023-06-25)
[Compare Source](https://togithub.com/shikijs/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 [#478](https://togithub.com/shikijs/shiki/issues/478)
##### π Contributions
- feat: add narrat grammar | [#489](https://togithub.com/shikijs/shiki/pull/489) | [@liana-p](https://togithub.com/liana-p)
- feat: add glimmer js/ts language | [#486](https://togithub.com/shikijs/shiki/pull/486) | [@IgnaceMaes](https://togithub.com/IgnaceMaes)
- feat: add `displayName` to `BUNDLED_LANGUAGES` | [#470](https://togithub.com/shikijs/shiki/pull/470) | [@lawvs](https://togithub.com/lawvs)
- Specify langs in browser based example | [#477](https://togithub.com/shikijs/shiki/pull/477) | [@wesbos](https://togithub.com/wesbos)
- feat: add hjson | [#471](https://togithub.com/shikijs/shiki/pull/471) | [@AkaraChen](https://togithub.com/AkaraChen)
- feat: add nextflow grammar | [#472](https://togithub.com/shikijs/shiki/pull/472) | [@mashehu](https://togithub.com/mashehu)
- feat: add cypher grammar | [#465](https://togithub.com/shikijs/shiki/pull/465) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
- feat: add vyper grammar | [#466](https://togithub.com/shikijs/shiki/pull/466) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
- feat: add beancount grammar | [#468](https://togithub.com/shikijs/shiki/pull/468) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
### [`v0.14.2`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0142--2023-04-28)
[Compare Source](https://togithub.com/shikijs/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 [#223](https://togithub.com/shikijs/shiki/issues/223)
##### π Contributions
- feat: add kusto grammar ([#431](https://togithub.com/shikijs/shiki/issues/431)) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
- Add support for the css-variables theme to ansi rendering | [#435](https://togithub.com/shikijs/shiki/pull/435) | [@blake-mealey](https://togithub.com/blake-mealey)
- feat: add wolfram grammar | [#464](https://togithub.com/shikijs/shiki/pull/464) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
- feat: add c++ and golang support | [#459](https://togithub.com/shikijs/shiki/pull/459) | [@xinconan](https://togithub.com/xinconan)
- fix: avoid poisoning global scope | [#457](https://togithub.com/shikijs/shiki/pull/457) | [@Ayc0](https://togithub.com/Ayc0)
- fix(type): `theme` field autocompletion | [#449](https://togithub.com/shikijs/shiki/pull/449) | [@vaakian](https://togithub.com/vaakian)
- feat: add reg grammar | [#455](https://togithub.com/shikijs/shiki/pull/455) | [@KevinBatdorf](https://togithub.com/KevinBatdorf)
- Update Kotlin grammar and add a sample | [#445](https://togithub.com/shikijs/shiki/pull/445) | [@alllex](https://togithub.com/alllex)
- fix: marko, mdx, vue | [#452](https://togithub.com/shikijs/shiki/pull/452) | [@LeoDog896](https://togithub.com/LeoDog896)
- feat(gd\*): add gdscript family | [#451](https://togithub.com/shikijs/shiki/pull/451) | [@LeoDog896](https://togithub.com/LeoDog896)
- fix: add `protobuf` language id alias | [#446](https://togithub.com/shikijs/shiki/pull/446) | [@dimitropoulos](https://togithub.com/dimitropoulos)
- feat(lang): add alias dockerfile -> docker | [#444](https://togithub.com/shikijs/shiki/pull/444) | [@ezracelli](https://togithub.com/ezracelli)
- fix: faster parsing time for assets | [#443](https://togithub.com/shikijs/shiki/pull/443) | [@banga](https://togithub.com/banga)
- docs: update the src of VS Code Oniguruma repo | [#440](https://togithub.com/shikijs/shiki/pull/440) | [@donaldxdonald](https://togithub.com/donaldxdonald)
- docs: fix grammar of "grammar's" | [#442](https://togithub.com/shikijs/shiki/pull/442) | [@comex](https://togithub.com/comex)
***
##### 0.14.1 | 2023-02-09
- π Scrollable
elements should be focusable. [#428](https://togithub.com/shikijs/shiki/issues/428). Thanks to contribution from [@kevinleedrum](https://togithub.com/kevinleedrum).
##### 0.14.0 | 2023-01-29
- π ANSI support. [#386](https://togithub.com/shikijs/shiki/issues/386). Thanks to contribution from [@blake-mealey](https://togithub.com/blake-mealey).
##### 0.13.0 | 2023-01-27
- Improve grammar/theme fetching from marketplace.
- π Support CSON grammar sources. [#413](https://togithub.com/shikijs/shiki/issues/413). Thanks to contribution from [@muenzpraeger](https://togithub.com/muenzpraeger)
- Add a [Next.js 13 example](https://togithub.com/shikijs/next-shiki).
- Add a `bgFillOpacity` option for SVG renderer. [#276](https://togithub.com/shikijs/shiki/issues/276).
*Languages*
- Added `console` as an alias for `shell`. [#389](https://togithub.com/shikijs/shiki/issues/389).
- π Added `jison` and `wgsl` languages. [#413](https://togithub.com/shikijs/shiki/issues/413). Thanks to contribution from [@muenzpraeger](https://togithub.com/muenzpraeger)
*Themes*
- Renamed `material-` to `material-theme-`. For example, `material-ocean` to `material-theme-ocean`. `material-default` is renamed to `material-theme`.
***
##### 0.10.1
- π: feat: add ZenScript support [#300](https://togithub.com/shikijs/shiki/pull/300) | **[@jaredlll08](https://togithub.com/jaredlll08)**
- π: feat: add marko language [#299](https://togithub.com/shikijs/shiki/pull/299) | **[@manan-gup](https://togithub.com/manan-gup)**
- π: fix: split plaintext into lines [#298](https://togithub.com/shikijs/shiki/pull/298) | **[@silvenon](https://togithub.com/silvenon)**
- π: fix(docs): fixed custom language instructions [#294](https://togithub.com/shikijs/shiki/pull/294) | **[@JuanM04](https://togithub.com/JuanM04)**
- π: fix: updated astro grammar source [#293](https://togithub.com/shikijs/shiki/pull/293) | **[@JuanM04](https://togithub.com/JuanM04)**
- π: feat: add rel lang [#287](https://togithub.com/shikijs/shiki/pull/287) | **[@robbear](https://togithub.com/robbear)**
- π: feat: add rose pine themes [#282](https://togithub.com/shikijs/shiki/pull/281) | **[@EmeraldSnorlax](https://togithub.com/EmeraldSnorlax)**
- π: feat: add stata lang [#281](https://togithub.com/shikijs/shiki/pull/281) | **[@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. [#100](https://togithub.com/shikijs/shiki/issues/100).
- π Add Applescript grammar. [#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. [#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. [#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). [#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 ``. [#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. [#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). [#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. [#80](https://togithub.com/shikijs/shiki/issues/80).
- Fix `php` syntax highlighting. [#21](https://togithub.com/shikijs/shiki/issues/21).
- Add `jinja-html` language, which embeds `jinja` language. [#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. [#72](https://togithub.com/shikijs/shiki/issues/72).
- Use GitHub workflow to update themes periodically. [#71](https://togithub.com/shikijs/shiki/issues/71).
- Use theme foreground color when color of token is `undefined`. [#27](https://togithub.com/shikijs/shiki/issues/27).
- SVG Renderer. [#2](https://togithub.com/shikijs/shiki/issues/2).
- Fix HTML escaping. [#26](https://togithub.com/octref/shiki/issues/26) and [#28](https://togithub.com/octref/shiki/pull/28). Thanks to contribution from [@jackens](https://togithub.com/jackens).
- π Add an option to skip generating the explanation text. [#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. [#51](https://togithub.com/shikijs/shiki/pull/51). Thanks to contribution from [Gerrit Birkeland](https://togithub.com/Gerrit0).
- π Allow loading custom `tmLanguage`. [#10](https://togithub.com/octref/shiki/issues/10) and [#49](https://togithub.com/octref/shiki/pull/49). Thanks to contribution from [Orta Therox](https://togithub.com/orta) and [@pngwn](https://togithub.com/pngwn).
- π Update Java grammar. [#36](https://togithub.com/octref/shiki/issues/36) and [#37](https://togithub.com/octref/shiki/issues/37). Thanks to contribution from [@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. [#20](https://togithub.com/octref/shiki/issues/20).
##### 0.1.5 | 2019-09-09
- Begin to keep a changelog. [#7](https://togithub.com/octref/shiki/issues/7).
- Accept `plaintext`, `text` and `txt` as `lang`. Will return `code` as it is. [#16](https://togithub.com/octref/shiki/issues/16).
- Add `jsonc` language. [#18](https://togithub.com/octref/shiki/issues/18).
- Add `csharp` language. [#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. [#11](https://togithub.com/octref/shiki/issues/11). Thanks to contribution from [Wes Bos](https://togithub.com/wesbos).
### [`v0.14.1`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0141--2023-02-09)
[Compare Source](https://togithub.com/shikijs/shiki/compare/v0.14.0...v0.14.1)
- π Scrollable
elements should be focusable. [#428](https://togithub.com/shikijs/shiki/issues/428). Thanks to contribution from [@kevinleedrum](https://togithub.com/kevinleedrum).
### [`v0.14.0`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0140--2023-01-29)
[Compare Source](https://togithub.com/shikijs/shiki/compare/v0.13.0...v0.14.0)
- π ANSI support. [#386](https://togithub.com/shikijs/shiki/issues/386). Thanks to contribution from [@blake-mealey](https://togithub.com/blake-mealey).
### [`v0.13.0`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0130--2023-01-27)
[Compare Source](https://togithub.com/shikijs/shiki/compare/3009d740b25ee2d74ca4ac6ac0e02b06bf567019...v0.13.0)
- Improve grammar/theme fetching from marketplace.
- π Support CSON grammar sources. [#413](https://togithub.com/shikijs/shiki/issues/413). Thanks to contribution from [@muenzpraeger](https://togithub.com/muenzpraeger)
- Add a [Next.js 13 example](https://togithub.com/shikijs/next-shiki).
- Add a `bgFillOpacity` option for SVG renderer. [#276](https://togithub.com/shikijs/shiki/issues/276).
*Languages*
- Added `console` as an alias for `shell`. [#389](https://togithub.com/shikijs/shiki/issues/389).
- π Added `jison` and `wgsl` languages. [#413](https://togithub.com/shikijs/shiki/issues/413). Thanks to contribution from [@muenzpraeger](https://togithub.com/muenzpraeger)
*Themes*
- Renamed `material-` to `material-theme-`. For example, `material-ocean` to `material-theme-ocean`. `material-default` is renamed to `material-theme`.
***
Configuration
π Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
π» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^2.8.3
->^2.8.8
^0.12.1
->^0.14.7
Release Notes
prettier/prettier (prettier)
### [`v2.8.8`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#288) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.7...2.8.8) This version is a republished version of v2.8.7. A bad version was accidentally published and [it can't be unpublished](https://togithub.com/npm/cli/issues/1686), apologies for the churn. ### [`v2.8.7`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#287) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7) [diff](https://togithub.com/prettier/prettier/compare/2.8.6...2.8.7) ##### Allow multiple decorators on same getter/setter ([#14584](https://togithub.com/prettier/prettier/pull/14584) by [@fisker](https://togithub.com/fisker)) ```ts // Input class A { @decorator() get foo () {} @decorator() set foo (value) {} } // Prettier 2.8.6 SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3) 3 | get foo () {} 4 | > 5 | @decorator() | ^^^^^^^^^^^^ 6 | set foo (value) {} 7 | } // Prettier 2.8.7 class A { @decorator() get foo() {} @decorator() set foo(value) {} } ``` ### [`v2.8.6`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#286) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6) [diff](https://togithub.com/prettier/prettier/compare/2.8.5...2.8.6) ##### Allow decorators on private members and class expressions ([#14548](https://togithub.com/prettier/prettier/pull/14548) by [@fisker](https://togithub.com/fisker)) ```ts // Input class A { @decorator() #privateMethod () {} } // Prettier 2.8.5 SyntaxError: Decorators are not valid here. (2:3) 1 | class A { > 2 | @decorator() | ^^^^^^^^^^^^ 3 | #privateMethod () {} 4 | } // Prettier 2.8.6 class A { @decorator() #privateMethod() {} } ``` ### [`v2.8.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#285) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5) [diff](https://togithub.com/prettier/prettier/compare/2.8.4...2.8.5) ##### Support TypeScript 5.0 ([#14391](https://togithub.com/prettier/prettier/pull/14391) by [@fisker](https://togithub.com/fisker), [#13819](https://togithub.com/prettier/prettier/pull/13819) by [@fisker](https://togithub.com/fisker), [@sosukesuzuki](https://togithub.com/sosukesuzuki)) TypeScript 5.0 introduces two new syntactic features: - `const` modifiers for type parameters - `export type *` declarations ##### Add missing parentheses for decorator ([#14393](https://togithub.com/prettier/prettier/pull/14393) by [@fisker](https://togithub.com/fisker)) ```jsx // Input class Person { @(myDecoratorArray[0]) greet() {} } // Prettier 2.8.4 class Person { @myDecoratorArray[0] greet() {} } // Prettier 2.8.5 class Person { @(myDecoratorArray[0]) greet() {} } ``` ##### Add parentheses for `TypeofTypeAnnotation` to improve readability ([#14458](https://togithub.com/prettier/prettier/pull/14458) by [@fisker](https://togithub.com/fisker)) ```tsx // Input type A = (typeof node.children)[]; // Prettier 2.8.4 type A = typeof node.children[]; // Prettier 2.8.5 type A = (typeof node.children)[]; ``` ##### Support `max_line_length=off` when parsing `.editorconfig` ([#14516](https://togithub.com/prettier/prettier/pull/14516) by [@josephfrazier](https://togithub.com/josephfrazier)) If an .editorconfig file is in your project and it sets `max_line_length=off` for the file you're formatting, it will be interpreted as a `printWidth` of `Infinity` rather than being ignored (which previously resulted in the default `printWidth` of 80 being applied, if not overridden by Prettier-specific configuration). ```htmlshikijs/shiki (shiki)
### [`v0.14.7`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0147--2023-12-15) [Compare Source](https://togithub.com/shikijs/shiki/compare/v0.14.6...v0.14.7) ##### π Contributions - doc: fix typo | [#544](https://togithub.com/shikijs/shiki/pull/544) | [@Seven-Y-Q-Guo](https://togithub.com/Seven-Y-Q-Guo) - feat: Add `nushell` grammar | [#522](https://togithub.com/shikijs/shiki/pull/522) | [@hustcer](https://togithub.com/hustcer) - feat: add `wl` alias for `wolfram` | [#535](https://togithub.com/shikijs/shiki/pull/535) | [@stone-zeng](https://togithub.com/stone-zeng) ### [`v0.14.6`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0146--2023-12-07) [Compare Source](https://togithub.com/shikijs/shiki/compare/v0.14.5...v0.14.6) ##### π Features & Fixes - fix: update razor grammar source - fix: update kotlin language source - fix: update vue syntax path ##### π Contributions - feat: add csv highlighting | [#536](https://togithub.com/shikijs/shiki/pull/536) | [@mashehu](https://togithub.com/mashehu) ### [`v0.14.5`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0145--2023-10-10) [Compare Source](https://togithub.com/shikijs/shiki/compare/v0.14.4...v0.14.5) ##### π Features & Fixes - feat: add `gql` as an alias of `graphql` ##### π Contributions - fix: alias `c++` to `cpp` | [#518](https://togithub.com/shikijs/shiki/pull/518) | [@scarf005](https://togithub.com/scarf005) - fix: add 'kt' and 'kts' alias for kotlin | [#525](https://togithub.com/shikijs/shiki/pull/525) | [@camina-apps](https://togithub.com/camina-apps) ### [`v0.14.4`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0144--2023-08-31) [Compare Source](https://togithub.com/shikijs/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 | [#511](https://togithub.com/shikijs/shiki/pull/511) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) - fix: Compiler errors in Node | [#504](https://togithub.com/shikijs/shiki/pull/504) | [@Gerrit0](https://togithub.com/Gerrit0) - feat: add splunk grammar | [#505](https://togithub.com/shikijs/shiki/pull/505) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) - Add bun support | [#493](https://togithub.com/shikijs/shiki/pull/493) | [@aabccd021](https://togithub.com/aabccd021) - feat: add shellsession grammar | [#483](https://togithub.com/shikijs/shiki/pull/483) | [@mashehu](https://togithub.com/mashehu) ### [`v0.14.3`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0143--2023-06-25) [Compare Source](https://togithub.com/shikijs/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 [#478](https://togithub.com/shikijs/shiki/issues/478) ##### π Contributions - feat: add narrat grammar | [#489](https://togithub.com/shikijs/shiki/pull/489) | [@liana-p](https://togithub.com/liana-p) - feat: add glimmer js/ts language | [#486](https://togithub.com/shikijs/shiki/pull/486) | [@IgnaceMaes](https://togithub.com/IgnaceMaes) - feat: add `displayName` to `BUNDLED_LANGUAGES` | [#470](https://togithub.com/shikijs/shiki/pull/470) | [@lawvs](https://togithub.com/lawvs) - Specify langs in browser based example | [#477](https://togithub.com/shikijs/shiki/pull/477) | [@wesbos](https://togithub.com/wesbos) - feat: add hjson | [#471](https://togithub.com/shikijs/shiki/pull/471) | [@AkaraChen](https://togithub.com/AkaraChen) - feat: add nextflow grammar | [#472](https://togithub.com/shikijs/shiki/pull/472) | [@mashehu](https://togithub.com/mashehu) - feat: add cypher grammar | [#465](https://togithub.com/shikijs/shiki/pull/465) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) - feat: add vyper grammar | [#466](https://togithub.com/shikijs/shiki/pull/466) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) - feat: add beancount grammar | [#468](https://togithub.com/shikijs/shiki/pull/468) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) ### [`v0.14.2`](https://togithub.com/shikijs/shiki/blob/HEAD/CHANGELOG.md#0142--2023-04-28) [Compare Source](https://togithub.com/shikijs/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 [#223](https://togithub.com/shikijs/shiki/issues/223) ##### π Contributions - feat: add kusto grammar ([#431](https://togithub.com/shikijs/shiki/issues/431)) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) - Add support for the css-variables theme to ansi rendering | [#435](https://togithub.com/shikijs/shiki/pull/435) | [@blake-mealey](https://togithub.com/blake-mealey) - feat: add wolfram grammar | [#464](https://togithub.com/shikijs/shiki/pull/464) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) - feat: add c++ and golang support | [#459](https://togithub.com/shikijs/shiki/pull/459) | [@xinconan](https://togithub.com/xinconan) - fix: avoid poisoning global scope | [#457](https://togithub.com/shikijs/shiki/pull/457) | [@Ayc0](https://togithub.com/Ayc0) - fix(type): `theme` field autocompletion | [#449](https://togithub.com/shikijs/shiki/pull/449) | [@vaakian](https://togithub.com/vaakian) - feat: add reg grammar | [#455](https://togithub.com/shikijs/shiki/pull/455) | [@KevinBatdorf](https://togithub.com/KevinBatdorf) - Update Kotlin grammar and add a sample | [#445](https://togithub.com/shikijs/shiki/pull/445) | [@alllex](https://togithub.com/alllex) - fix: marko, mdx, vue | [#452](https://togithub.com/shikijs/shiki/pull/452) | [@LeoDog896](https://togithub.com/LeoDog896) - feat(gd\*): add gdscript family | [#451](https://togithub.com/shikijs/shiki/pull/451) | [@LeoDog896](https://togithub.com/LeoDog896) - fix: add `protobuf` language id alias | [#446](https://togithub.com/shikijs/shiki/pull/446) | [@dimitropoulos](https://togithub.com/dimitropoulos) - feat(lang): add alias dockerfile -> docker | [#444](https://togithub.com/shikijs/shiki/pull/444) | [@ezracelli](https://togithub.com/ezracelli) - fix: faster parsing time for assets | [#443](https://togithub.com/shikijs/shiki/pull/443) | [@banga](https://togithub.com/banga) - docs: update the src of VS Code Oniguruma repo | [#440](https://togithub.com/shikijs/shiki/pull/440) | [@donaldxdonald](https://togithub.com/donaldxdonald) - docs: fix grammar of "grammar's" | [#442](https://togithub.com/shikijs/shiki/pull/442) | [@comex](https://togithub.com/comex) *** ##### 0.14.1 | 2023-02-09 - π ScrollableConfiguration
π Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
π» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.
β Deploy Preview for pytorch-ignite ready!
Toggle QR Code...
Use your smartphone camera to open QR code link.
To edit notification comments on pull requests, go to your Netlify site configuration.