From 4ab0a5c481f6436edf812e330dd5e328c3907f70 Mon Sep 17 00:00:00 2001 From: TrueCharts Bot Date: Mon, 3 Mar 2025 07:16:58 +0100 Subject: [PATCH] =?UTF-8?q?fix(website):=20update=20prettier=203.5.1=20?= =?UTF-8?q?=E2=86=92=203.5.3=20(#32800)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [prettier](https://prettier.io) ([source](https://redirect.github.com/prettier/prettier)) | dependencies | patch | [`3.5.1` -> `3.5.3`](https://renovatebot.com/diffs/npm/prettier/3.5.1/3.5.3) | Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Release Notes
prettier/prettier (prettier) ### [`v3.5.3`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#353) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.5.2...3.5.3) [diff](https://redirect.github.com/prettier/prettier/compare/3.5.2...3.5.3) ##### Flow: Fix missing parentheses in `ConditionalTypeAnnotation` ([#​17196](https://redirect.github.com/prettier/prettier/pull/17196) by [@​fisker](https://redirect.github.com/fisker)) ```jsx // Input type T = 'a' | ('b' extends U ? 'c' : empty); type T = 'a' & ('b' extends U ? 'c' : empty); // Prettier 3.5.2 type T = "a" | "b" extends U ? "c" : empty; type T = "a" & "b" extends U ? "c" : empty; // Prettier 3.5.3 type T = "a" | ("b" extends U ? "c" : empty); type T = "a" & ("b" extends U ? "c" : empty); ``` ### [`v3.5.2`](https://redirect.github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#352) [Compare Source](https://redirect.github.com/prettier/prettier/compare/3.5.1...3.5.2) [diff](https://redirect.github.com/prettier/prettier/compare/3.5.1...3.5.2) ##### Remove `module-sync` condition ([#​17156](https://redirect.github.com/prettier/prettier/pull/17156) by [@​fisker](https://redirect.github.com/fisker)) In Prettier 3.5.0, [we added `module-sync` condition to `package.json`](https://prettier.io/blog/2025/02/09/3.5.0#use-esm-entrypoint-for-requireesm-16958-by-tats-u), so that `require("prettier")` can use ESM version, but turns out it doesn't work if CommonJS and ESM plugins both imports builtin plugins. To solve this problem, we decide simply remove the `module-sync` condition, so `require("prettier")` will still use the CommonJS version, we'll revisit until `require(ESM)` feature is more stable.
--- ### 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 this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). --- website/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/package.json b/website/package.json index e8f0a20845c..b234eb296af 100644 --- a/website/package.json +++ b/website/package.json @@ -28,7 +28,7 @@ "astro-integration-lottie": "0.3.2", "astro-robots-txt": "1.0.0", "lottie-web": "5.12.2", - "prettier": "3.5.1", + "prettier": "3.5.3", "sharp": "0.33.5", "starlight-blog": "0.16.1", "starlight-image-zoom": "0.10.1",