Repository: opossum-tool/OpossumUI
Pull request #2646 (2024-07-14 15:26:50)

chore(deps): update dependency prettier to ^3.3.3
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | [`^3.3.2` -> `^3.3.3`](https://renovatebot.com/diffs/npm/prettier/3.3.2/3.3.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prettier/3.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prettier/3.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prettier/3.3.2/3.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prettier/3.3.2/3.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>prettier/prettier (prettier)</summary>

### [`v3.3.3`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#333)

[Compare Source](https://togithub.com/prettier/prettier/compare/3.3.2...3.3.3)

[diff](https://togithub.com/prettier/prettier/compare/3.3.2...3.3.3)

##### Add parentheses for nullish coalescing in ternary ([#&#8203;16391](https://togithub.com/prettier/prettier/pull/16391) by [@&#8203;cdignam-segment](https://togithub.com/cdignam-segment))

This change adds clarity to operator precedence.

<!-- prettier-ignore -->

```js
// Input
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.2
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.3
foo ? (bar ?? foo) : baz;
(foo ?? bar) ? a : b;
a ? b : (foo ?? bar);
```

##### Add parentheses for decorator expressions ([#&#8203;16458](https://togithub.com/prettier/prettier/pull/16458) by [@&#8203;y-schneider](https://togithub.com/y-schneider))

Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.

<!-- prettier-ignore -->

```ts
// Input
@&#8203;(foo`tagged template`)
class X {}

// Prettier 3.3.2
@&#8203;foo`tagged template`
class X {}

// Prettier 3.3.3
@&#8203;(foo`tagged template`)
class X {}
```

##### Support `@let` declaration syntax ([#&#8203;16474](https://togithub.com/prettier/prettier/pull/16474) by [@&#8203;sosukesuzuki](https://togithub.com/sosukesuzuki))

Adds support for Angular v18 `@let` declaration syntax.

Please see the following code example. The `@let` declaration allows you to define local variables within the template:

<!-- prettier-ignore -->

```html
@&#8203;let name = 'Frodo';

<h1>Dashboard for {{name}}</h1>
Hello, {{name}}
```

For more details, please refer to the excellent blog post by the Angular Team: [Introducing @&#8203;let in Angular](https://blog.angular.dev/introducing-let-in-angular-686f9f383f0f).

We also appreciate the Angular Team for kindly answering our questions to implement this feature.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), 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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/opossum-tool/OpossumUI).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->


renovate[bot]: ### Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
___
 * Branch has one or more failed status checks

Patch:
diff --git a/package.json b/package.json
index 661a06ba..8a3b64f1 100644
--- a/package.json
+++ b/package.json
@@ -95,7 +95,7 @@
     "mkdirp": "^3.0.1",
     "mockdate": "^3.0.5",
     "nunjucks": "^3.2.4",
-    "prettier": "^3.3.2",
+    "prettier": "^3.3.3",
     "prettier-plugin-sh": "^0.14.0",
     "run-script-os": "^1.1.6",
     "start-server-and-test": "^2.0.4",
diff --git a/src/Frontend/Components/AttributionPanels/PackagesPanel/PackagesPanel.tsx b/src/Frontend/Components/AttributionPanels/PackagesPanel/PackagesPanel.tsx
index 0974b8d1..ef7f44ae 100644
--- a/src/Frontend/Components/AttributionPanels/PackagesPanel/PackagesPanel.tsx
+++ b/src/Frontend/Components/AttributionPanels/PackagesPanel/PackagesPanel.tsx
@@ -193,7 +193,9 @@ export const PackagesPanel = ({
   }, [selectedAttributionRelation]);
 
   const childrenProps: PackagesPanelChildrenProps = {
-    activeAttributionIds: groupedIds ? groupedIds[activeRelation] ?? [] : null,
+    activeAttributionIds: groupedIds
+      ? (groupedIds[activeRelation] ?? [])
+      : null,
     activeRelation,
     attributionIds,
     attributions,
diff --git a/yarn.lock b/yarn.lock
index ad9d2f5d..30c630b3 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9915,7 +9915,7 @@ __metadata:
     nunjucks: "npm:^3.2.4"
     object-hash: "npm:^3.0.0"
     packageurl-js: "npm:^1.2.1"
-    prettier: "npm:^3.3.2"
+    prettier: "npm:^3.3.3"
     prettier-plugin-sh: "npm:^0.14.0"
     proxy-memoize: "npm:^3.0.1"
     re-resizable: "npm:^6.9.17"
@@ -10292,12 +10292,12 @@ __metadata:
   languageName: node
   linkType: hard
 
-"prettier@npm:^3.3.2":
-  version: 3.3.2
-  resolution: "prettier@npm:3.3.2"
+"prettier@npm:^3.3.3":
+  version: 3.3.3
+  resolution: "prettier@npm:3.3.3"
   bin:
     prettier: bin/prettier.cjs
-  checksum: 10/83214e154afa5aa9b664c2506640212323eb1376b13379b2413dc351b7de0687629dca3f00ff2ec895ebd7e3a2adb7d7e231b6c77606e2358137f2150807405b
+  checksum: 10/5beac1f30b5b40162532b8e2f7c3a4eb650910a2695e9c8512a62ffdc09dae93190c29db9107fa7f26d1b6c71aad3628ecb9b5de1ecb0911191099be109434d7
   languageName: node
   linkType: hard
 


Test patch:
diff --git a/src/e2e-tests/playwright.config.ts b/src/e2e-tests/playwright.config.ts
index b628d424..0ecc30dc 100644
--- a/src/e2e-tests/playwright.config.ts
+++ b/src/e2e-tests/playwright.config.ts
@@ -19,7 +19,7 @@ const config: PlaywrightTestConfig = {
   retries: process.env.CI ? 2 : 0,
   reporter: process.env.CI ? 'github' : 'list',
   timeout: process.env.CI ? CI_SINGLE_TEST_TIMEOUT : undefined,
-  workers: process.env.CI ? 1 : process.env.WORKERS ?? 1,
+  workers: process.env.CI ? 1 : (process.env.WORKERS ?? 1),
   globalTimeout: process.env.CI ? GLOBAL_TIMEOUT : undefined,
 };