Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

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

Merged
merged 1 commit into from
Jun 5, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 10, 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

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 @​sosukesusuzki)
// 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: "every weekend" in timezone America/Toronto.

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 renovate bot added the renovate label May 10, 2021
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 127e436 to 06aa4cd Compare May 14, 2021 10:29
@renovate renovate bot changed the title chore(deps): update dependency prettier to ^2.3.0 chore(deps): update dependency prettier to v2.3.0 May 14, 2021
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 06aa4cd to 50ee4ad Compare June 5, 2021 10:48
@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
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 6 times, most recently from 26accae to b0bd1d4 Compare June 5, 2021 19:46
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from b0bd1d4 to 5e2bc17 Compare June 5, 2021 19:50
@kunalnagar kunalnagar merged commit e1b1622 into master Jun 5, 2021
@kunalnagar kunalnagar deleted the renovate/prettier-2.x branch June 5, 2021 20:42
kunalnagar pushed a commit that referenced this pull request Jun 5, 2021
[skip ci]

### [1.0.8](v1.0.7...v1.0.8) (2021-06-05)

### Bug Fixes

* **deps:** update dependency underscore to v1.12.1 [security] ([#66](#66)) ([b7566d7](b7566d7))

### Chores

* **deps:** update dependency @types/node-fetch to v2.5.10 ([#67](#67)) ([e9c17b1](e9c17b1))
* **deps:** update dependency eslint to v7.28.0 ([#69](#69)) ([5f2a831](5f2a831))
* **deps:** update dependency eslint-config-prettier to v8.3.0 ([#71](#71)) ([0a01190](0a01190))
* **deps:** update dependency lint-staged to v11 ([#60](#60)) ([ba058e7](ba058e7))
* **deps:** update dependency mem to v8 ([#61](#61)) ([793a73e](793a73e))
* **deps:** update dependency prettier to v2.3.1 ([#64](#64)) ([e1b1622](e1b1622))
* **deps:** update dependency sort-package-json to v1.50.0 ([#56](#56)) ([5b538b5](5b538b5))
* **deps:** update dependency typescript to v4.3.2 ([#68](#68)) ([06b6ae9](06b6ae9))
* **deps:** update dependency yargs-parser to v20 ([#63](#63)) ([0f8ad74](0f8ad74))
@kunalnagar
Copy link
Member

🎉 This PR is included in version 1.0.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants