Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

chore(deps): update dependency prettier to v2.3.1 #31

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 2, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier (source) 2.2.1 -> 2.3.1 age adoption passing confidence
@types/prettier 2.2.1 -> 2.3.0 age adoption passing confidence

Release Notes

prettier/prettier

v2.3.1

Compare Source

diff

Support TypeScript 4.3 (#​10945 by @​sosukesuzuki)
override modifiers in class elements
class Foo extends  {
  override method() {}
}
static index signatures ([key: KeyType]: ValueType) in classes
class Foo {
  static [key: string]: Bar;
}
get / set in type declarations
interface Foo {
  set foo(value);
  get foo(): string;
}
Preserve attributes order for element node (#​10958 by @​dcyriller)
{{!-- Input --}}
<MyComponent
  {{! this is a comment for arg 1}}
  @&#8203;arg1="hello"
  {{on "clik" this.modify}}
  @&#8203;arg2="hello"
  {{! this is a comment for arg 3}}
  @&#8203;arg3="hello"
  @&#8203;arg4="hello"
  {{! this is a comment for arg 5}}
  @&#8203;arg5="hello"
  ...arguments
/>
{{!-- Prettier stable --}}
<MyComponent
  @&#8203;arg1="hello"
  @&#8203;arg2="hello"
  @&#8203;arg3="hello"
  @&#8203;arg4="hello"
  @&#8203;arg5="hello"
  ...arguments
  {{on "clik" this.modify}}
  {{! this is a comment for arg 1}}
  {{! this is a comment for arg 3}}
  {{! this is a comment for arg 5}}
/>
{{!-- Prettier main --}}
<MyComponent
  {{! this is a comment for arg 1}}
  @&#8203;arg1="hello"
  {{on "clik" this.modify}}
  @&#8203;arg2="hello"
  {{! this is a comment for arg 3}}
  @&#8203;arg3="hello"
  @&#8203;arg4="hello"
  {{! this is a comment for arg 5}}
  @&#8203;arg5="hello"
  ...arguments
/>
Track cursor position properly when it’s at the end of the range to format (#​10938 by @​j-f1)

Previously, if the cursor was at the end of the range to format, it would simply be placed back at the end of the updated range.
Now, it will be repositioned if Prettier decides to add additional code to the end of the range (such as a semicolon).

// Input (<|> represents the cursor)
const someVariable = myOtherVariable<|>
// range to format:  ^^^^^^^^^^^^^^^

// Prettier stable
const someVariable = myOtherVariable;<|>
// range to format:  ^^^^^^^^^^^^^^^

// Prettier main
const someVariable = myOtherVariable<|>;
// range to format:  ^^^^^^^^^^^^^^^
Break the LHS of type alias that has complex type parameters (#​10901 by @​sosukesuzuki)
// Input
type FieldLayoutWith<
  T extends string,
  S extends unknown = { width: string }
> = {
  type: T;
  code: string;
  size: S;
};

// Prettier stable
type FieldLayoutWith<T extends string, S extends unknown = { width: string }> =
  {
    type: T;
    code: string;
    size: S;
  };

// Prettier main
type FieldLayoutWith<
  T extends string,
  S extends unknown = { width: string }
> = {
  type: T;
  code: string;
  size: S;
};
Break the LHS of assignments that has complex type parameters (#​10916 by @​sosukesuzuki)
// Input
const map: Map<
  Function,
  Map<string | void, { value: UnloadedDescriptor }>
> = new Map();

// Prettier stable
const map: Map<Function, Map<string | void, { value: UnloadedDescriptor }>> =
  new Map();

// Prettier main
const map: Map<
  Function,
  Map<string | void, { value: UnloadedDescriptor }>
> = new Map();
Fix incorrectly wrapped arrow functions with return types (#​10940 by @​thorn0)
// Input
longfunctionWithCall12("bla", foo, (thing: string): complex<type<something>> => {
  code();
});

// Prettier stable
longfunctionWithCall12("bla", foo, (thing: string): complex<
  type<something>
> => {
  code();
});

// Prettier main
longfunctionWithCall12(
  "bla",
  foo,
  (thing: string): complex<type<something>> => {
    code();
  }
);
Avoid breaking call expressions after assignments with complex type arguments (#​10949 by @​sosukesuzuki)
// Input
const foo = call<{
  prop1: string;
  prop2: string;
  prop3: string;
}>();

// Prettier stable
const foo =
  call<{
    prop1: string;
    prop2: string;
    prop3: string;
  }>();

// Prettier main
const foo = call<{
  prop1: string;
  prop2: string;
  prop3: string;
}>();
Fix order of override modifiers (#​10961 by @​sosukesuzuki)
// Input
class Foo extends Bar {
  abstract override foo: string;
}

// Prettier stable
class Foo extends Bar {
  abstract override foo: string;
}

// Prettier main
class Foo extends Bar {
  abstract override foo: string;
}

v2.3.0

Compare Source

diff

🔗 Release Notes


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 these updates 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
Copy link
Author

renovate bot commented Mar 2, 2021

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻️ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you check the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm ERR! code ETARGET
npm ERR! notarget No matching version found for npm@^7 <7.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate-cache/others/npm/_logs/2021-03-15T20_10_22_932Z-debug.log

@codecov
Copy link

codecov bot commented Mar 2, 2021

Codecov Report

Merging #31 (5fdfd26) into main (b27bfc7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #31   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            2         2           
=========================================
  Hits             2         2           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b27bfc7...5fdfd26. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Mar 2, 2021

size-limit report 📦

Path Size
dist/semantic-release-gradle-config.cjs.production.min.js 383 B (0%)
dist/semantic-release-gradle-config.esm.js 362 B (0%)

@renovate renovate bot changed the title chore(deps): update dependency @types/prettier to v2.2.2 chore(deps): update dependency @types/prettier to v2.2.3 Mar 15, 2021
@renovate renovate bot changed the title chore(deps): update dependency @types/prettier to v2.2.3 chore(deps): update dependency @types/prettier to v2.2.3 - autoclosed May 7, 2021
@renovate renovate bot closed this May 7, 2021
@renovate renovate bot deleted the renovate/prettier-2.x branch May 7, 2021 09:26
@renovate renovate bot changed the title chore(deps): update dependency @types/prettier to v2.2.3 - autoclosed chore(deps): update dependency @types/prettier to v2.2.3 May 7, 2021
@renovate renovate bot reopened this May 7, 2021
@renovate renovate bot restored the renovate/prettier-2.x branch May 7, 2021 14:52
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from 1c8fbbb to 3a68c67 Compare May 10, 2021 00:46
@renovate renovate bot changed the title chore(deps): update dependency @types/prettier to v2.2.3 chore(deps): update dependency prettier to v2.3.0 May 10, 2021
@renovate renovate bot changed the title chore(deps): update dependency prettier to v2.3.0 chore(deps): update dependency prettier to v2.3.1 Jun 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant