prettier v2.6.2 Release Notes

  • 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();
      }
    }