Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 25, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier (source) 3.6.0 -> 3.6.1 age adoption passing confidence

Release Notes

prettier/prettier (prettier)

v3.6.1

Compare Source

diff

TypeScript: Allow const without initializer (#​17650, #​17654 by @​fisker)
// Input
export const version: string;

// Prettier 3.6.0 (--parser=babel-ts)
SyntaxError: Unexpected token (1:21)
> 1 | export const version: string;
    |                     ^

// Prettier 3.6.0 (--parser=oxc-ts)
SyntaxError: Missing initializer in const declaration (1:14)
> 1 | export const version: string;
    |              ^^^^^^^^^^^^^^^

// Prettier 3.6.1
export const version: string;
Miscellaneous: Avoid closing files multiple times (#​17665 by @​43081j)

When reading a file to infer the interpreter from a shebang, we use the
n-readlines library to read the first line in order to get the shebang.

This library closes files when it reaches EOF, and we later try close the same
files again. We now close files only if n-readlines did not already close
them.


  • If you want to rebase/retry this PR, check this box

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jun 25, 2025
@renovate renovate bot requested a review from IgorKowalczyk June 25, 2025 07:41
@renovate renovate bot force-pushed the renovate/prettier-3.x branch from 92e2bcc to 05b3ee0 Compare June 26, 2025 12:55
@IgorKowalczyk IgorKowalczyk merged commit 5bfc503 into main Jun 26, 2025
8 checks passed
@IgorKowalczyk IgorKowalczyk deleted the renovate/prettier-3.x branch June 26, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants