Skip to content

Update dependency prettier to v1.19.1 - #112

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/prettier-1.x
Open

Update dependency prettier to v1.19.1#112
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/prettier-1.x

Conversation

@renovate

@renovaterenovateBot commented Apr 12, 2019

Copy link
Copy Markdown

This PR contains the following updates:

PackageTypeUpdateChange
prettier (source)devDependenciesminor1.16.4 -> 1.19.1

Release Notes

prettier/prettier

v1.19.1

Compare Source

diff

CLI
Fix --stdin regression in 1.19.0 (#​6894 by @​lydell)
// Prettier stable
$ echo "test" | prettier --stdin --parser babel
[error] regeneratorRuntime is not defined
// Prettier master
$ echo "test" | prettier --stdin --parser babel
test;
TypeScript
Fix formatting of union type as arrow function return type (#​6896 by @​thorn0)
// InputexportconstgetVehicleDescriptor=async(vehicleId: string,): Promise<Collections.Parts.PrintedCircuitBoardAssembly['attributes']|undefined>=>{}// Prettier stableexportconstgetVehicleDescriptor=async(vehicleId: string): Promise<|Collections.Parts.PrintedCircuitBoardAssembly["attributes"]|undefined>=>{};// Prettier masterexportconstgetVehicleDescriptor=async(vehicleId: string): Promise<Collections.Parts.PrintedCircuitBoardAssembly["attributes"]|undefined>=>{};

v1.19.0

Compare Source

diff

🔗 Release Notes

v1.18.2

Compare Source

diff

v1.18.1

Compare Source

diff

  • TypeScript: Add trailing comma in tsx, only for arrow function (#​6190 by @​sosukesuzuki)

    Prettier inserts a trailing comma to single type parameter for arrow functions in tsx, since v 1.18. But, this feature inserts a trailing comma to type parameter for besides arrow functions too (e.g, function , interface). This change fix it.

    // InputinterfaceInterface1<T>{one: "one";}functionfunction1<T>(){return"one";}// Output (Prettier 1.18.0)interfaceInterface1<T,>{one: "one";}functionfunction1<T,>(){return"one";}// Output (Prettier 1.18.1)interfaceInterface1<T>{one: "one";}functionfunction1<T>(){return"one";}
  • Config: Match dotfiles in config overrides (#​6194 by @​duailibe)

    When using overrides in the config file, Prettier was not matching dotfiles (files that start with .). This was fixed in 1.18.1

v1.18.0

Compare Source

diff

🔗 Release Notes

v1.17.1

Compare Source

diff

  • Range: Fix ranged formatting not using the correct line width (#​6050 by @​mathieulj)

    // Inputfunctionf(){if(true){call("this line is 79 chars","long","it should","stay as single line");}}// Output (Prettier 1.17.0 run with --range-start 30 --range-end 110)functionf(){if(true){call("this line is 79 chars","long","it should","stay as single line");}}// Output (Prettier 1.17.0 run without range)functionf(){if(true){call("this line is 79 chars","long","it should","stay as single line");}}// Output (Prettier 1.17.1 with and without range)functionf(){if(true){call("this line is 79 chars","long","it should","stay as single line");}}
  • JavaScript: Fix closure compiler typecasts ([#​5947] by @​jridgewell)

    If a closing parenthesis follows after a typecast in an inner expression, the typecast would wrap everything to the that following parenthesis.

    // Inputtest(/** @&#8203;type {!Array} */(arrOrString).length);test(/** @&#8203;type {!Array} */((arrOrString)).length+1);// Output (Prettier 1.17.0)test(/** @&#8203;type {!Array} */(arrOrString.length));test(/** @&#8203;type {!Array} */(arrOrString.length+1));// Output (Prettier 1.17.1)test(/** @&#8203;type {!Array} */(arrOrString).length);test(/** @&#8203;type {!Array} */(arrOrString).length+1);
  • JavaScript: respect parenthesis around optional chaining before await (#​6087 by @​evilebottnawi)

    // InputasyncfunctionmyFunction(){varx=(awaitfoo.bar.blah)?.hi;}// Output (Prettier 1.17.0)asyncfunctionmyFunction(){varx=awaitfoo.bar.blah?.hi;}// Output (Prettier 1.17.1)asyncfunctionmyFunction(){varx=(awaitfoo.bar.blah)?.hi;}
  • Handlebars: Fix {{else}}{{#if}} into {{else if}} merging (#​6080 by @​dcyriller)

    // Input
    {{#if a}}
    a
    {{else}}
    {{#if c}}
    c
    {{/if}}
    e
    {{/if}}
    // Output (Prettier 1.17.0)
    {{#if a}}
    a
    {{else if c}}
    c
    e
    {{/if}}
    // Output (Prettier 1.17.1)
    Code Sample
    {{#if a}}
    a
    {{else}}
    {{#if c}}
    c
    {{/if}}
    e
    {{/if}}
    
  • JavaScript: Improved multiline closure compiler typecast comment detection (#​6070 by @​yangsu)

    Previously, multiline closure compiler typecast comments with lines that
    start with * weren't flagged correctly and the subsequent parenthesis were
    stripped. Prettier 1.17.1 fixes this issue.

    // Inputconststyle=/** * @&#8203;type {{ * width: number, * }}*/({
    width,});// Output (Prettier 1.17.0)conststyle=/** * @&#8203;type {{ * width: number, * }}*/{
    width,};// Output (Prettier 1.17.1)conststyle=/** * @&#8203;type {{ * width: number, * }}*/({
    width,});

v1.17.0

Compare Source

diff

🔗 Release Notes


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate
renovateBotforce-pushed the renovate/prettier-1.x branch from fb1f532 to 0207e58CompareMay 18, 2019 22:58
@renovaterenovateBot changed the title Update dependency prettier to v1.17.0Update dependency prettier to v1.17.1May 18, 2019
@renovaterenovateBot changed the title Update dependency prettier to v1.17.1Update dependency prettier to v1.18.2Jun 19, 2019
@renovate
renovateBotforce-pushed the renovate/prettier-1.x branch from 0207e58 to caa80b5CompareJune 19, 2019 11:02
@renovate
renovateBotforce-pushed the renovate/prettier-1.x branch from caa80b5 to 6616a52CompareNovember 10, 2019 19:04
@renovaterenovateBot changed the title Update dependency prettier to v1.18.2Update dependency prettier to v1.19.1Nov 10, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@renovate-bot