webpack-contrib/css-loader (css-loader)
### [`v6.11.0`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#6110-2024-04-03)
[Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.10.0...v6.11.0)
##### Features
- supports multiple composes ([#1582](https://redirect.github.com/webpack-contrib/css-loader/issues/1582)) ([bbca614](https://redirect.github.com/webpack-contrib/css-loader/commit/bbca61411dc5f82964653a6d1aa27854519b743d))
##### Bug Fixes
- do not break `@scope` at-rule without params ([#1581](https://redirect.github.com/webpack-contrib/css-loader/issues/1581)) ([e022e3b](https://redirect.github.com/webpack-contrib/css-loader/commit/e022e3bb405472ac7d51ff1114783fc2811dfe04))
### [`v6.10.0`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#6100-2024-01-30)
[Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.9.1...v6.10.0)
##### Features
- add `@rspack/core` as an optional peer dependency ([#1568](https://redirect.github.com/webpack-contrib/css-loader/issues/1568)) ([3924679](https://redirect.github.com/webpack-contrib/css-loader/commit/3924679cb9a8f31996c742290a71a3446c9782b9))
- pass the `resourceQuery` and `resourceFragment` to the `auto` and `mode` callback ([#1569](https://redirect.github.com/webpack-contrib/css-loader/issues/1569)) ([d641c4d](https://redirect.github.com/webpack-contrib/css-loader/commit/d641c4d48264518dfeb77d7e1e8ef03bbb09b645))
- support named exports with any characters ([6f43929](https://redirect.github.com/webpack-contrib/css-loader/commit/6f439299838eab7e6fb18f6e9f47b9dee2208463))
##### [6.9.1](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.9.0...v6.9.1) (2024-01-18)
##### Bug Fixes
- css nesting support
- `@scope` at-rule support
### [`v6.9.1`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#691-2024-01-18)
[Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.9.0...v6.9.1)
### [`v6.9.0`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#690-2024-01-09)
[Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.8.1...v6.9.0)
##### Features
- updated generateExportEntry to expose node details ([#1556](https://redirect.github.com/webpack-contrib/css-loader/issues/1556)) ([05002f3](https://redirect.github.com/webpack-contrib/css-loader/commit/05002f39e29afd7e12f9efca4d073bc23e3d2150))
##### Bug Fixes
- css experiment detection ([#1559](https://redirect.github.com/webpack-contrib/css-loader/issues/1559)) ([f2cfe30](https://redirect.github.com/webpack-contrib/css-loader/commit/f2cfe30a8f6b0053a268c0d9c1943bb3c8f01338))
##### [6.8.1](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.8.0...v6.8.1) (2023-05-28)
##### Bug Fixes
- use `cause` for original errors and warnings ([#1526](https://redirect.github.com/webpack-contrib/css-loader/issues/1526)) ([ae3d8ae](https://redirect.github.com/webpack-contrib/css-loader/commit/ae3d8ae54ecb5706fe9c3449487cc8306699469f))
prettier/prettier (prettier)
### [`v3.3.3`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#333)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.3.2...3.3.3)
[diff](https://redirect.github.com/prettier/prettier/compare/3.3.2...3.3.3)
##### Add parentheses for nullish coalescing in ternary ([#16391](https://redirect.github.com/prettier/prettier/pull/16391) by [@cdignam-segment](https://redirect.github.com/cdignam-segment))
This change adds clarity to operator precedence.
```js
// Input
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;
// Prettier 3.3.2
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;
// Prettier 3.3.3
foo ? (bar ?? foo) : baz;
(foo ?? bar) ? a : b;
a ? b : (foo ?? bar);
```
##### Add parentheses for decorator expressions ([#16458](https://redirect.github.com/prettier/prettier/pull/16458) by [@y-schneider](https://redirect.github.com/y-schneider))
Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.
```ts
// Input
@(foo`tagged template`)
class X {}
// Prettier 3.3.2
@foo`tagged template`
class X {}
// Prettier 3.3.3
@(foo`tagged template`)
class X {}
```
##### Support `@let` declaration syntax ([#16474](https://redirect.github.com/prettier/prettier/pull/16474) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki))
Adds support for Angular v18 `@let` declaration syntax.
Please see the following code example. The `@let` declaration allows you to define local variables within the template:
```html
@let name = 'Frodo';
Dashboard for {{name}}
Hello, {{name}}
```
For more details, please refer to the excellent blog post by the Angular Team: [Introducing @let in Angular](https://blog.angular.dev/introducing-let-in-angular-686f9f383f0f).
We also appreciate the Angular Team for kindly answering our questions to implement this feature.
### [`v3.3.2`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#332)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.3.1...3.3.2)
[diff](https://redirect.github.com/prettier/prettier/compare/3.3.1...3.3.2)
##### Fix handlebars path expressions starts with `@` ([#16358](https://redirect.github.com/prettier/prettier/pull/16358) by [@Princeyadav05](https://redirect.github.com/Princeyadav05))
```hbs
{{! Input }}
{{@x.y.z}}
{{! Prettier 3.3.1 }}
{{@x}}
{{! Prettier 3.3.2 }}
{{@x.y.z}}
```
### [`v3.3.1`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#331)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.3.0...3.3.1)
[diff](https://redirect.github.com/prettier/prettier/compare/3.3.0...3.3.1)
##### Preserve empty lines in front matter ([#16347](https://redirect.github.com/prettier/prettier/pull/16347) by [@fisker](https://redirect.github.com/fisker))
```markdown
---
foo:
- bar1
- bar2
- bar3
---
Markdown
---
foo:
- bar1
- bar2
- bar3
---
Markdown
---
foo:
- bar1
- bar2
- bar3
---
Markdown
```
##### Preserve explicit language in front matter ([#16348](https://redirect.github.com/prettier/prettier/pull/16348) by [@fisker](https://redirect.github.com/fisker))
```markdown
---yaml
title: Hello
slug: home
---
---
title: Hello
slug: home
---
---yaml
title: Hello
slug: home
---
```
##### Avoid line breaks in import attributes ([#16349](https://redirect.github.com/prettier/prettier/pull/16349) by [@fisker](https://redirect.github.com/fisker))
```jsx
// Input
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };
// Prettier 3.3.0
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type:
"json" };
// Prettier 3.3.1
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };
```
### [`v3.3.0`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#330)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.5...3.3.0)
[diff](https://redirect.github.com/prettier/prettier/compare/3.2.5...3.3.0)
π [Release Notes](https://prettier.io/blog/2024/06/01/3.3.0.html)
### [`v3.2.5`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#325)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.4...3.2.5)
[diff](https://redirect.github.com/prettier/prettier/compare/3.2.4...3.2.5)
##### Support Angular inline styles as single template literal ([#15968](https://redirect.github.com/prettier/prettier/pull/15968) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki))
[Angular v17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b) supports single string inline styles.
```ts
// Input
@Component({
template: `
`,
})
export class AppComponent {}
```
##### Use `"json"` parser for `tsconfig.json` by default ([#16012](https://redirect.github.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki))
In [v2.3.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trialing comma **by default**.
When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data.
`tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension.
We decide to treat it as a JSON file for now to avoid the extra configuration step.
To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.pretterrc` file
```json
{
"overrides": [
{
"files": ["tsconfig.json", "jsconfig.json"],
"options": {
"parser": "jsonc"
}
}
]
}
```
```
```
### [`v3.2.4`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#324)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.3...3.2.4)
[diff](https://redirect.github.com/prettier/prettier/compare/3.2.3...3.2.4)
##### Fix incorrect parser inference ([#15947](https://redirect.github.com/prettier/prettier/pull/15947) by [@fisker](https://redirect.github.com/fisker))
Files like `.eslintrc.json` were incorrectly formatted as JSONC files.
```jsx
// Input
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "jsonc" }
// Prettier 3.2.4
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "json" }
```
### [`v3.2.3`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#323)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.2...3.2.3)
[diff](https://redirect.github.com/prettier/prettier/compare/3.2.2...3.2.3)
##### Throw errors for invalid code ([#15881](https://redirect.github.com/prettier/prettier/pull/15881) by [@fisker](https://redirect.github.com/fisker), [@Josh-Cena](https://redirect.github.com/Josh-Cena), [@auvred](https://redirect.github.com/auvred))
```ts
// Input
1++;
// Prettier 3.2.2
1++;
// Prettier 3.2.3
SyntaxError: Invalid left-hand side expression in unary operation (1:1)
> 1 | 1++;
| ^
```
```ts
// Input
try {} catch (error = 1){}
// Prettier 3.2.2
try {
} catch (error) {}
// Prettier 3.2.3
SyntaxError: Catch clause variable cannot have an initializer. (1:23)
> 1 | try {} catch (error = 1){}
| ^
```
##### Fix parser inference ([#15927](https://redirect.github.com/prettier/prettier/pull/15927) by [@fisker](https://redirect.github.com/fisker))
```console
// Prettier 3.2.2
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "json" }
// Prettier 3.2.3
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }
```
### [`v3.2.2`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#322)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.1...3.2.2)
[diff](https://redirect.github.com/prettier/prettier/compare/3.2.1...3.2.2)
##### Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute ([#15896](https://redirect.github.com/prettier/prettier/pull/15896) by [@eelco](https://redirect.github.com/eelco))
For example this code would crash before:
```jsx
```
##### Fix formatting error on optional call expression and member chain ([#15920](https://redirect.github.com/prettier/prettier/pull/15920) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki))
```jsx
// Input
a(() => {}, c?.d());
// Prettier 3.2.1
TypeError: Cannot read properties of undefined (reading 'type')
// Prettier 3.2.2
a(() => {}, c?.d());
```
### [`v3.2.1`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#321)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.0...3.2.1)
[diff](https://redirect.github.com/prettier/prettier/compare/3.2.0...3.2.1)
##### Fix formatting error on member chain ([#15915](https://redirect.github.com/prettier/prettier/pull/15915) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki))
```jsx
// Input
test().test2().test2(thing?.something);
// Prettier 3.2.0
TypeError: Cannot read properties of undefined (reading 'type')
// Prettier 3.2.1
test().test2().test2(thing?.something);
```
### [`v3.2.0`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#320)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.1.1...3.2.0)
[diff](https://redirect.github.com/prettier/prettier/compare/3.1.1...3.2.0)
π [Release Notes](https://prettier.io/blog/2024/01/13/3.2.0.html)
### [`v3.1.1`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#311)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.1.0...3.1.1)
[diff](https://redirect.github.com/prettier/prettier/compare/3.1.0...3.1.1)
##### Fix config file search ([#15363](https://redirect.github.com/prettier/prettier/pull/15363) by [@fisker](https://redirect.github.com/fisker))
Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
```text
ββ .prettierrc
ββ test.js (A directory)
ββ .prettierrc
```
```js
// Prettier 3.1.0
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// /test.js/.prettierrc
// Prettier 3.1.1
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// /.prettierrc
```
##### Skip explicitly passed symbolic links with `--no-error-on-unmatched-pattern` ([#15533](https://redirect.github.com/prettier/prettier/pull/15533) by [@sanmai-NL](https://redirect.github.com/sanmai-NL))
Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
In Prettier 3.1.1, you can use `--no-error-on-unmatched-pattern` to simply skip symbolic links.
##### Consistently use tabs in ternaries when `useTabs` is `true` ([#15662](https://redirect.github.com/prettier/prettier/pull/15662) by [@auvred](https://redirect.github.com/auvred))
```jsx
// Input
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
// Prettier 3.1.0
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
// Prettier 3.1.1
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
```
##### Improve config file search ([#15663](https://redirect.github.com/prettier/prettier/pull/15663) by [@fisker](https://redirect.github.com/fisker))
The Prettier config file search performance has been improved by more effective cache strategy.
##### Fix unstable and ugly formatting for comments in destructuring patterns ([#15708](https://redirect.github.com/prettier/prettier/pull/15708) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki))
```tsx
// Input
const {
foo,
// bar
// baz
}: Foo = expr;
// Prettier 3.1.0
const {
foo1,
} // bar
// baz
: Foo = expr;
// Prettier 3.1.0 second output
const {
foo1, // bar
} // baz
: Foo = expr;
// Prettier 3.1.1
const {
foo1,
// bar
// baz
}: Foo = expr;
```
##### Support "Import Attributes" ([#15718](https://redirect.github.com/prettier/prettier/pull/15718) by [@fisker](https://redirect.github.com/fisker))
[TypeScript 5.3](https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/#import-attributes) supports the latest updates to the [import attributes](https://redirect.github.com/tc39/proposal-import-attributes) proposal.
```tsx
import something from "./something.json" with { type: "json" };
```
##### Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd ([#15750](https://redirect.github.com/prettier/prettier/pull/15750) by [@ExplodingCabbage](https://redirect.github.com/ExplodingCabbage))
The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by [@ds300](https://redirect.github.com/ds300). However, Prettier's documentation (including the CLI `--help` text) continued to claim otherwise, falsely. The documentation is now fixed.
##### Keep curly braces and `from` keyword in empty `import` statements ([#15756](https://redirect.github.com/prettier/prettier/pull/15756) by [@fisker](https://redirect.github.com/fisker))
```js
// Input
import { } from 'foo';
import { /* comment */ } from 'bar';
// Prettier 3.1.0
import {} from "foo";
import /* comment */ "bar";
// Prettier 3.1.1
import {} from "foo";
import {} from /* comment */ "bar";
```
##### Keep empty import attributes and assertions ([#15757](https://redirect.github.com/prettier/prettier/pull/15757) by [@fisker](https://redirect.github.com/fisker))
```js
// Input
import foo from "foo" with {};
import bar from "bar" assert {};
// Prettier 3.1.0
import foo from "foo";
import bar from "bar";
// Prettier 3.1.1
import foo from "foo" with {};
import bar from "bar" assert {};
```
### [`v3.1.0`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#310)
[Compare Source](https://redirect.github.com/prettier/prettier/compare/3.0.3...3.1.0)
[diff](https://redirect.github.com/prettier/prettier/compare/3.0.3...3.1.0)
π [Release Notes](https://prettier.io/blog/2023/11/13/3.1.0.html)
jhipster/prettier-java (prettier-plugin-java)
### [`v2.6.4`](https://redirect.github.com/jhipster/prettier-java/releases/tag/prettier-plugin-java%402.6.4): 2.6.4
[Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.3...prettier-plugin-java@2.6.4)
#### Fixes
- Add es5 as trailingComma option (Issue [#652](https://redirect.github.com/jhipster/prettier-java/issues/652)) fixed by [#655](https://redirect.github.com/jhipster/prettier-java/issues/655) by [@jtkiesel](https://redirect.github.com/jtkiesel)
- Add types to exports in package.json (Issue [#663](https://redirect.github.com/jhipster/prettier-java/issues/663)) fixed by [#664](https://redirect.github.com/jhipster/prettier-java/issues/664) by [@mshima](https://redirect.github.com/mshima)
- Hug lambdas without blocks (Issue [#650](https://redirect.github.com/jhipster/prettier-java/issues/650)) fixed by [#653](https://redirect.github.com/jhipster/prettier-java/issues/653) by [@jtkiesel](https://redirect.github.com/jtkiesel)
- Align with JDK 22 spec (Issue [#665](https://redirect.github.com/jhipster/prettier-java/issues/665)) fixed by [#666](https://redirect.github.com/jhipster/prettier-java/issues/666) by [@jtkiesel](https://redirect.github.com/jtkiesel)
#### Misc
- Update advanced_usage.md with current working configuration for IntelliJ ([#669](https://redirect.github.com/jhipster/prettier-java/issues/669) by [@tfield](https://redirect.github.com/tfield))
- Update trailingComma option on advanced_usage.md ([#451](https://redirect.github.com/jhipster/prettier-java/issues/451) by [@jslivane](https://redirect.github.com/jslivane))
- Automate GitHub Pages deployment ([#672](https://redirect.github.com/jhipster/prettier-java/issues/672) by [@jtkiesel](https://redirect.github.com/jtkiesel))
### [`v2.6.3`](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.2...prettier-plugin-java@2.6.3)
[Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.2...prettier-plugin-java@2.6.3)
### [`v2.6.2`](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.1...prettier-plugin-java@2.6.2)
[Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.1...prettier-plugin-java@2.6.2)
### [`v2.6.1`](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.0...prettier-plugin-java@2.6.1)
[Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.0...prettier-plugin-java@2.6.1)
### [`v2.6.0`](https://redirect.github.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#Latest-v260)
[Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.5.0...prettier-plugin-java@2.6.0)
#### Enhancements
- Support Java 21 preview feature: string templates ([JEP 430](https://openjdk.org/jeps/430)) ([#640](https://redirect.github.com/jhipster/prettier-java/pull/640) by [@jtkiesel](https://redirect.github.com/jtkiesel))
- Avoid breaking on certain method chains and arguments (Issue [#626](https://redirect.github.com/jhipster/prettier-java/issues/626) closed by [#632](https://redirect.github.com/jhipster/prettier-java/pull/632) by [@jtkiesel](https://redirect.github.com/jtkiesel))
#### Fixes
- Consistent break after equals (Issue [#638](https://redirect.github.com/jhipster/prettier-java/issues/638) fixed by [#641](https://redirect.github.com/jhipster/prettier-java/pull/641) by [@jtkiesel](https://redirect.github.com/jtkiesel))
- Properly break and indent lambda with comments (Issue [#581](https://redirect.github.com/jhipster/prettier-java/issues/581) fixed by [#604](https://redirect.github.com/jhipster/prettier-java/pull/604) by [@jtkiesel](https://redirect.github.com/jtkiesel))
- Do not fail on constructor and method receiver parameter (Issue [#607](https://redirect.github.com/jhipster/prettier-java/issues/607) fixed by [#642](https://redirect.github.com/jhipster/prettier-java/pull/642) by [@jtkiesel](https://redirect.github.com/jtkiesel))
- No break in single-block switch case (Issue [#635](https://redirect.github.com/jhipster/prettier-java/issues/635) fixed by [#636](https://redirect.github.com/jhipster/prettier-java/pull/636) by [@jtkiesel](https://redirect.github.com/jtkiesel))
- Non-block if/else statements are now kept on their own lines (Issue [#631](https://redirect.github.com/jhipster/prettier-java/issues/631) fixed by [#633](https://redirect.github.com/jhipster/prettier-java/pull/633) by [@jtkiesel](https://redirect.github.com/jtkiesel))
#### Misc
- Create documentation website ([#628](https://redirect.github.com/jhipster/prettier-java/pull/628) by [@jtkiesel](https://redirect.github.com/jtkiesel)) available at https://www.jhipster.tech/prettier-java
### [`v2.5.0`](https://redirect.github.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#v250)
[Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.4.0...prettier-plugin-java@2.5.0)
#### Enhancements
- Supports Java 21 preview feature: unnamed patterns and variables ([JEP 443](https://openjdk.org/jeps/443)) ([#620](https://redirect.github.com/jhipster/prettier-java/pull/620) by [@jtkiesel](https://redirect.github.com/jtkiesel))
- New entrypoint lexAndParse to return both tokens and CST ([#625](https://redirect.github.com/jhipster/prettier-java/pull/625) by [@max-schaefer](https://redirect.github.com/max-schaefer))
#### Fixes
- No longer ignore whole block when prettier-ignore at start ([#603](https://redirect.github.com/jhipster/prettier-java/pull/603) by [@jtkiesel](https://redirect.github.com/jtkiesel))
#### Miscellaneous
- Improve Readme documentation ([#621](https://redirect.github.com/jhipster/prettier-java/pull/621), [#622](https://redirect.github.com/jhipster/prettier-java/pull/622) and [#623](https://redirect.github.com/jhipster/prettier-java/pull/623) by [@koppor](https://redirect.github.com/koppor))
### [`v2.4.0`](https://redirect.github.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#v240)
[Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.3.1...prettier-plugin-java@2.4.0)
#### Enhancements
- Supports Java 21 record pattern ([#611](https://redirect.github.com/jhipster/prettier-java/pull/611) by [@jtkiesel](https://redirect.github.com/jtkiesel))
- Supports Java 21 preview feature: unnamed class compilation unit ([JEP 445](https://openjdk.org/jeps/445)) ([#615](https://redirect.github.com/jhipster/prettier-java/pull/615))
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.
π» 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:
6.8.1
->6.11.0
3.0.3
->3.3.3
2.3.1
->2.6.4
2.7.15
->2.7.16
Release Notes
webpack-contrib/css-loader (css-loader)
### [`v6.11.0`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#6110-2024-04-03) [Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.10.0...v6.11.0) ##### Features - supports multiple composes ([#1582](https://redirect.github.com/webpack-contrib/css-loader/issues/1582)) ([bbca614](https://redirect.github.com/webpack-contrib/css-loader/commit/bbca61411dc5f82964653a6d1aa27854519b743d)) ##### Bug Fixes - do not break `@scope` at-rule without params ([#1581](https://redirect.github.com/webpack-contrib/css-loader/issues/1581)) ([e022e3b](https://redirect.github.com/webpack-contrib/css-loader/commit/e022e3bb405472ac7d51ff1114783fc2811dfe04)) ### [`v6.10.0`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#6100-2024-01-30) [Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.9.1...v6.10.0) ##### Features - add `@rspack/core` as an optional peer dependency ([#1568](https://redirect.github.com/webpack-contrib/css-loader/issues/1568)) ([3924679](https://redirect.github.com/webpack-contrib/css-loader/commit/3924679cb9a8f31996c742290a71a3446c9782b9)) - pass the `resourceQuery` and `resourceFragment` to the `auto` and `mode` callback ([#1569](https://redirect.github.com/webpack-contrib/css-loader/issues/1569)) ([d641c4d](https://redirect.github.com/webpack-contrib/css-loader/commit/d641c4d48264518dfeb77d7e1e8ef03bbb09b645)) - support named exports with any characters ([6f43929](https://redirect.github.com/webpack-contrib/css-loader/commit/6f439299838eab7e6fb18f6e9f47b9dee2208463)) ##### [6.9.1](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.9.0...v6.9.1) (2024-01-18) ##### Bug Fixes - css nesting support - `@scope` at-rule support ### [`v6.9.1`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#691-2024-01-18) [Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.9.0...v6.9.1) ### [`v6.9.0`](https://redirect.github.com/webpack-contrib/css-loader/blob/HEAD/CHANGELOG.md#690-2024-01-09) [Compare Source](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.8.1...v6.9.0) ##### Features - updated generateExportEntry to expose node details ([#1556](https://redirect.github.com/webpack-contrib/css-loader/issues/1556)) ([05002f3](https://redirect.github.com/webpack-contrib/css-loader/commit/05002f39e29afd7e12f9efca4d073bc23e3d2150)) ##### Bug Fixes - css experiment detection ([#1559](https://redirect.github.com/webpack-contrib/css-loader/issues/1559)) ([f2cfe30](https://redirect.github.com/webpack-contrib/css-loader/commit/f2cfe30a8f6b0053a268c0d9c1943bb3c8f01338)) ##### [6.8.1](https://redirect.github.com/webpack-contrib/css-loader/compare/v6.8.0...v6.8.1) (2023-05-28) ##### Bug Fixes - use `cause` for original errors and warnings ([#1526](https://redirect.github.com/webpack-contrib/css-loader/issues/1526)) ([ae3d8ae](https://redirect.github.com/webpack-contrib/css-loader/commit/ae3d8ae54ecb5706fe9c3449487cc8306699469f))prettier/prettier (prettier)
### [`v3.3.3`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#333) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.3.2...3.3.3) [diff](https://redirect.github.com/prettier/prettier/compare/3.3.2...3.3.3) ##### Add parentheses for nullish coalescing in ternary ([#16391](https://redirect.github.com/prettier/prettier/pull/16391) by [@cdignam-segment](https://redirect.github.com/cdignam-segment)) This change adds clarity to operator precedence. ```js // Input foo ? bar ?? foo : baz; foo ?? bar ? a : b; a ? b : foo ?? bar; // Prettier 3.3.2 foo ? bar ?? foo : baz; foo ?? bar ? a : b; a ? b : foo ?? bar; // Prettier 3.3.3 foo ? (bar ?? foo) : baz; (foo ?? bar) ? a : b; a ? b : (foo ?? bar); ``` ##### Add parentheses for decorator expressions ([#16458](https://redirect.github.com/prettier/prettier/pull/16458) by [@y-schneider](https://redirect.github.com/y-schneider)) Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5. ```ts // Input @(foo`tagged template`) class X {} // Prettier 3.3.2 @foo`tagged template` class X {} // Prettier 3.3.3 @(foo`tagged template`) class X {} ``` ##### Support `@let` declaration syntax ([#16474](https://redirect.github.com/prettier/prettier/pull/16474) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki)) Adds support for Angular v18 `@let` declaration syntax. Please see the following code example. The `@let` declaration allows you to define local variables within the template: ```html @let name = 'Frodo';Dashboard for {{name}}
Hello, {{name}} ``` For more details, please refer to the excellent blog post by the Angular Team: [Introducing @let in Angular](https://blog.angular.dev/introducing-let-in-angular-686f9f383f0f). We also appreciate the Angular Team for kindly answering our questions to implement this feature. ### [`v3.3.2`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#332) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.3.1...3.3.2) [diff](https://redirect.github.com/prettier/prettier/compare/3.3.1...3.3.2) ##### Fix handlebars path expressions starts with `@` ([#16358](https://redirect.github.com/prettier/prettier/pull/16358) by [@Princeyadav05](https://redirect.github.com/Princeyadav05)) ```hbs {{! Input }}{{ hello }}
`, }) export class AppComponent {} // Prettier 3.2.4 const template = "foobar"; @Component({ [template]: `{{ hello }}
`, }) export class AppComponent {} // Prettier 3.2.5 const template = "foobar"; @Component({ [template]: `{{ hello }}
`, }) export class AppComponent {} ``` ##### Use `"json"` parser for `tsconfig.json` by default ([#16012](https://redirect.github.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki)) In [v2.3.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trialing comma **by default**. When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data. `tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension. We decide to treat it as a JSON file for now to avoid the extra configuration step. To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.pretterrc` file ```json { "overrides": [ { "files": ["tsconfig.json", "jsconfig.json"], "options": { "parser": "jsonc" } } ] } ``` ``` ``` ### [`v3.2.4`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#324) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.3...3.2.4) [diff](https://redirect.github.com/prettier/prettier/compare/3.2.3...3.2.4) ##### Fix incorrect parser inference ([#15947](https://redirect.github.com/prettier/prettier/pull/15947) by [@fisker](https://redirect.github.com/fisker)) Files like `.eslintrc.json` were incorrectly formatted as JSONC files. ```jsx // Input prettier --file-info .eslintrc.json { "ignored": false, "inferredParser": "jsonc" } // Prettier 3.2.4 prettier --file-info .eslintrc.json { "ignored": false, "inferredParser": "json" } ``` ### [`v3.2.3`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#323) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.2...3.2.3) [diff](https://redirect.github.com/prettier/prettier/compare/3.2.2...3.2.3) ##### Throw errors for invalid code ([#15881](https://redirect.github.com/prettier/prettier/pull/15881) by [@fisker](https://redirect.github.com/fisker), [@Josh-Cena](https://redirect.github.com/Josh-Cena), [@auvred](https://redirect.github.com/auvred)) ```ts // Input 1++; // Prettier 3.2.2 1++; // Prettier 3.2.3 SyntaxError: Invalid left-hand side expression in unary operation (1:1) > 1 | 1++; | ^ ``` ```ts // Input try {} catch (error = 1){} // Prettier 3.2.2 try { } catch (error) {} // Prettier 3.2.3 SyntaxError: Catch clause variable cannot have an initializer. (1:23) > 1 | try {} catch (error = 1){} | ^ ``` ##### Fix parser inference ([#15927](https://redirect.github.com/prettier/prettier/pull/15927) by [@fisker](https://redirect.github.com/fisker)) ```console // Prettier 3.2.2 prettier --file-info tsconfig.json { "ignored": false, "inferredParser": "json" } // Prettier 3.2.3 prettier --file-info tsconfig.json { "ignored": false, "inferredParser": "jsonc" } ``` ### [`v3.2.2`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#322) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.1...3.2.2) [diff](https://redirect.github.com/prettier/prettier/compare/3.2.1...3.2.2) ##### Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute ([#15896](https://redirect.github.com/prettier/prettier/pull/15896) by [@eelco](https://redirect.github.com/eelco)) For example this code would crash before: ```jsx ``` ##### Fix formatting error on optional call expression and member chain ([#15920](https://redirect.github.com/prettier/prettier/pull/15920) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki)) ```jsx // Input a(() => {}, c?.d()); // Prettier 3.2.1 TypeError: Cannot read properties of undefined (reading 'type') // Prettier 3.2.2 a(() => {}, c?.d()); ``` ### [`v3.2.1`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#321) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.2.0...3.2.1) [diff](https://redirect.github.com/prettier/prettier/compare/3.2.0...3.2.1) ##### Fix formatting error on member chain ([#15915](https://redirect.github.com/prettier/prettier/pull/15915) by [@sosukesuzuki](https://redirect.github.com/sosukesuzuki)) ```jsx // Input test().test2().test2(thing?.something); // Prettier 3.2.0 TypeError: Cannot read properties of undefined (reading 'type') // Prettier 3.2.1 test().test2().test2(thing?.something); ``` ### [`v3.2.0`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#320) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.1.1...3.2.0) [diff](https://redirect.github.com/prettier/prettier/compare/3.1.1...3.2.0) π [Release Notes](https://prettier.io/blog/2024/01/13/3.2.0.html) ### [`v3.1.1`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#311) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.1.0...3.1.1) [diff](https://redirect.github.com/prettier/prettier/compare/3.1.0...3.1.1) ##### Fix config file search ([#15363](https://redirect.github.com/prettier/prettier/pull/15363) by [@fisker](https://redirect.github.com/fisker)) Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake. ```text ββ .prettierrc ββ test.js (A directory) ββ .prettierrc ``` ```js // Prettier 3.1.0 await prettier.resolveConfigFile(new URL("./test.js", import.meta.url)); //jhipster/prettier-java (prettier-plugin-java)
### [`v2.6.4`](https://redirect.github.com/jhipster/prettier-java/releases/tag/prettier-plugin-java%402.6.4): 2.6.4 [Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.3...prettier-plugin-java@2.6.4) #### Fixes - Add es5 as trailingComma option (Issue [#652](https://redirect.github.com/jhipster/prettier-java/issues/652)) fixed by [#655](https://redirect.github.com/jhipster/prettier-java/issues/655) by [@jtkiesel](https://redirect.github.com/jtkiesel) - Add types to exports in package.json (Issue [#663](https://redirect.github.com/jhipster/prettier-java/issues/663)) fixed by [#664](https://redirect.github.com/jhipster/prettier-java/issues/664) by [@mshima](https://redirect.github.com/mshima) - Hug lambdas without blocks (Issue [#650](https://redirect.github.com/jhipster/prettier-java/issues/650)) fixed by [#653](https://redirect.github.com/jhipster/prettier-java/issues/653) by [@jtkiesel](https://redirect.github.com/jtkiesel) - Align with JDK 22 spec (Issue [#665](https://redirect.github.com/jhipster/prettier-java/issues/665)) fixed by [#666](https://redirect.github.com/jhipster/prettier-java/issues/666) by [@jtkiesel](https://redirect.github.com/jtkiesel) #### Misc - Update advanced_usage.md with current working configuration for IntelliJ ([#669](https://redirect.github.com/jhipster/prettier-java/issues/669) by [@tfield](https://redirect.github.com/tfield)) - Update trailingComma option on advanced_usage.md ([#451](https://redirect.github.com/jhipster/prettier-java/issues/451) by [@jslivane](https://redirect.github.com/jslivane)) - Automate GitHub Pages deployment ([#672](https://redirect.github.com/jhipster/prettier-java/issues/672) by [@jtkiesel](https://redirect.github.com/jtkiesel)) ### [`v2.6.3`](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.2...prettier-plugin-java@2.6.3) [Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.2...prettier-plugin-java@2.6.3) ### [`v2.6.2`](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.1...prettier-plugin-java@2.6.2) [Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.1...prettier-plugin-java@2.6.2) ### [`v2.6.1`](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.0...prettier-plugin-java@2.6.1) [Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.6.0...prettier-plugin-java@2.6.1) ### [`v2.6.0`](https://redirect.github.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#Latest-v260) [Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.5.0...prettier-plugin-java@2.6.0) #### Enhancements - Support Java 21 preview feature: string templates ([JEP 430](https://openjdk.org/jeps/430)) ([#640](https://redirect.github.com/jhipster/prettier-java/pull/640) by [@jtkiesel](https://redirect.github.com/jtkiesel)) - Avoid breaking on certain method chains and arguments (Issue [#626](https://redirect.github.com/jhipster/prettier-java/issues/626) closed by [#632](https://redirect.github.com/jhipster/prettier-java/pull/632) by [@jtkiesel](https://redirect.github.com/jtkiesel)) #### Fixes - Consistent break after equals (Issue [#638](https://redirect.github.com/jhipster/prettier-java/issues/638) fixed by [#641](https://redirect.github.com/jhipster/prettier-java/pull/641) by [@jtkiesel](https://redirect.github.com/jtkiesel)) - Properly break and indent lambda with comments (Issue [#581](https://redirect.github.com/jhipster/prettier-java/issues/581) fixed by [#604](https://redirect.github.com/jhipster/prettier-java/pull/604) by [@jtkiesel](https://redirect.github.com/jtkiesel)) - Do not fail on constructor and method receiver parameter (Issue [#607](https://redirect.github.com/jhipster/prettier-java/issues/607) fixed by [#642](https://redirect.github.com/jhipster/prettier-java/pull/642) by [@jtkiesel](https://redirect.github.com/jtkiesel)) - No break in single-block switch case (Issue [#635](https://redirect.github.com/jhipster/prettier-java/issues/635) fixed by [#636](https://redirect.github.com/jhipster/prettier-java/pull/636) by [@jtkiesel](https://redirect.github.com/jtkiesel)) - Non-block if/else statements are now kept on their own lines (Issue [#631](https://redirect.github.com/jhipster/prettier-java/issues/631) fixed by [#633](https://redirect.github.com/jhipster/prettier-java/pull/633) by [@jtkiesel](https://redirect.github.com/jtkiesel)) #### Misc - Create documentation website ([#628](https://redirect.github.com/jhipster/prettier-java/pull/628) by [@jtkiesel](https://redirect.github.com/jtkiesel)) available at https://www.jhipster.tech/prettier-java ### [`v2.5.0`](https://redirect.github.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#v250) [Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.4.0...prettier-plugin-java@2.5.0) #### Enhancements - Supports Java 21 preview feature: unnamed patterns and variables ([JEP 443](https://openjdk.org/jeps/443)) ([#620](https://redirect.github.com/jhipster/prettier-java/pull/620) by [@jtkiesel](https://redirect.github.com/jtkiesel)) - New entrypoint lexAndParse to return both tokens and CST ([#625](https://redirect.github.com/jhipster/prettier-java/pull/625) by [@max-schaefer](https://redirect.github.com/max-schaefer)) #### Fixes - No longer ignore whole block when prettier-ignore at start ([#603](https://redirect.github.com/jhipster/prettier-java/pull/603) by [@jtkiesel](https://redirect.github.com/jtkiesel)) #### Miscellaneous - Improve Readme documentation ([#621](https://redirect.github.com/jhipster/prettier-java/pull/621), [#622](https://redirect.github.com/jhipster/prettier-java/pull/622) and [#623](https://redirect.github.com/jhipster/prettier-java/pull/623) by [@koppor](https://redirect.github.com/koppor)) ### [`v2.4.0`](https://redirect.github.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#v240) [Compare Source](https://redirect.github.com/jhipster/prettier-java/compare/prettier-plugin-java@2.3.1...prettier-plugin-java@2.4.0) #### Enhancements - Supports Java 21 record pattern ([#611](https://redirect.github.com/jhipster/prettier-java/pull/611) by [@jtkiesel](https://redirect.github.com/jtkiesel)) - Supports Java 21 preview feature: unnamed class compilation unit ([JEP 445](https://openjdk.org/jeps/445)) ([#615](https://redirect.github.com/jhipster/prettier-java/pull/615))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.
π» 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.