All Versions
108
Latest Version
Avg Release Cycle
29 days
Latest Release
-

Changelog History
Page 1

  • v2.8.0 Changes

    diff

    ๐Ÿš€ ๐Ÿ”— Release Notes

  • v2.7.1 Changes

    diff

    Keep useful empty lines in description (#13013 by @chimurai)

    <!-- prettier-ignore -->

  • v2.7.0 Changes

    diff

    ๐Ÿš€ ๐Ÿ”— Release Notes

  • v2.6.2 Changes

    diff

    ๐Ÿ›  Fix LESS/SCSS format error (#12536 by @fisker)

    <!-- prettier-ignore -->

    // Input
    .background-gradient(@cut) {
        background: linear-gradient(
            to right,
            @white 0%,
            @white (@cut - 0.01%),
            @portal-background @cut,
            @portal-background 100%
        );
    }
    
    // Prettier 2.6.1
    TypeError: Cannot read properties of undefined (reading 'endOffset')
    
    // Prettier 2.6.2
    .background-gradient(@cut) {
      background: linear-gradient(
        to right,
        @white 0%,
        @white (@cut - 0.01%),
        @portal-background @cut,
        @portal-background 100%
      );
    }
    
    โšก๏ธ Update meriyah to fix several bugs (#12567 by @fisker, fixes in meriyah by @3cp)

    ๐Ÿ›  Fixes bugs when parsing following valid code:

    foo(await bar());
    
    const regex = /.*/ms;
    
    const element = <p>{/w/.test(s)}</p>;
    
    class A extends B {
      #privateMethod() {
        super.method();
      }
    }
    
  • v2.6.1 Changes

    diff

    ๐Ÿ–จ Ignore loglevel when printing information (#12477 by @fisker)

    <!-- prettier-ignore -->

  • v2.6.0 Changes

    diff

    ๐Ÿš€ ๐Ÿ”— Release Notes

  • v2.5.1 Changes

    diff

    ๐Ÿ‘Œ Improve formatting for empty tuple types (#11884 by @sosukesuzuki)

    <!-- prettier-ignore -->

    // Input
    type Foo =
      Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
        ? Foo3
        : Foo4;
    
    // Prettier 2.5.0
    type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [
    
    ]
      ? Foo3
      : Foo4;
    
    // Prettier 2.5.0 (tailingCommma = all)
    // Invalid TypeScript code
    type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [
      ,
    ]
      ? Foo3
      : Foo4;
    
    // Prettier 2.5.1
    type Foo =
      Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
        ? Foo3
        : Foo4;
    
    
    ๐Ÿ›  Fix compatibility with Jest inline snapshot test (#11892 by @fisker)

    โœ… A internal change in [email protected] accidentally breaks the Jest inline snapshot test.

    ๐Ÿ‘Œ Support Glimmer's named blocks (#11899 by @duailibe)

    ๐Ÿ‘ Prettier already supported this feature, but it converted empty named blocks to self-closing, which is not supported by the Glimmer compiler.

    ๐Ÿ‘€ See: Glimmer's named blocks.

    <!-- prettier-ignore -->

    // Input
    <Component>
      <:named></:named>
    </Component>
    
    // Prettier 2.5.0
    <Component>
      <:named />
    </Component>
    
    // Prettier 2.5.1
    <Component>
      <:named></:named>
    </Component>
    
  • v2.5.0 Changes

    diff

    ๐Ÿš€ ๐Ÿ”— Release Notes

  • v2.4.1 Changes

    diff

    ๐Ÿ›  Fix wildcard syntax in @forward (#11482) (#11487 by @niksy)

    <!-- prettier-ignore -->

    // Input
    @forward "library" as btn-*;
    
    // Prettier 2.4.0
    @forward "library" as btn- *;
    
    // Prettier 2.4.1
    @forward "library" as btn-*;
    
    โž• Add new CLI option debug-print-ast (#11514 by @sosukesuzuki)

    ๐Ÿ–จ A new --debug-print-ast CLI flag for debugging.

  • v2.4.0 Changes

    diff

    ๐Ÿš€ ๐Ÿ”— Release Notes