Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 14, 2023

This PR contains the following updates:

Package Change Age Confidence
prettier (source) 2.8.2 -> 2.8.8 age 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} />;

v2.8.4

Compare Source

diff

Fix leading comments in mapped types with readonly (#​13427 by @​thorn0, @​sosukesuzuki)
// Input
type Type = {
  // comment
  readonly [key in Foo];
};

// Prettier 2.8.3
type Type = {
  readonly // comment
  [key in Foo];
};

// Prettier 2.8.4
type Type = {
  // comment
  readonly [key in Foo];
};
Group params in opening block statements (#​14067 by @​jamescdavis)

This is a follow-up to #​13930 to establish wrapping consistency between opening block statements and else blocks by
grouping params in opening blocks. This causes params to break to a new line together and not be split across lines
unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the
same as opening blocks.

{{! Input }}
{{#block param param param param param param param param param param as |blockParam|}}
  Hello
{{else block param param param param param param param param param param as |blockParam|}}
  There
{{/block}}

{{! Prettier 2.8.3 }}
{{#block
  param
  param
  param
  param
  param
  param
  param
  param
  param
  param
  as |blockParam|
}}
  Hello
{{else block param
param
param
param
param
param
param
param
param
param}}
  There
{{/block}}

{{! Prettier 2.8.4 }}
{{#block
  param param param param param param param param param param
  as |blockParam|
}}
  Hello
{{else block
  param param param param param param param param param param
  as |blockParam|
}}
  There
{{/block}}
Ignore files in .sl/ (#​14206 by @​bolinfest)

In Sapling SCM, .sl/ is the folder where it stores its state, analogous to .git/ in Git. It should be ignored in Prettier like the other SCM folders.

Recognize @satisfies in Closure-style type casts (#​14262 by @​fisker)
// Input
const a = /** @&#8203;satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @&#8203;type {Record<string, string>} */ ({hello: 1337});

// Prettier 2.8.3
const a = /** @&#8203;satisfies {Record<string, string>} */ { hello: 1337 };
const b = /** @&#8203;type {Record<string, string>} */ ({ hello: 1337 });

// Prettier 2.8.4
const a = /** @&#8203;satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @&#8203;type {Record<string, string>} */ ({hello: 1337});
Fix parens in inferred function return types with extends (#​14279 by @​fisker)
// Input
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;

// Prettier 2.8.3 (First format)
type Foo<T> = T extends (a) => a is infer R extends string ? R : never;

// Prettier 2.8.3 (Second format)
SyntaxError: '?' expected. 

// Prettier 2.8.4
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;

v2.8.3

Compare Source

diff

Allow self-closing tags on custom elements (#​14170 by @​fisker)

See Angular v15.1.0 release note for details.

// Input
<app-test/>

// Prettier 2.8.2
SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1)
> 1 | <app-test/>
    | ^^^^^^^^^
  2 |

// Prettier 2.8.3
<app-test />

Configuration

📅 Schedule: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined).

🚦 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 was generated by Mend Renovate. View the repository job log.

@netlify
Copy link

netlify bot commented Jan 14, 2023

Deploy Preview for algolia-ga-actions-netlify failed.

Name Link
🔨 Latest commit 07e3bd9
🔍 Latest deploy log https://app.netlify.com/sites/algolia-ga-actions-netlify/deploys/65d9365258150500082c19b4

@github-actions
Copy link

Check your created Crawler

Check your created index on your Algolia Application

@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 338da78 to f2d9825 Compare January 20, 2023 19:37
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 6 times, most recently from a15c325 to c0cf0b4 Compare January 29, 2023 10:59
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 3 times, most recently from 02f6516 to 6713148 Compare February 5, 2023 02:04
@renovate renovate bot changed the title chore(deps): update dependency prettier to v2.8.3 chore(deps): update dependency prettier to v2.8.4 Feb 10, 2023
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 3 times, most recently from 44ac9e5 to 87c4dd5 Compare February 11, 2023 20:41
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from 45b0b1e to f5870c3 Compare February 17, 2023 22:42
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 3 times, most recently from a4045f4 to 04ab9f6 Compare March 4, 2023 09:30
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from 6c98a59 to fd0dcbd Compare March 11, 2023 02:25
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from fd0dcbd to fb7b87b Compare March 17, 2023 19:19
@renovate renovate bot changed the title chore(deps): update dependency prettier to v2.8.4 chore(deps): update dependency prettier to v2.8.7 Mar 24, 2023
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 5 times, most recently from 4f4615a to da36dc6 Compare March 31, 2023 14:59
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 3 times, most recently from 2ad7087 to 747d8f2 Compare September 9, 2023 02:03
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from c45150c to fbc9729 Compare September 15, 2023 22:31
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from fbc9729 to 709422f Compare September 23, 2023 01:21
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 709422f to 0162d1f Compare October 7, 2023 00:19
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 3 times, most recently from f025f4c to 7adde33 Compare October 21, 2023 00:23
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from 1abf617 to ccb14e6 Compare November 10, 2023 19:57
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from 8352a15 to dae4ccf Compare November 24, 2023 18:13
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from 431aba6 to adedc56 Compare December 8, 2023 19:37
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from adedc56 to 5d2ab44 Compare December 16, 2023 04:19
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 5d2ab44 to 07e3bd9 Compare February 24, 2024 00:20
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 07e3bd9 to ea5ee4f Compare September 20, 2024 20:01
@netlify
Copy link

netlify bot commented Sep 20, 2024

Deploy Preview for algolia-ga-actions-netlify failed.

Name Link
🔨 Latest commit f970e73
🔍 Latest deploy log https://app.netlify.com/sites/algolia-ga-actions-netlify/deploys/67385313859f480008d04874

@renovate renovate bot force-pushed the renovate/prettier-2.x branch 3 times, most recently from fd0a113 to 6bb042c Compare October 4, 2024 19:07
@renovate renovate bot force-pushed the renovate/prettier-2.x branch 2 times, most recently from b90f7c1 to 5247576 Compare October 5, 2024 04:17
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 5247576 to 4763a9a Compare October 25, 2024 15:20
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from 4763a9a to f970e73 Compare November 16, 2024 08:08
@renovate renovate bot force-pushed the renovate/prettier-2.x branch from f970e73 to e94476d Compare August 31, 2025 11:45
@netlify
Copy link

netlify bot commented Aug 31, 2025

Deploy Preview for algolia-ga-actions-netlify failed.

Name Link
🔨 Latest commit e94476d
🔍 Latest deploy log https://app.netlify.com/projects/algolia-ga-actions-netlify/deploys/68b435f64fad710008256dbb

Sign up for free to 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