Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TypeScript 4.5 #11600

Closed
Tracked by #111
sosukesuzuki opened this issue Oct 2, 2021 · 1 comment · Fixed by #11813
Closed
Tracked by #111

Support TypeScript 4.5 #11600

sosukesuzuki opened this issue Oct 2, 2021 · 1 comment · Fixed by #11813
Labels
lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) scope:dependency Issues that cannot be solved inside Prettier itself, and must be fixed in a dependency type:enhancement A potential new feature to be added, or an improvement to how we print something
Milestone

Comments

@sosukesuzuki
Copy link
Member

sosukesuzuki commented Oct 2, 2021

Private fields in-in

class Person {
    #name: string;
    constructor(name: string) {
        this.#name = name;
    }

    equals(other: unknown) {
        return other &&
            typeof other === "object" &&
            #name in other && // <- this is new!
            this.#name === other.#name;
    }
}

Import Assertions

import obj from "./something.json" assert { type: "json" };

Type-only import/export specifiers

import { someFunc, type BaseType } from "./some-module.js";

Handle .mts and .cts file extensions.

https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#type-in-packagejson-and-new-extensions

@sosukesuzuki sosukesuzuki added type:enhancement A potential new feature to be added, or an improvement to how we print something lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) scope:dependency Issues that cannot be solved inside Prettier itself, and must be fixed in a dependency labels Oct 2, 2021
@sosukesuzuki sosukesuzuki pinned this issue Oct 2, 2021
@sosukesuzuki sosukesuzuki added this to the 2.5 milestone Nov 17, 2021
@kachkaev
Copy link
Member

📖 Prettier 2.5 blog post 🎉

@sosukesuzuki sosukesuzuki unpinned this issue Nov 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) scope:dependency Issues that cannot be solved inside Prettier itself, and must be fixed in a dependency type:enhancement A potential new feature to be added, or an improvement to how we print something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants