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 dependency prettier to v3.0.3 #2375

Merged
merged 2 commits into from
Sep 10, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 4, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

prettier/prettier (prettier)

v3.0.3

Compare Source

diff

Add preferUnplugged: true to package.json (#​15169 by @​fisker and @​so1ve)

Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add preferUnplugged: true to package.json, so Yarn will install Prettier as unplug by default.

Support shared config that forbids require() (#​15233 by @​fisker)

If an external shared config package is used, and the package exports don't have require or default export.

In Prettier 3.0.2 Prettier fails when attempt to require() the package, and throws an error.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in <packageName>/package.json
Allow argument of require() to break (#​15256 by @​fisker)
// Input
const plugin = require(
  global.STANDALONE
    ? path.join(__dirname, "../standalone.js")
    : path.join(__dirname, "..")
);

// Prettier 3.0.2
const plugin = require(global.STANDALONE
  ? path.join(__dirname, "../standalone.js")
  : path.join(__dirname, ".."));

// Prettier 3.0.3
const plugin = require(
  global.STANDALONE
    ? path.join(__dirname, "../standalone.js")
    : path.join(__dirname, "..")
);
Do not print trailing commas in arrow function type parameter lists in ts code blocks (#​15286 by @​sosukesuzuki)
<!-- Input -->
```ts
const foo = <T>() => {}
```

<!-- Prettier 3.0.2 -->
```ts
const foo = <T,>() => {}
```

<!-- Prettier 3.0.3 -->
```ts
const foo = <T>() => {}
```
Support TypeScript 5.2 using / await using declaration (#​15321 by @​sosukesuzuki)

Support for the upcoming Explicit Resource Management feature in ECMAScript. using / await using declaration

{
   using foo = new Foo();
   await using bar = new Bar();
}

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - 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 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 requested a review from a team as a code owner September 4, 2023 00:44
@renovate renovate bot added the c: dependencies Pull requests that adds/updates a dependency label Sep 4, 2023
@codecov
Copy link

codecov bot commented Sep 4, 2023

Codecov Report

Merging #2375 (b140350) into next (769a489) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2375   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files        2786     2786           
  Lines      252716   252716           
  Branches     1093     1094    +1     
=======================================
+ Hits       251731   251736    +5     
+ Misses        958      953    -5     
  Partials       27       27           

see 1 file with indirect coverage changes

@ST-DDT
Copy link
Member

ST-DDT commented Sep 4, 2023

Looks like the md formatting changed.

Copy link
Member

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is weird with the formatting:

It now formats code blocks, but it removes unused imports from them:

grafik

Even if the code block is only there to show the import.
Any ideas?

@Shinigami92
Copy link
Member

Have you checked if there are already bug reports / issues on their repo?

I think using <!-- prettier-ignore --> is not a good solution here

@renovate renovate bot force-pushed the renovate/prettier branch 8 times, most recently from 1c4217e to d379682 Compare September 10, 2023 08:06
@Shinigami92 Shinigami92 requested a review from a team September 10, 2023 11:25
@renovate
Copy link
Contributor Author

renovate bot commented Sep 10, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@Shinigami92 Shinigami92 added the s: on hold Blocked by something or frozen to avoid conflicts label Sep 10, 2023
@Shinigami92 Shinigami92 self-assigned this Sep 10, 2023
@Shinigami92
Copy link
Member

@Shinigami92 Shinigami92 removed the s: on hold Blocked by something or frozen to avoid conflicts label Sep 10, 2023
@Shinigami92 Shinigami92 enabled auto-merge (squash) September 10, 2023 17:23
@Shinigami92 Shinigami92 merged commit a8e6080 into next Sep 10, 2023
19 checks passed
@ST-DDT ST-DDT deleted the renovate/prettier branch September 10, 2023 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: dependencies Pull requests that adds/updates a dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants