diff --git a/.github/ISSUE_TEMPLATE/formatting.md b/.github/ISSUE_TEMPLATE/formatting.md
index f7331818c..5d6d3a27f 100644
--- a/.github/ISSUE_TEMPLATE/formatting.md
+++ b/.github/ISSUE_TEMPLATE/formatting.md
@@ -26,7 +26,7 @@ Don't fill the form below manually! Let a program create a report for you:
-->
-**Prettier 3.9.0**
+**Prettier 3.9.1**
[Playground link](https://prettier.io/playground/#.....)
```sh
diff --git a/.github/ISSUE_TEMPLATE/integration.md b/.github/ISSUE_TEMPLATE/integration.md
index f88bd091c..0cdaaa6ec 100644
--- a/.github/ISSUE_TEMPLATE/integration.md
+++ b/.github/ISSUE_TEMPLATE/integration.md
@@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:
**Environments:**
-- Prettier Version: 3.9.0
+- Prettier Version: 3.9.1
- Running Prettier via:
- Runtime:
- Operating System:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fab879528..889a1f80d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,11 @@
+# 3.9.1
+
+[diff](https://github.com/prettier/prettier/compare/3.9.0...3.9.1)
+
+#### CLI: Fix ignored file has been cached incorrectly ([#19483](https://github.com/prettier/prettier/pull/19483) by [@kovsu](https://github.com/kovsu))
+
+Bug details https://github.com/prettier/prettier/issues/18016
+
# 3.9.0
[diff](https://github.com/prettier/prettier/compare/3.8.5...3.9.0)
diff --git a/package.json b/package.json
index 09ec1cbec..0fd179ae8 100644
--- a/package.json
+++ b/package.json
@@ -71,7 +71,7 @@
"espree": "11.2.0",
"fast-glob": "3.3.3",
"fast-json-stable-stringify": "2.1.0",
- "file-entry-cache": "11.1.3",
+ "file-entry-cache": "11.1.5",
"find-cache-directory": "6.0.0",
"flow-parser": "0.321.0",
"get-east-asian-width": "1.6.0",
@@ -179,7 +179,7 @@
"node-style-text": "2.1.2",
"npm-run-all2": "9.0.2",
"open-editor": "6.0.0",
- "prettier": "3.9.0",
+ "prettier": "3.9.1",
"pretty-bytes": "7.1.0",
"pretty-ms": "9.3.0",
"puppeteer": "25.2.1",
diff --git a/scripts/changelog-for-patch.js b/scripts/changelog-for-patch.js
index 048bc7fb3..560bb1dd4 100644
--- a/scripts/changelog-for-patch.js
+++ b/scripts/changelog-for-patch.js
@@ -18,7 +18,7 @@ const entries = fs
.readdirSync(changelogUnreleasedDirectory, { withFileTypes: true })
.filter((entry) => entry.isDirectory())
.flatMap((dir) => {
- const dirPath = path.join(dir.path, dir.name);
+ const dirPath = path.join(dir.parentPath, dir.name);
const { title } = categories.find((category) => category.dir === dir.name);
return getEntries(dirPath).map((entry) => {
diff --git a/src/cli/format.js b/src/cli/format.js
index 84de34946..c2434b803 100644
--- a/src/cli/format.js
+++ b/src/cli/format.js
@@ -321,10 +321,6 @@ async function formatFiles(context) {
context.argv.check ||
context.argv.listDifferent)
) {
- // If the file is ignored remove it from the cache
- // - it won't be formatted anymore
- // - if it has been restored, we shouldn't keep the old cache entry
- formatResultsCache?.removeFormatResultsCache(filename);
continue;
}
diff --git a/website/versioned_docs/version-stable/browser.md b/website/versioned_docs/version-stable/browser.md
index b3a8824aa..aeb13c183 100644
--- a/website/versioned_docs/version-stable/browser.md
+++ b/website/versioned_docs/version-stable/browser.md
@@ -21,7 +21,7 @@ Required options:
- **[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use.
-- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource-options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in [https://unpkg.com/browse/prettier@3.9.0/plugins](https://unpkg.com/browse/prettier@3.9.0/plugins). Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
+- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource-options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in [https://unpkg.com/browse/prettier@3.9.1/plugins](https://unpkg.com/browse/prettier@3.9.1/plugins). Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
@@ -32,8 +32,8 @@ See below for examples.
### Global
```html
-
-
+
+