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 ^3.2.5 #370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 1, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier (source) ^3.2.4 -> ^3.2.5 age adoption passing confidence

Release Notes

prettier/prettier (prettier)

v3.2.5

Compare Source

diff

Support Angular inline styles as single template literal (#​15968 by @​sosukesuzuki)

Angular v17 supports single string inline styles.

// Input
@​Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.4
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.5
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `
    h1 {
      color: blue;
    }
  `,
})
export class AppComponent {}
Unexpected embedded formatting for Angular template (#​15969 by @​JounQin)

Computed template should not be considered as Angular component template

// Input
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.4
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{ hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.5
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}
Use "json" parser for tsconfig.json by default (#​16012 by @​sosukesuzuki)

In v2.3.0, we introduced "jsonc" parser which adds trialing comma by default.

When adding a new parser we also define how it will be used based on the linguist-languages data.

tsconfig.json is a special file used by TypeScript, it uses .json file extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing .json file extension.

We decide to treat it as a JSON file for now to avoid the extra configuration step.

To keep using the "jsonc" parser for your tsconfig.json files, add the following to your .pretterrc file

{
  "overrides": [
    {
      "files": ["tsconfig.json", "jsconfig.json"],
      "options": {
        "parser": "jsonc"
      }
    }
  ]
}

Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.

Copy link

changeset-bot bot commented Mar 1, 2024

⚠️ No Changeset found

Latest commit: 8469c2d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

codesandbox-ci bot commented Mar 1, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (88358de) to head (8469c2d).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #370   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           39        39           
  Branches        14        14           
=========================================
  Hits            39        39           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Mar 1, 2024

📊 Package size report   No changes

File Before After
Total (Includes all files) 237.9 kB 237.9 kB
Tarball size 63.3 kB -0.01%↓63.3 kB
Unchanged files
File Size
.changeset/config.json 309 B
.changeset/README.md 510 B
.codesandbox/ci.json 119 B
.editorconfig 161 B
.eslintignore 63 B
.eslintrc 103 B
.gitattributes 35 B
.github/workflows/ci.yml 881 B
.github/workflows/codeql.yml 851 B
.github/workflows/pkg-size.yml 468 B
.github/workflows/release.yml 1.1 kB
.lintstagedrc.cjs 50 B
.nvmrc 6 B
.remarkrc 42 B
.simple-git-hooks.cjs 51 B
.stylelintignore 99 B
.stylelintrc 42 B
CHANGELOG.md 486 B
LICENSE 1.1 kB
package.json 2.3 kB
packages/browser/CHANGELOG.md 296 B
packages/browser/index.ts 4.7 kB
packages/browser/openChrome.applescript 2.5 kB
packages/browser/package.json 969 B
packages/browser/tsconfig.json 159 B
packages/core/CHANGELOG.md 561 B
packages/core/package.json 784 B
packages/core/src/constants.ts 330 B
packages/core/src/helpers.ts 1.7 kB
packages/core/src/index.ts 60 B
packages/core/tsconfig.json 161 B
packages/es-modules/CHANGELOG.md 4.4 kB
packages/es-modules/index.ts 1.4 kB
packages/es-modules/package.json 915 B
packages/es-modules/README.md 1.3 kB
packages/es-modules/test/test.spec.ts 927 B
packages/es-modules/tsconfig.json 139 B
packages/imagemin/CHANGELOG.md 8.1 kB
packages/imagemin/package.json 1.2 kB
packages/imagemin/src/cli.ts 541 B
packages/imagemin/src/index.ts 1.1 kB
packages/imagemin/tsconfig.json 132 B
packages/rollup/CHANGELOG.md 20.3 kB
packages/rollup/package.json 1.5 kB
packages/rollup/shim.d.ts 647 B
packages/rollup/src/cli.ts 4.0 kB
packages/rollup/src/config.ts 11.6 kB
packages/rollup/tsconfig.json 131 B
packages/umd-globals/CHANGELOG.md 5.7 kB
packages/umd-globals/index.ts 1.8 kB
packages/umd-globals/package.json 819 B
packages/umd-globals/README.md 1.1 kB
packages/umd-globals/test/test.spec.ts 1.9 kB
packages/umd-globals/tsconfig.json 139 B
packages/utils/CHANGELOG.md 11.0 kB
packages/utils/package.json 884 B
packages/utils/src/constants.ts 486 B
packages/utils/src/helpers.ts 2.8 kB
packages/utils/src/index.ts 117 B
packages/utils/src/monorepo.ts 691 B
packages/utils/tsconfig.json 161 B
patches/cliui+8.0.1.patch 630 B
patches/string-length+4.0.2.patch 398 B
patches/string-width-cjs+4.2.3.patch 444 B
patches/wrap-ansi-cjs+7.0.0.patch 489 B
patches/yargs+17.7.2.patch 124.6 kB
README.md 4.1 kB
tsconfig.base.json 43 B
tsconfig.json 381 B

🤖 This report was automatically generated by pkg-size-action

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.

None yet

0 participants