From 9a5a1695324d40482f14b3575d800e46ef7e1f73 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:24:36 +0000 Subject: [PATCH] fix(deps): update dependency prettier to ^3.0.3 (#1975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | [`^3.0.2` -> `^3.0.3`](https://renovatebot.com/diffs/npm/prettier/3.0.2/3.0.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prettier/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prettier/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prettier/3.0.2/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prettier/3.0.2/3.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
prettier/prettier (prettier) ### [`v3.0.3`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#303) [Compare Source](https://togithub.com/prettier/prettier/compare/3.0.2...3.0.3) [diff](https://togithub.com/prettier/prettier/compare/3.0.2...3.0.3) ##### Add `preferUnplugged: true` to `package.json` ([#​15169](https://togithub.com/prettier/prettier/pull/15169) by [@​fisker](https://togithub.com/fisker) and [@​so1ve](https://togithub.com/so1ve)) Prettier v3 uses dynamic imports, user [will need to unplug Prettier](https://togithub.com/yarnpkg/berry/pull/5411#issuecomment-1523502224) when Yarn's PnP mode is enabled, add [`preferUnplugged: true`](https://yarnpkg.com/configuration/manifest#preferUnplugged) to `package.json`, so Yarn will install Prettier as unplug by default. ##### Support shared config that forbids `require()` ([#​15233](https://togithub.com/prettier/prettier/pull/15233) by [@​fisker](https://togithub.com/fisker)) If an external shared config package is used, and the package `exports` don't have `require` or `default` export. In Prettier 3.0.2 Prettier fails when attempt to `require()` the package, and throws an error. ```text Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /package.json ``` ##### Allow argument of `require()` to break ([#​15256](https://togithub.com/prettier/prettier/pull/15256) by [@​fisker](https://togithub.com/fisker)) ```jsx // Input const plugin = require( global.STANDALONE ? path.join(__dirname, "../standalone.js") : path.join(__dirname, "..") ); // Prettier 3.0.2 const plugin = require(global.STANDALONE ? path.join(__dirname, "../standalone.js") : path.join(__dirname, "..")); // Prettier 3.0.3 const plugin = require( global.STANDALONE ? path.join(__dirname, "../standalone.js") : path.join(__dirname, "..") ); ``` ##### Do not print trailing commas in arrow function type parameter lists in `ts` code blocks ([#​15286](https://togithub.com/prettier/prettier/pull/15286) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) ````md ```ts const foo = () => {} ``` ```ts const foo = () => {} ``` ```ts const foo = () => {} ``` ```` ##### Support TypeScript 5.2 `using` / `await using` declaration ([#​15321](https://togithub.com/prettier/prettier/pull/15321) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) Support for the upcoming Explicit Resource Management feature in ECMAScript. [`using` / `await using` declaration](https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#using-declarations-and-explicit-resource-management) ```tsx { using foo = new Foo(); await using bar = new Bar(); } ```
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] 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/fwouts/previewjs). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 30 +++++++++++++++++++----------- serializable-values/package.json | 2 +- type-analyzer/package.json | 2 +- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 69d1db15933..6deabb3884f 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "execa": "^8.0.1", "inquirer": "^9.2.10", "license-checker": "^25.0.1", - "prettier": "^3.0.2", + "prettier": "^3.0.3", "ts-node": "^10.9.1", "turbo": "^1.10.13", "typescript": "^5.2.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 46abb05c5b5..fcfea23a096 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,8 +47,8 @@ importers: specifier: ^25.0.1 version: 25.0.1 prettier: - specifier: ^3.0.2 - version: 3.0.2 + specifier: ^3.0.3 + version: 3.0.3 ts-node: specifier: ^10.9.1 version: 10.9.1(@types/node@20.5.7)(typescript@5.2.2) @@ -3204,8 +3204,8 @@ importers: specifier: ^1.2.1 version: 1.2.1 prettier: - specifier: ^3.0.2 - version: 3.0.2 + specifier: ^3.0.3 + version: 3.0.3 typescript: specifier: ^5.2.2 version: 5.2.2 @@ -3312,8 +3312,8 @@ importers: specifier: ^13.2.2 version: 13.2.2 prettier: - specifier: ^3.0.2 - version: 3.0.2 + specifier: ^3.0.3 + version: 3.0.3 typescript: specifier: ^5.2.2 version: 5.2.2 @@ -4387,8 +4387,10 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.21.8 - '@babel/helper-create-class-features-plugin': 7.22.10(@babel/core@7.21.8) + '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.21.8) '@babel/helper-plugin-utils': 7.22.5 + transitivePeerDependencies: + - supports-color /@babel/plugin-proposal-class-properties@7.18.6(@babel/core@7.22.10): resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==} @@ -4397,8 +4399,10 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.10 - '@babel/helper-create-class-features-plugin': 7.22.10(@babel/core@7.22.10) + '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.10) '@babel/helper-plugin-utils': 7.22.5 + transitivePeerDependencies: + - supports-color /@babel/plugin-proposal-class-properties@7.18.6(@babel/core@7.22.9): resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==} @@ -4407,8 +4411,10 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.9 - '@babel/helper-create-class-features-plugin': 7.22.10(@babel/core@7.22.10) + '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.10) '@babel/helper-plugin-utils': 7.22.5 + transitivePeerDependencies: + - supports-color dev: true /@babel/plugin-proposal-class-static-block@7.21.0(@babel/core@7.21.4): @@ -21912,6 +21918,8 @@ packages: '@babel/plugin-transform-spread': 7.20.7(@babel/core@7.22.10) '@babel/plugin-transform-template-literals': 7.18.9(@babel/core@7.22.10) babel-plugin-syntax-trailing-function-commas: 7.0.0-beta.0 + transitivePeerDependencies: + - supports-color dev: false /babel-preset-jest@27.5.1(@babel/core@7.21.8): @@ -37237,8 +37245,8 @@ packages: engines: {node: '>=10.13.0'} hasBin: true - /prettier@3.0.2: - resolution: {integrity: sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==} + /prettier@3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} engines: {node: '>=14'} hasBin: true diff --git a/serializable-values/package.json b/serializable-values/package.json index 37dd784541e..df0ce76d179 100644 --- a/serializable-values/package.json +++ b/serializable-values/package.json @@ -25,7 +25,7 @@ "@faker-js/faker": "^8.0.2", "@previewjs/type-analyzer": "^9.0.0", "assert-never": "^1.2.1", - "prettier": "^3.0.2", + "prettier": "^3.0.3", "typescript": "^5.2.2" }, "devDependencies": { diff --git a/type-analyzer/package.json b/type-analyzer/package.json index 7b618f4a291..e81d19c97cc 100644 --- a/type-analyzer/package.json +++ b/type-analyzer/package.json @@ -25,7 +25,7 @@ "@previewjs/vfs": "^2.0.16", "assert-never": "^1.2.1", "globby": "^13.2.2", - "prettier": "^3.0.2", + "prettier": "^3.0.3", "typescript": "^5.2.2" }, "devDependencies": {