Skip to content

chore(deps): update prettier packages - #31

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/prettier-packages
Open

chore(deps): update prettier packages#31
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/prettier-packages

Conversation

@renovate

@renovate renovate Bot commented Aug 9, 2023

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
prettier (source) 2.8.32.8.8 age confidence
prettier-plugin-astro ^0.8.0^0.14.0 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;
withastro/prettier-plugin-astro (prettier-plugin-astro)

v0.14.1

Compare Source

Patch Changes
  • 7282bcb: Fixes an issue where style and script tags would sometimes get moved to other tags

v0.14.0

Compare Source

Minor Changes
  • bb756df: Adds a new option called astroSkipFrontmatter to disable formatting the frontmatter. This can be useful when using other tools to format the frontmatter, such as Biome or dprint.

v0.13.0

Compare Source

Minor Changes
  • e97406a: Fix plugin sometimes including significant whitespace inside components, fragments and custom elements

v0.12.3

Compare Source

Patch Changes
  • e75f9c7: Fix <br /> tags sometimes causing additional spaces to appear
  • b4b0918: Fix not being able to format expressions with more than 2 roots

v0.12.2

Compare Source

Patch Changes
  • 11b0dc7: Fix attributes using optional chaining not formatting correctly

v0.12.1

Compare Source

Patch Changes
  • 0188f04: Fix attributes with multiple invalid JSX characters in their key inside expressions causing the plugin to throw an error

v0.12.0

Compare Source

Minor Changes
  • fa1a6e3: Do not delete line breaks and indentation of lines in class attribute
Patch Changes
  • b806845: Format doctype as lowercase to match Prettier 3.0

v0.11.1

Compare Source

Patch Changes
  • 62fe714: removes pnpm from engines

v0.11.0

Compare Source

Minor Changes
  • 94ed904: Migrated the plugin to Prettier 3's new APIs. It's unfortunately not possible for a plugin to support both version 2 and 3 of Prettier. As such, from this version on, only Prettier 3 is supported.

v0.10.0

Compare Source

Minor Changes
  • af9324e: Use the sync entrypoint of the Astro compiler instead of synckit, improving performance and reducing the dependency count of the plugin

v0.9.1

Compare Source

Patch Changes
  • 97c4b07: fix: prevent parsing empty script tags

v0.9.0

Compare Source

Minor Changes
  • abecea0: Use the babel-ts parser to parse the frontmatter. This parser was already used for expressions inside the template, so the experience should now be more homogenous all throughout the file.
  • d2a2c26: Add support for formatting script tags containing JSON, Markdown and other content

v0.8.1

Compare Source

Patch Changes
  • 9cb4c4f: Add compatibility for other plugins parsing top-level returns in Astro frontmatter
  • 88b0d84: Correctly pass options to embedded parsers
  • e5cf99d: Fix style tags using Stylus being truncated under certain circumstances

Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Aug 9, 2023

Copy link
Copy Markdown
Author

⚠ 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 click 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: pnpm-lock.yaml
Progress: resolved 0, reused 1, downloaded 0, added 0
 WARN  GET https://registry.npmjs.org/astro-compress/-/astro-compress-1.1.28.tgz error (ERR_PNPM_FETCH_404). Will retry in 10 seconds. 2 retries left.
Progress: resolved 14, reused 13, downloaded 0, added 0
Progress: resolved 14, reused 13, downloaded 1, added 0
 WARN  GET https://registry.npmjs.org/astro-compress/-/astro-compress-1.1.28.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.
undefined
 ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/astro-compress/-/astro-compress-1.1.28.tgz: Not Found - 404

No authorization header was set for the request.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@renovate
renovate Bot force-pushed the renovate/prettier-packages branch from 0e9833e to 340e54e Compare August 29, 2023 12:22
@renovate
renovate Bot force-pushed the renovate/prettier-packages branch from 340e54e to a61eb37 Compare January 26, 2024 19:14
@renovate
renovate Bot force-pushed the renovate/prettier-packages branch from a61eb37 to da39b38 Compare May 31, 2024 16:49
@renovate

renovate Bot commented May 31, 2024

Copy link
Copy Markdown
Author

⚠️ 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 click 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: pnpm-lock.yaml
Progress: resolved 0, reused 1, downloaded 0, added 0
 WARN  GET https://registry.npmjs.org/astro-compress/-/astro-compress-1.1.28.tgz error (ERR_PNPM_FETCH_404). Will retry in 10 seconds. 2 retries left.
Progress: resolved 14, reused 12, downloaded 2, added 0
 WARN  GET https://registry.npmjs.org/astro-compress/-/astro-compress-1.1.28.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.
 ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/astro-compress/-/astro-compress-1.1.28.tgz: Not Found - 404

No authorization header was set for the request.

@renovate renovate Bot changed the title chore(deps): update prettier packages chore(deps): update prettier packages - autoclosed Nov 12, 2025
@renovate renovate Bot closed this Nov 12, 2025
@renovate
renovate Bot deleted the renovate/prettier-packages branch November 12, 2025 16:42
| datasource | package               | from  | to     |
| ---------- | --------------------- | ----- | ------ |
| npm        | prettier              | 2.8.3 | 2.8.8  |
| npm        | prettier-plugin-astro | 0.8.0 | 0.14.1 |
@renovate renovate Bot changed the title chore(deps): update prettier packages - autoclosed chore(deps): update prettier packages Nov 13, 2025
@renovate renovate Bot reopened this Nov 13, 2025
@renovate
renovate Bot force-pushed the renovate/prettier-packages branch 2 times, most recently from da39b38 to b8d12b8 Compare November 13, 2025 23:13
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.

0 participants