`,
})
export class AppComponent {}
```
##### Use `"json"` parser for `tsconfig.json` by default ([#16012](https://togithub.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://togithub.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"
}
}
]
}
```
```
```
Configuration
📅 Schedule: Branch creation - "before 6am" in timezone Asia/Jakarta, 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 has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.1.64
->0.3.9
^1.3.105
->^1.4.0
20.11.5
->20.11.16
16.3.2
->16.4.1
3.2.4
->3.2.5
Release Notes
node%20./bin (@swc/cli)
### [`v0.1.65`](https://togithub.com/node%20./bin/compare/8beb172eed09aa6be8b5601decab3a9a8116ba5f...484cb1d886df395c158f0b64895d016fc9ec3478) [Compare Source](https://togithub.com/node%20./bin/compare/8beb172eed09aa6be8b5601decab3a9a8116ba5f...484cb1d886df395c158f0b64895d016fc9ec3478)swc-project/swc (@swc/core)
### [`v1.4.0`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#140---2024-02-05) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.107...v1.4.0) ##### Bug Fixes - **(cli)** Make Rust CLI use sourcemap code from the `swc` crate ([#8576](https://togithub.com/swc-project/swc/issues/8576)) ([82bc061](https://togithub.com/swc-project/swc/commit/82bc061b8caad9b240f3c2ab75c2a53aed502297)) - **(es/codegen)** Fix codegen of async methods with decorators ([#8575](https://togithub.com/swc-project/swc/issues/8575)) ([8c32225](https://togithub.com/swc-project/swc/commit/8c322250b7276f002fc0848bbb5c53bdb8802c00)) - **(es/lexer)** Fix typo in `package` keyword ([#8589](https://togithub.com/swc-project/swc/issues/8589)) ([8413a6c](https://togithub.com/swc-project/swc/commit/8413a6c48e94613b9ba264210acab4f7f1787057)) - **(es/minifier)** Fix top-level check ([#8583](https://togithub.com/swc-project/swc/issues/8583)) ([a7c5255](https://togithub.com/swc-project/swc/commit/a7c5255ad1ad98c183b676af5caaf9057a9eccf1)) - **(es/proposals)** Support using `using` keyword with functions ([#8574](https://togithub.com/swc-project/swc/issues/8574)) ([d81596c](https://togithub.com/swc-project/swc/commit/d81596cd2b03ab7523937ae3206797a9c3b819bf)) - **(es/resolver)** Skip property in JSX member ([#8598](https://togithub.com/swc-project/swc/issues/8598)) ([d480ab9](https://togithub.com/swc-project/swc/commit/d480ab9ae8226fd8330376e33f0ad556c50d5b75)) - **(es/testing)** Make `test_inline!` not read output as a file ([#8569](https://togithub.com/swc-project/swc/issues/8569)) ([d683089](https://togithub.com/swc-project/swc/commit/d683089be1116f7944fcd3dbd4536b343becdf5e)) - **(es/typescript)** Handle exported JSX binding name in TypeScript namespace ([#8596](https://togithub.com/swc-project/swc/issues/8596)) ([2a70a6b](https://togithub.com/swc-project/swc/commit/2a70a6b1d477db5ae31c5c9412d299acaea10880)) ##### Features - **(es/minifier)** Inline more IIFE arguments ([#8584](https://togithub.com/swc-project/swc/issues/8584)) ([18e0b53](https://togithub.com/swc-project/swc/commit/18e0b53fbb19eb016fe3695a169ac7f0708c96d3)) - **(es/minifier)** Respect more options ([#8582](https://togithub.com/swc-project/swc/issues/8582)) ([fd997d3](https://togithub.com/swc-project/swc/commit/fd997d3712cf83d5de5bb63b3e2ac38871c4b736)) ##### Refactor - **(es/ast)** Improve type definitions of patterns ([#8532](https://togithub.com/swc-project/swc/issues/8532)) ([7f2a2c1](https://togithub.com/swc-project/swc/commit/7f2a2c1e406021b8907b8fd35da456bfdc5f55ac)) ##### Testing - **(es/minifer)** Update the passing terser test list ([#8573](https://togithub.com/swc-project/swc/issues/8573)) ([8b86638](https://togithub.com/swc-project/swc/commit/8b86638970797fe352db40128aabfb6a8cf9a43e)) - **(es/testing)** Ensure that `test_inline!` is working properly ([#8590](https://togithub.com/swc-project/swc/issues/8590)) ([872a47b](https://togithub.com/swc-project/swc/commit/872a47b851504f4c0095f7c9f2729d50451c97a6)) ### [`v1.3.107`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13107---2024-01-28) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.106...v1.3.107) ##### Bug Fixes - **(es/codegen)** Do not produce octal literals ([#8565](https://togithub.com/swc-project/swc/issues/8565)) ([07634a0](https://togithub.com/swc-project/swc/commit/07634a05ba9b989d68502953a69a40a2806e93d0)) - **(es/decorator)** Skip TypeScript class method/prop declarations ([#8555](https://togithub.com/swc-project/swc/issues/8555)) ([6a8dd8c](https://togithub.com/swc-project/swc/commit/6a8dd8cbb384372657923d4c1094e8053661aa56)) - **(es/decorator)** Preserve state while traversing the `module_items` scope ([#8556](https://togithub.com/swc-project/swc/issues/8556)) ([f416aff](https://togithub.com/swc-project/swc/commit/f416aff7d7036de72509132603d9b423a0b95f68)) - **(es/loader)** Make `tsc` resolver work for bare specifier ([#8550](https://togithub.com/swc-project/swc/issues/8550)) ([d6a4615](https://togithub.com/swc-project/swc/commit/d6a46158987d0e96d6184d41c2fdd73df92d6681)) ### [`v1.3.106`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13106---2024-01-25) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.105...v1.3.106) ##### Bug Fixes - **(binding/types)** Add `bugfixes` field to EnvConfig ([#8538](https://togithub.com/swc-project/swc/issues/8538)) ([49ebdf9](https://togithub.com/swc-project/swc/commit/49ebdf9fb7c9228c711c303c822add29bc3c8364)) - **(common)** Fix source map generation with `inputSourceMap` ([#8546](https://togithub.com/swc-project/swc/issues/8546)) ([043ee85](https://togithub.com/swc-project/swc/commit/043ee85d0852c7c7d6193ad699074a599326aeec)) - **(es/ast)** Add `definite` and `is_override` to `AutoAccessor` ([#8436](https://togithub.com/swc-project/swc/issues/8436)) ([572bcae](https://togithub.com/swc-project/swc/commit/572bcaefc1b6ba9f92c57a35ede61fec9f3221bd)) - **(es/ast)** Fix definition of `SetterProp` ([#8314](https://togithub.com/swc-project/swc/issues/8314)) ([bc38ac9](https://togithub.com/swc-project/swc/commit/bc38ac906c427ba060f3da47c64726fe417162ed)) - **(es/codegen)** Set `sourceRoot` of sourcemaps ([#6086](https://togithub.com/swc-project/swc/issues/6086)) ([ae78669](https://togithub.com/swc-project/swc/commit/ae786692a0d20254bc233472a23035ba1be25e46)) - **(es/compat)** Support vars from `reserved_word` pass ([#8543](https://togithub.com/swc-project/swc/issues/8543)) ([fc929e9](https://togithub.com/swc-project/swc/commit/fc929e962ba18afa98ae4523e50ff630527a218f)) - **(es/loader)** Don't use browser versions for `jsc.paths` ([#8548](https://togithub.com/swc-project/swc/issues/8548)) ([fab27da](https://togithub.com/swc-project/swc/commit/fab27dabed3a4d0478b28c86809cc06482b2c45c)) - **(es/minifier)** Fix a bug related to inliner and the variable scoping ([#8542](https://togithub.com/swc-project/swc/issues/8542)) ([aa70131](https://togithub.com/swc-project/swc/commit/aa70131c558158abd3dcd3fca53dfe444c511ae1)) - **(es/module)** Fix resolving of dependencies ([#8533](https://togithub.com/swc-project/swc/issues/8533)) ([71fb5c1](https://togithub.com/swc-project/swc/commit/71fb5c12a75bec27cc775069f83b576019d261f2)) - **(es/module)** Fix handling of `*` in `jsc.paths` ([#8535](https://togithub.com/swc-project/swc/issues/8535)) ([2d8bd9e](https://togithub.com/swc-project/swc/commit/2d8bd9ed894cbc2e0e9063f6a1ab723c3d3bfdc6)) - **(es/quote)** Add support for import phase to quote macro ([#8536](https://togithub.com/swc-project/swc/issues/8536)) ([71930ff](https://togithub.com/swc-project/swc/commit/71930ffb5625fb58fab3200764ea98b05abab8ba)) ##### Features - **(css/parser)** Implement error reporting for `@value` of CSS Modules ([#8547](https://togithub.com/swc-project/swc/issues/8547)) ([00619b1](https://togithub.com/swc-project/swc/commit/00619b17082e857d1d5822f04b9ee82b0a295cc3)) - **(es/ast)** Support import phase ([#8279](https://togithub.com/swc-project/swc/issues/8279)) ([72048ae](https://togithub.com/swc-project/swc/commit/72048ae1ced64b6d9d326e6d436a60b1191bc266)) - **(swc_core)** Expose `preset_env_base` ([#8537](https://togithub.com/swc-project/swc/issues/8537)) ([793f265](https://togithub.com/swc-project/swc/commit/793f2651a8c44c43cde8b83d4f98eda6e274676c)) ##### Miscellaneous Tasks - **(common)** Update `sourcemap` ([#8544](https://togithub.com/swc-project/swc/issues/8544)) ([4630426](https://togithub.com/swc-project/swc/commit/4630426d6aa77af992787456e476b8862c25a45e))motdotla/dotenv (dotenv)
### [`v16.4.1`](https://togithub.com/motdotla/dotenv/blob/HEAD/CHANGELOG.md#1641-2024-01-24) [Compare Source](https://togithub.com/motdotla/dotenv/compare/v16.4.0...v16.4.1) - Patch support for array as `path` option [#797](https://togithub.com/motdotla/dotenv/pull/797) ### [`v16.4.0`](https://togithub.com/motdotla/dotenv/blob/HEAD/CHANGELOG.md#1640-2024-01-23) [Compare Source](https://togithub.com/motdotla/dotenv/compare/v16.3.2...v16.4.0) - Add `error.code` to error messages around `.env.vault` decryption handling [#795](https://togithub.com/motdotla/dotenv/pull/795) - Add ability to find `.env.vault` file when filename(s) passed as an array [#784](https://togithub.com/motdotla/dotenv/pull/784)prettier/prettier (prettier)
### [`v3.2.5`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#325) [Compare Source](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5) [diff](https://togithub.com/prettier/prettier/compare/3.2.4...3.2.5) ##### Support Angular inline styles as single template literal ([#15968](https://togithub.com/prettier/prettier/pull/15968) by [@sosukesuzuki](https://togithub.com/sosukesuzuki)) [Angular v17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b) supports single string inline styles. ```ts // Input @Component({ template: `{{ 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://togithub.com/prettier/prettier/pull/16012) by [@sosukesuzuki](https://togithub.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" } } ] } ``` ``` ```Configuration
📅 Schedule: Branch creation - "before 6am" in timezone Asia/Jakarta, 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 has been generated by Mend Renovate. View repository job log here.