Fix performance regression in doc printer by fisker · Pull Request #18342 · prettier/prettier (original) (raw)

@fisker

added 2 commits

November 27, 2025 18:37

@fisker

@fisker

@fisker fisker changed the titleFix printDocToString regression Fix regression in doc printer

Nov 27, 2025

@fisker fisker marked this pull request as ready for review

November 27, 2025 10:57

@fisker

@fisker

@fisker fisker changed the titleFix regression in doc printer Fix performance regression in doc printer

Nov 27, 2025

@fisker

Updated the changelog entry to specify performance regression.

@fisker fisker deleted the printDocToString branch

November 27, 2025 11:24

This was referenced

Nov 27, 2025

apricote pushed a commit to hetznercloud/fleeting-plugin-hetzner that referenced this pull request

Nov 27, 2025

This was referenced

Nov 27, 2025

Doridian pushed a commit to Doridian/carvera-pendant that referenced this pull request

Nov 27, 2025

@Doridian

This was referenced

Nov 27, 2025

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Nov 28, 2025

@renovate

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Nov 28, 2025

@renovate

This was referenced

Nov 28, 2025

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Nov 29, 2025

@renovate

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Nov 29, 2025

@renovate

This was referenced

Nov 29, 2025

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Nov 30, 2025

@renovate

renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request

Nov 30, 2025

@renovate

robbevp pushed a commit to robbevp/website-robbevanpetegem that referenced this pull request

Dec 22, 2025

@robbevp

This PR contains the following updates:

Package Type Update Change
eslint (source) devDependencies minor 9.34.0 -> 9.39.2
prettier (source) devDependencies minor 3.6.2 -> 3.7.4
stylelint (source) devDependencies minor 16.23.1 -> 16.26.1

Release Notes

eslint/eslint (eslint)

v9.39.2

Compare Source

Bug Fixes

Chores

v9.39.1

Compare Source

Bug Fixes

Documentation

Chores

v9.39.0

Compare Source

Features

Bug Fixes

Documentation

Chores

v9.38.0

Compare Source

Features

Bug Fixes

Documentation

Chores

v9.37.0

Compare Source

Features

Bug Fixes

Documentation

Chores

v9.36.0

Compare Source

Features

Bug Fixes

Documentation

Chores

v9.35.0

Compare Source

Features

Bug Fixes

Documentation

Chores

prettier/prettier (prettier)

v3.7.4

Compare Source

diff

LWC: Avoid quote around interpolations (#​18383 by @​kovsu)
<!-- Input -->
<div foo={bar}>   </div>

<!-- Prettier 3.7.3 (--embedded-language-formatting off) -->
<div foo="{bar}"></div>

<!-- Prettier 3.7.4 (--embedded-language-formatting off) -->
<div foo={bar}></div>
TypeScript: Fix comment inside union type gets duplicated (#​18393 by @​fisker)
// Input
type Foo = (/** comment */ a | b) | c;

// Prettier 3.7.3
type Foo = /** comment */ (/** comment */ a | b) | c;

// Prettier 3.7.4
type Foo = /** comment */ (a | b) | c;
TypeScript: Fix unstable comment print in union type comments (#​18395 by @​fisker)
// Input
type X = (A | B) & (
  // comment
  A | B
);

// Prettier 3.7.3 (first format)
type X = (A | B) &
  (// comment
  A | B);

// Prettier 3.7.3 (second format)
type X = (
  | A
  | B // comment
) &
  (A | B);

// Prettier 3.7.4
type X = (A | B) &
  // comment
  (A | B);

v3.7.3

Compare Source

diff

API: Fix prettier.getFileInfo() change that breaks VSCode extension (#​18375 by @​fisker)

An internal refactor accidentally broke the VSCode extension plugin loading.

v3.7.2

Compare Source

diff

JavaScript: Fix string print when switching quotes (#​18351 by @​fisker)
// Input
console.log("A descriptor\\'s .kind must be \"method\" or \"field\".")

// Prettier 3.7.1
console.log('A descriptor\\'s .kind must be "method" or "field".');

// Prettier 3.7.2
console.log('A descriptor\\\'s .kind must be "method" or "field".');
JavaScript: Preserve quote for embedded HTML attribute values (#​18352 by @​kovsu)
// Input
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;

// Prettier 3.7.1
const html = /* HTML */ ` <div class=${styles.banner}></div> `;

// Prettier 3.7.2
const html = /* HTML */ ` <div class="${styles.banner}"></div> `;
TypeScript: Fix comment in empty type literal (#​18364 by @​fisker)
// Input
export type XXX = {
  // tbd
};

// Prettier 3.7.1
export type XXX = { // tbd };

// Prettier 3.7.2
export type XXX = {
  // tbd
};

v3.7.1

Compare Source

diff

API: Fix performance regression in doc printer (#​18342 by @​fisker)

Prettier 3.7.0 can be very slow when formatting big files, the regression has been fixed.

v3.7.0

Compare Source

diff

🔗 Release Notes

stylelint/stylelint (stylelint)

v16.26.1

Compare Source

It fixes numerous false positive bugs, including many in the declaration-property-value-no-unknown rule for the latest CSS specifications.

v16.26.0

Compare Source

It adds 1 feature and fixes 2 bugs.

v16.25.0

Compare Source

It adds 3 new features, including experimental support for bulk suppressions. It's also our first immutable release, with the package published to npm using trusted publishing and our dependencies updated on a cool down for improved supply chain security.

v16.24.0

Compare Source

It adds 1 new rule, adds 1 option to a rule and fixes 2 bugs.


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 has been generated by Renovate Bot.

Reviewed-on: https://git.robbevp.be/robbevp/website-robbevanpetegem/pulls/498 Co-authored-by: Renovate Bot renovate@robbevp.be Co-committed-by: Renovate Bot renovate@robbevp.be

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})