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

chore(deps): update prettier to v2.8.8 #315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 25, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier (source) 2.8.4 -> 2.8.8 age adoption passing confidence

Release Notes

prettier/prettier (prettier)

v2.8.8

Compare Source

This version is a republished version of v2.8.7.
A bad version was accidentally published and it can't be unpublished, apologies for the churn.

v2.8.7

Compare Source

diff

Allow multiple decorators on same getter/setter (#​14584 by @​fisker)
// Input
class A {
  @​decorator()
  get foo () {}
  
  @​decorator()
  set foo (value) {}
}

// Prettier 2.8.6
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
  3 |   get foo () {}
  4 |   
> 5 |   @​decorator()
    |   ^^^^^^^^^^^^
  6 |   set foo (value) {}
  7 | }

// Prettier 2.8.7
class A {
  @​decorator()
  get foo() {}

  @​decorator()
  set foo(value) {}
}

v2.8.6

Compare Source

diff

Allow decorators on private members and class expressions (#​14548 by @​fisker)
// Input
class A {
  @​decorator()
  #privateMethod () {}
}

// Prettier 2.8.5
SyntaxError: Decorators are not valid here. (2:3)
  1 | class A {
> 2 |   @​decorator()
    |   ^^^^^^^^^^^^
  3 |   #privateMethod () {}
  4 | }

// Prettier 2.8.6
class A {
  @​decorator()
  #privateMethod() {}
}

v2.8.5

Compare Source

diff

Support TypeScript 5.0 (#​14391 by @​fisker, #​13819 by @​fisker, @​sosukesuzuki)

TypeScript 5.0 introduces two new syntactic features:

  • const modifiers for type parameters
  • export type * declarations
Add missing parentheses for decorator (#​14393 by @​fisker)
// Input
class Person {
  @​(myDecoratorArray[0])
  greet() {}
}

// Prettier 2.8.4
class Person {
  @​myDecoratorArray[0]
  greet() {}
}

// Prettier 2.8.5
class Person {
  @​(myDecoratorArray[0])
  greet() {}
}
Add parentheses for TypeofTypeAnnotation to improve readability (#​14458 by @​fisker)
// Input
type A = (typeof node.children)[];

// Prettier 2.8.4
type A = typeof node.children[];

// Prettier 2.8.5
type A = (typeof node.children)[];
Support max_line_length=off when parsing .editorconfig (#​14516 by @​josephfrazier)

If an .editorconfig file is in your project and it sets max_line_length=off for the file you're formatting,
it will be interpreted as a printWidth of Infinity rather than being ignored
(which previously resulted in the default printWidth of 80 being applied, if not overridden by Prettier-specific configuration).

<!-- Input -->
<div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}/>

<!-- Prettier 2.8.4 -->
<div
  className="HelloWorld"
  title={`You are visitor number ${num}`}
  onMouseOver={onMouseOver}
/>;

<!-- Prettier 2.8.5 -->
<div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver} />;

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 Mend Renovate. View repository job log here.

@renovate renovate bot added the enhancement New feature or request label Mar 25, 2023
@github-actions
Copy link

github-actions bot commented Mar 25, 2023

Fails
🚫

Danger failed to run dangerfile.js.

Error SyntaxError

Cannot use import statement outside a module
/home/runner/work/draftjs-conductor/draftjs-conductor/node_modules/semantic-release/index.js:1
import { createRequire } from "node:module";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:76:18)
    at wrapSafe (node:internal/modules/cjs/loader:1283:20)
    at Module._compile (node:internal/modules/cjs/loader:1328:27)
    at Object.customModuleHandler (/home/runner/work/draftjs-conductor/draftjs-conductor/node_modules/danger/distribution/runner/runners/inline.js:134:28)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at _module2.default._load (/home/runner/work/draftjs-conductor/draftjs-conductor/node_modules/override-require/dist/overrideRequire.js:43:25)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (dangerfile.js:2:25)

Dangerfile

71|     const added = packageDiff.dependencies.added;
72|     const removed = packageDiff.dependencies.removed;
73| 
74|     if (added.length) {
75|       const deps = danger.utils.sentence(added.map((d) => linkDep(d)));
--------------------^
76|       message(`Adding new dependencies: ${deps}`);
77|     }
78| 
79|     if (removed.length) {

Generated by 🚫 dangerJS against be7782e

@renovate renovate bot force-pushed the renovate/prettier branch 3 times, most recently from 705f565 to 768bbf5 Compare April 15, 2023 10:54
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from e70b522 to fe903db Compare April 23, 2023 11:49
@renovate renovate bot changed the title chore(deps): update prettier to v2.8.7 chore(deps): update prettier to v2.8.8 Apr 23, 2023
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from 1427d58 to 742c3a6 Compare June 3, 2023 03:04
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from bea711a to 5b13a36 Compare July 15, 2023 06:44
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from 164e9cf to 8650a59 Compare August 5, 2023 03:36
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from f741468 to d9a18e4 Compare September 30, 2023 04:18
@renovate renovate bot force-pushed the renovate/prettier branch 4 times, most recently from 5526efb to ff8d3f1 Compare October 21, 2023 08:04
@renovate renovate bot force-pushed the renovate/prettier branch 3 times, most recently from d13f922 to a996599 Compare November 12, 2023 06:40
@renovate renovate bot force-pushed the renovate/prettier branch 3 times, most recently from 3fb7de3 to a1e37f2 Compare December 2, 2023 03:30
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from c439460 to 7db5969 Compare December 9, 2023 03:30
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from f1652ee to c7c51c7 Compare February 17, 2024 05:08
@renovate renovate bot force-pushed the renovate/prettier branch 3 times, most recently from 385e5e4 to ed9e647 Compare April 20, 2024 07:43
@renovate renovate bot force-pushed the renovate/prettier branch 2 times, most recently from b6e6dfb to ba43424 Compare May 25, 2024 04:02
| datasource | package  | from  | to    |
| ---------- | -------- | ----- | ----- |
| npm        | prettier | 2.8.4 | 2.8.8 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants