Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 5, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@swc/core (source) 1.3.107 -> 1.4.0 age adoption passing confidence
@swc/jest (source) 0.2.34 -> 0.2.36 age adoption passing confidence
@testing-library/jest-dom 6.4.1 -> 6.4.2 age adoption passing confidence
@types/react (source) 18.2.51 -> 18.2.53 age adoption passing confidence
inquirer (source) 9.2.13 -> 9.2.14 age adoption passing confidence
lint-staged 15.2.1 -> 15.2.2 age adoption passing confidence
prettier (source) 3.2.4 -> 3.2.5 age adoption passing confidence

Release Notes

swc-project/swc (@​swc/core)

v1.4.0

Compare Source

Bug Fixes
Features
Refactor
Testing
  • (es/minifer) Update the passing terser test list (#​8573) (8b86638)

  • (es/testing) Ensure that test_inline! is working properly (#​8590) (872a47b)

testing-library/jest-dom (@​testing-library/jest-dom)

v6.4.2

Compare Source

Bug Fixes
  • Remove errant export of GetByRoleMatcher, fixing type checking in some TS configurations (#​575) (a93c0c4)
SBoudrias/Inquirer.js (inquirer)

v9.2.14

Compare Source

okonet/lint-staged (lint-staged)

v15.2.2

Compare Source

Patch Changes
  • #​1391 fdcdad4 Thanks @​iiroj! - Lint-staged no longer tries to load configuration from files that are not checked out. This might happen when using sparse-checkout.
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 - "on Monday every 9 weeks of the year starting on the 5th week" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner February 5, 2024 14:21
@coveralls
Copy link

coveralls commented Feb 5, 2024

Coverage Status

coverage: 96.235%. remained the same
when pulling 6f10fa1 on renovate/shared-minor-patch
into 1b6617d on main.

@renovate renovate bot force-pushed the renovate/shared-minor-patch branch from be5244f to 37be41d Compare February 5, 2024 16:46
@renovate renovate bot force-pushed the renovate/shared-minor-patch branch from 37be41d to 6f10fa1 Compare February 5, 2024 16:50
@jzempel jzempel merged commit fb966b1 into main Feb 5, 2024
@jzempel jzempel deleted the renovate/shared-minor-patch branch February 5, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants