[PR #842] [MERGED] Update dependency prettier to v2.0.3 #3209

Closed
opened 2026-04-17 03:59:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/veggiemonk/awesome-docker/pull/842
Author: @renovate[bot]
Created: 4/5/2020
Status: Merged
Merged: 4/6/2020
Merged by: @veggiemonk

Base: masterHead: renovate/prettier-2.x


📝 Commits (1)

  • 8800d78 Update dependency prettier to v2.0.3

📊 Changes

2 files changed (+4 additions, -4 deletions)

View changed files

📝 package-lock.json (+3 -3)
📝 package.json (+1 -1)

📄 Description

This PR contains the following updates:

Package Type Update Change
prettier (source) devDependencies patch 2.0.2 -> 2.0.3

Release Notes

prettier/prettier

v2.0.3

Compare Source

diff

JavaScript
Fix prettier-ignore inside JSX (#​7877 by @​fisker)
// Input
<div>
{
  /* prettier-ignore */
  x     ?   <Y/> : <Z/>
}
</div>;

// Prettier 2.0.2 (first output)
<div>
  {/* prettier-ignore */
  x     ?   <Y/> : <Z/>}
</div>;

// Prettier 2.0.2 (second output)
<div>{/* prettier-ignore */ x     ?   <Y/> : <Z/>}</div>;

// Prettier 2.0.3
<div>
  {
    /* prettier-ignore */
    x     ?   <Y/> : <Z/>
  }
</div>;
Fix regressions in styled-components template literals (#​7883 by @​thorn0)
// Input
const Icon = styled.div`
  background:   var(--${background});
  ${Link}:not(:first-child) {
      fill:    rebeccapurple;
  }
`;

// Prettier 2.0.2
const Icon = styled.div`
  background: var(-- ${background});
  ${Link}:not (:first-child) {
    fill: rebeccapurple;
  }
`;

// Prettier 2.0.3
const Icon = styled.div`
  background: var(--${background});
  ${Link}:not(:first-child) {
    fill: rebeccapurple;
  }
`;
Fix: line endings were not always converted properly in multiline strings and comments (#​7891 by @​sidharthv96)
// Input
export const IAmIncredibleLongFunctionName = IAmAnotherFunctionName(<CRLF>
  (_0: IAmIncredibleLongParameterType) => {<CRLF>
    setTimeout(() => {<CRLF>
      /*<CRLF>
        Multiline comment<CRLF>
        Multiline comment<CRLF>
        Multiline comment<CRLF>
      */<CRLF>
      console.log(<CRLF>
        "Multiline string\<CRLF>
         Multiline string\<CRLF>
         Multiline string"<CRLF>
      );<CRLF>
    });<CRLF>
  }<CRLF>
);<CRLF>

// Prettier 2.0.2
export const IAmIncredibleLongFunctionName = IAmAnotherFunctionName(<CRLF>
  (_0: IAmIncredibleLongParameterType) => {<CRLF>
    setTimeout(() => {<CRLF>
      /*<LF>
        Multiline comment<LF>
        Multiline comment<LF>
        Multiline comment<LF>
      */<CRLF>
      console.log(<CRLF>
        "Multiline string\<LF>
         Multiline string\<LF>
         Multiline string"<CRLF>
      );<CRLF>
    });<CRLF>
  }<CRLF>
);<CRLF>

// Prettier 2.0.3: same as input
Fix bug with holes in array literals (#​7911 by @​bakkot)
// Input
new Test()
  .test()
  .test([, 0])
  .test();

// Prettier 2.0.2
[error] in.js: TypeError: Cannot read property 'type' of null

// Prettier 2.0.3
new Test().test().test([, 0]).test();
TypeScript
Wrap TSAsExpression (#​7869 by @​sosukesuzuki)
// Input
const value = thisIsAnIdentifier as ThisIsAReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyLongInterface;

// Prettier 2.0.2
const value = thisIsAnIdentifier as ThisIsAReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyLongInterface;

// Prettier 2.0.3
const value =
  thisIsAnIdentifier as
  ThisIsAReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyLongInterface;
Flow
Print dangling comments for inexact object type (#​7892 by @​sosukesuzuki)
// Input
type Foo = {
  // comment
  ...,
};

// Prettier 2.0.2
Error: Comment "comment" was not printed. Please report this error!

// Prettier 2.0.3
type Foo = {
  // comment
  ...,
};
Do not add comma for explicit inexact object with indexer property or no properties (#​7923 by @​DmitryGonchar)
// Input
type T = {
  [string]: number,
  ...,
}

type T = {
  // comment
  ...,
}

// Prettier 2.0.2
type T = {
  [string]: number,
  ...,
}

type T = {
  // comment
  ...,
}

// Prettier 2.0.3
type T = {
  [string]: number,
  ...
}

type T = {
  // comment
  ...
}
HTML
Fix printing of ignored empty inline elements (#​7867 by @​fisker)
<!-- Input-->
<!--prettier-ignore--><span></span>
<!--prettier-ignore--><span>_</span>

<!-- Prettier 2.0.2 (first output) -->
<!--prettier-ignore--><span
></span>
<!--prettier-ignore--><span>_</span>

<!-- Prettier 2.0.2 (second output) -->
<!--prettier-ignore--><span

></span>
<!--prettier-ignore--><span>_</span>

<!-- Prettier 2.0.3 -->
<!--prettier-ignore--><span></span>
<!--prettier-ignore--><span>_</span>
Format script and style inside tags with a colon in the name (#​7916 by @​fisker)
<!-- Input -->
<with:colon>
<script>function foo(){      return 1}</script>
<style>a         {color:         #f00}</style>
</with:colon>

<!-- Prettier 2.0.2 -->
<with:colon>
  <script>
    function foo(){ return 1}
  </script>
  <style>
    a {color: #f00}
  </style>
</with:colon>

<!-- Prettier 2.0.3 -->
<with:colon>
  <script>
    function foo() {
      return 1;
    }
  </script>
  <style>
    a {
      color: #f00;
    }
  </style>
</with:colon>
Other changes

Renovate 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 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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/veggiemonk/awesome-docker/pull/842 **Author:** [@renovate[bot]](https://github.com/apps/renovate) **Created:** 4/5/2020 **Status:** ✅ Merged **Merged:** 4/6/2020 **Merged by:** [@veggiemonk](https://github.com/veggiemonk) **Base:** `master` ← **Head:** `renovate/prettier-2.x` --- ### 📝 Commits (1) - [`8800d78`](https://github.com/veggiemonk/awesome-docker/commit/8800d783fda315f5c0f130b53d2756ec76cffc8e) Update dependency prettier to v2.0.3 ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+3 -3) 📝 `package.json` (+1 -1) </details> ### 📄 Description This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | devDependencies | patch | [`2.0.2` -> `2.0.3`](https://renovatebot.com/diffs/npm/prettier/2.0.2/2.0.3) | --- ### Release Notes <details> <summary>prettier/prettier</summary> ### [`v2.0.3`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;203) [Compare Source](https://togithub.com/prettier/prettier/compare/2.0.2...2.0.3) [diff](https://togithub.com/prettier/prettier/compare/2.0.2...2.0.3) ##### JavaScript ##### Fix `prettier-ignore` inside JSX ([#&#8203;7877](https://togithub.com/prettier/prettier/pull/7877) by [@&#8203;fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```jsx // Input <div> { /* prettier-ignore */ x ? <Y/> : <Z/> } </div>; // Prettier 2.0.2 (first output) <div> {/* prettier-ignore */ x ? <Y/> : <Z/>} </div>; // Prettier 2.0.2 (second output) <div>{/* prettier-ignore */ x ? <Y/> : <Z/>}</div>; // Prettier 2.0.3 <div> { /* prettier-ignore */ x ? <Y/> : <Z/> } </div>; ``` ##### Fix regressions in styled-components template literals ([#&#8203;7883](https://togithub.com/prettier/prettier/pull/7883) by [@&#8203;thorn0](https://togithub.com/thorn0)) <!-- prettier-ignore --> ```js // Input const Icon = styled.div` background: var(--${background}); ${Link}:not(:first-child) { fill: rebeccapurple; } `; // Prettier 2.0.2 const Icon = styled.div` background: var(-- ${background}); ${Link}:not (:first-child) { fill: rebeccapurple; } `; // Prettier 2.0.3 const Icon = styled.div` background: var(--${background}); ${Link}:not(:first-child) { fill: rebeccapurple; } `; ``` ##### Fix: line endings were not always converted properly in multiline strings and comments ([#&#8203;7891](https://togithub.com/prettier/prettier/pull/7891) by [@&#8203;sidharthv96](https://togithub.com/sidharthv96)) <!-- prettier-ignore --> // Input export const IAmIncredibleLongFunctionName = IAmAnotherFunctionName(<CRLF> (_0: IAmIncredibleLongParameterType) => {<CRLF> setTimeout(() => {<CRLF> /*<CRLF> Multiline comment<CRLF> Multiline comment<CRLF> Multiline comment<CRLF> */<CRLF> console.log(<CRLF> "Multiline string\<CRLF> Multiline string\<CRLF> Multiline string"<CRLF> );<CRLF> });<CRLF> }<CRLF> );<CRLF> // Prettier 2.0.2 export const IAmIncredibleLongFunctionName = IAmAnotherFunctionName(<CRLF> (_0: IAmIncredibleLongParameterType) => {<CRLF> setTimeout(() => {<CRLF> /*<LF> Multiline comment<LF> Multiline comment<LF> Multiline comment<LF> */<CRLF> console.log(<CRLF> "Multiline string\<LF> Multiline string\<LF> Multiline string"<CRLF> );<CRLF> });<CRLF> }<CRLF> );<CRLF> // Prettier 2.0.3: same as input ##### Fix bug with holes in array literals ([#&#8203;7911](https://togithub.com/prettier/prettier/pull/7911) by [@&#8203;bakkot](https://togithub.com/bakkot)) <!-- prettier-ignore --> ```jsx // Input new Test() .test() .test([, 0]) .test(); // Prettier 2.0.2 [error] in.js: TypeError: Cannot read property 'type' of null // Prettier 2.0.3 new Test().test().test([, 0]).test(); ``` ##### TypeScript ##### Wrap TSAsExpression ([#&#8203;7869](https://togithub.com/prettier/prettier/pull/7869) by [@&#8203;sosukesuzuki](https://togithub.com/sosukesuzuki)) <!-- prettier-ignore --> ```ts // Input const value = thisIsAnIdentifier as ThisIsAReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyLongInterface; // Prettier 2.0.2 const value = thisIsAnIdentifier as ThisIsAReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyLongInterface; // Prettier 2.0.3 const value = thisIsAnIdentifier as ThisIsAReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyReallyLongInterface; ``` ##### Flow ##### Print dangling comments for inexact object type ([#&#8203;7892](https://togithub.com/prettier/prettier/pull/7892) by [@&#8203;sosukesuzuki](https://togithub.com/sosukesuzuki)) <!-- prettier-ignore --> ```js // Input type Foo = { // comment ..., }; // Prettier 2.0.2 Error: Comment "comment" was not printed. Please report this error! // Prettier 2.0.3 type Foo = { // comment ..., }; ``` ##### Do not add comma for explicit inexact object with indexer property or no properties ([#&#8203;7923](https://togithub.com/prettier/prettier/pull/7923) by [@&#8203;DmitryGonchar](https://togithub.com/DmitryGonchar)) <!-- prettier-ignore --> ```jsx // Input type T = { [string]: number, ..., } type T = { // comment ..., } // Prettier 2.0.2 type T = { [string]: number, ..., } type T = { // comment ..., } // Prettier 2.0.3 type T = { [string]: number, ... } type T = { // comment ... } ``` ##### HTML ##### Fix printing of ignored empty inline elements ([#&#8203;7867](https://togithub.com/prettier/prettier/pull/7867) by [@&#8203;fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```html <!-- Input--> <!--prettier-ignore--><span></span> <!--prettier-ignore--><span>_</span> <!-- Prettier 2.0.2 (first output) --> <!--prettier-ignore--><span ></span> <!--prettier-ignore--><span>_</span> <!-- Prettier 2.0.2 (second output) --> <!--prettier-ignore--><span ></span> <!--prettier-ignore--><span>_</span> <!-- Prettier 2.0.3 --> <!--prettier-ignore--><span></span> <!--prettier-ignore--><span>_</span> ``` ##### Format `script` and `style` inside tags with a colon in the name ([#&#8203;7916](https://togithub.com/prettier/prettier/pull/7916) by [@&#8203;fisker](https://togithub.com/fisker)) <!-- prettier-ignore --> ```html <!-- Input --> <with:colon> <script>function foo(){ return 1}</script> <style>a {color: #f00}</style> </with:colon> <!-- Prettier 2.0.2 --> <with:colon> <script> function foo(){ return 1} </script> <style> a {color: #f00} </style> </with:colon> <!-- Prettier 2.0.3 --> <with:colon> <script> function foo() { return 1; } </script> <style> a { color: #f00; } </style> </with:colon> ``` ##### Other changes - Workaround for `require.resolve` in prettier-vscode ([#&#8203;7951](https://togithub.com/prettier/prettier/pull/7951) by [@&#8203;thorn0](https://togithub.com/thorn0)) - Fix unstable Angular expression binding ([#&#8203;7924](https://togithub.com/prettier/prettier/pull/7924) by [@&#8203;fisker](https://togithub.com/fisker)) - Update `isSCSS` regex ([#&#8203;7922](https://togithub.com/prettier/prettier/pull/7922) by [@&#8203;fisker](https://togithub.com/fisker)) - Fix formatting of empty files ([#&#8203;7921](https://togithub.com/prettier/prettier/pull/7921) by [@&#8203;fisker](https://togithub.com/fisker)) </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#veggiemonk/awesome-docker). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 03:59:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-docker#3209