From 7be05ab5a43c96a7e6a276266e55d1c824c4dee4 Mon Sep 17 00:00:00 2001 From: fisker Date: Wed, 25 Jun 2025 14:47:06 +0800 Subject: [PATCH] Clean changelog_unreleased --- changelog_unreleased/misc/17665.md | 8 -------- changelog_unreleased/typescript/17650.md | 20 -------------------- 2 files changed, 28 deletions(-) delete mode 100644 changelog_unreleased/misc/17665.md delete mode 100644 changelog_unreleased/typescript/17650.md diff --git a/changelog_unreleased/misc/17665.md b/changelog_unreleased/misc/17665.md deleted file mode 100644 index dc24692c9..000000000 --- a/changelog_unreleased/misc/17665.md +++ /dev/null @@ -1,8 +0,0 @@ -#### 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. diff --git a/changelog_unreleased/typescript/17650.md b/changelog_unreleased/typescript/17650.md deleted file mode 100644 index 9f4612433..000000000 --- a/changelog_unreleased/typescript/17650.md +++ /dev/null @@ -1,20 +0,0 @@ -#### Allow const without initializer (#17650, #17654 by @fisker) - - -```jsx -// Input -export const version: string; - -// Prettier stable (--parser=babel-ts) -SyntaxError: Unexpected token (1:21) -> 1 | export const version: string; - | ^ - -// Prettier stable (--parser=oxc-ts) -SyntaxError: Missing initializer in const declaration (1:14) -> 1 | export const version: string; - | ^^^^^^^^^^^^^^^ - -// Prettier main -export const version: string; -```