Skip to content

Commit 3b6197b

Browse files
deps: bump prettier from 3.3.2 to 3.3.3 (#5781)
Bumps [prettier](https://github.com/prettier/prettier) from 3.3.2 to 3.3.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p> <blockquote> <h2>3.3.3</h2> <p>🔗 <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#333">Changelog</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p> <blockquote> <h1>3.3.3</h1> <p><a href="https://github.com/prettier/prettier/compare/3.3.2...3.3.3">diff</a></p> <h4>Add parentheses for nullish coalescing in ternary (<a href="https://redirect.github.com/prettier/prettier/pull/16391">#16391</a> by <a href="https://github.com/cdignam-segment"><code>@​cdignam-segment</code></a>)</h4> <p>This change adds clarity to operator precedence.</p> <!-- raw HTML omitted --> <pre lang="js"><code>// Input foo ? bar ?? foo : baz; foo ?? bar ? a : b; a ? b : foo ?? bar; <p>// Prettier 3.3.2<br /> foo ? bar ?? foo : baz;<br /> foo ?? bar ? a : b;<br /> a ? b : foo ?? bar;</p> <p>// Prettier 3.3.3<br /> foo ? (bar ?? foo) : baz;<br /> (foo ?? bar) ? a : b;<br /> a ? b : (foo ?? bar);<br /> </code></pre></p> <h4>Add parentheses for decorator expressions (<a href="https://redirect.github.com/prettier/prettier/pull/16458">#16458</a> by <a href="https://github.com/y-schneider"><code>@​y-schneider</code></a>)</h4> <p>Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.</p> <!-- raw HTML omitted --> <pre lang="ts"><code>// Input @(foo`tagged template`) class X {} <p>// Prettier 3.3.2<br /> <a href="https://github.com/foo"><code>@​foo</code></a><code>tagged template</code><br /> class X {}</p> <p>// Prettier 3.3.3<br /> @(foo<code>tagged template</code>)<br /> class X {}<br /> </code></pre></p> <h4>Support <code>@let</code> declaration syntax (<a href="https://redirect.github.com/prettier/prettier/pull/16474">#16474</a> by <a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</h4> <p>Adds support for Angular v18 <code>@let</code> declaration syntax.</p> <p>Please see the following code example. The <code>@let</code> declaration allows you to define local variables within the template:</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/prettier/prettier/commit/52829385bcc4d785e58ae2602c0b098a643523c9"><code>5282938</code></a> Release 3.3.3</li> <li><a href="https://github.com/prettier/prettier/commit/9102b73d8cd01795e7ba5af8a476d500c5dbcf2c"><code>9102b73</code></a> Add parentheses for decorator expressions (<a href="https://redirect.github.com/prettier/prettier/issues/16458">#16458</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/6bbd46194e4db25025afd6fe2f8506a8a2d1e47e"><code>6bbd461</code></a> chore(deps): update eslint related dependencies (<a href="https://redirect.github.com/prettier/prettier/issues/16478">#16478</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/04b560fc4386ee2ba1fc7c611c7a78655d6e60da"><code>04b560f</code></a> chore(deps): update dependency browserslist to v4.23.2 (<a href="https://redirect.github.com/prettier/prettier/issues/16475">#16475</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/614f070ac5f8d30628cc6cbbca1dda0e080e41d9"><code>614f070</code></a> chore(deps): update typescript-eslint to v8.0.0-alpha.41 (<a href="https://redirect.github.com/prettier/prettier/issues/16477">#16477</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/d59a15ded901c6dd66c07cf508e14646a6f12cd9"><code>d59a15d</code></a> chore(deps): update dependency npm-run-all2 to v6.2.2 (<a href="https://redirect.github.com/prettier/prettier/issues/16476">#16476</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/5ca2fc9be8369bf8c96899e2e5e8f3264086645a"><code>5ca2fc9</code></a> Support Angular <code>@let</code> declaration syntax (<a href="https://redirect.github.com/prettier/prettier/issues/16474">#16474</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/bfcfdccdf892141ce9cfbc179493557157c24e4c"><code>bfcfdcc</code></a> chore(deps): update babel to v7.24.8 (<a href="https://redirect.github.com/prettier/prettier/issues/16472">#16472</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/977c161924efa328660fe1802b604de2bc2527ea"><code>977c161</code></a> chore(deps): update dependency acorn to v8.12.1 (<a href="https://redirect.github.com/prettier/prettier/issues/16464">#16464</a>)</li> <li><a href="https://github.com/prettier/prettier/commit/550606edf9f3c2e2d2c75f37f627c42030de34a3"><code>550606e</code></a> chore(deps): update babel to v7.24.8 (<a href="https://redirect.github.com/prettier/prettier/issues/16470">#16470</a>)</li> <li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/3.3.2...3.3.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prettier&package-manager=npm_and_yarn&previous-version=3.3.2&new-version=3.3.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Maxim Hayes <[email protected]>
1 parent 58a2b18 commit 3b6197b

File tree

13 files changed

+21
-20
lines changed

13 files changed

+21
-20
lines changed

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"eslint-plugin-security-node": "^1.1.4",
5959
"eslint-plugin-unicorn": "^54.0.0",
6060
"husky": "^9.0.7",
61-
"prettier": "^3.3.2",
61+
"prettier": "^3.3.3",
6262
"prettier-plugin-sh": "^0.14.0",
6363
"pretty-quick": "^4.0.0",
6464
"ts-node": "^10.9.1",

packages/core/src/amazonqFeatureDev/session/sessionState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export function registerNewFiles(
7777
const folder =
7878
workspaceFolderPrefixes === undefined
7979
? workspaceFolders[0]
80-
: workspaceFolderPrefixes[prefix] ??
80+
: (workspaceFolderPrefixes[prefix] ??
8181
workspaceFolderPrefixes[
8282
Object.values(workspaceFolderPrefixes).find((val) => val.index === 0)?.name ?? ''
83-
]
83+
])
8484
if (folder === undefined) {
8585
telemetry.toolkit_trackScenario.emit({
8686
count: 1,

packages/core/src/auth/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function hasScopes(target: SsoConnection | SsoProfile | string[], scopes:
7373
* Not optimized, but the set of possible scopes is currently very small (< 8)
7474
*/
7575
export function hasExactScopes(target: SsoConnection | SsoProfile | string[], scopes: string[]): boolean {
76-
const targetScopes = Array.isArray(target) ? target : target.scopes ?? []
76+
const targetScopes = Array.isArray(target) ? target : (target.scopes ?? [])
7777
return scopes.length === targetScopes.length && scopes.every((s) => targetScopes.includes(s))
7878
}
7979

packages/core/src/awsService/iot/explorer/iotCertificateNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export abstract class IotCertificateNode extends AWSTreeNodeBase implements AWSR
5050
this.certificate.id,
5151
this.certificate.activeStatus,
5252
formatLocalized(this.certificate.creationDate),
53-
things?.length ?? 0 > 0 ? `\nAttached to: ${things!.join(', ')}` : ''
53+
(things?.length ?? 0 > 0) ? `\nAttached to: ${things!.join(', ')}` : ''
5454
)
5555
this.iconPath = getIcon('aws-iot-certificate')
5656
this.description = `\t[${this.certificate.activeStatus}]`

packages/core/src/awsService/iot/explorer/iotPolicyNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class IotPolicyNode extends AWSTreeNodeBase implements AWSResourceNode {
3939
'AWS.explorerNode.iot.policyToolTip',
4040
'{0}{1}',
4141
policy.name,
42-
certs?.length ?? 0 > 0 ? `\nAttached to: ${certs?.join(', ')}` : ''
42+
(certs?.length ?? 0 > 0) ? `\nAttached to: ${certs?.join(', ')}` : ''
4343
)
4444
this.iconPath = getIcon('aws-iot-policy')
4545
this.contextValue = 'awsIotPolicyNode.Certificates'

packages/core/src/codecatalyst/devEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class DevEnvActivityStarter {
9898
}
9999
// If user is not authenticated, assume 15 minutes.
100100
const inactivityTimeoutMin =
101-
devenvTimeoutMs > 0 ? devenvTimeoutMs / 60000 : thisDevenv?.summary.inactivityTimeoutMinutes ?? 15
101+
devenvTimeoutMs > 0 ? devenvTimeoutMs / 60000 : (thisDevenv?.summary.inactivityTimeoutMinutes ?? 15)
102102
if (!shouldSendActivity(inactivityTimeoutMin)) {
103103
getLogger().info(
104104
`codecatalyst: disabling DevEnvActivity heartbeat: configured to never timeout (inactivityTimeoutMinutes=${inactivityTimeoutMin})`

packages/core/src/codewhisperer/service/securityScanHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export async function uploadArtifactToS3(
310310
)
311311
const errorMessage = getTelemetryReasonDesc(error)?.includes(`"PUT" request failed with code "403"`)
312312
? `"PUT" request failed with code "403"`
313-
: getTelemetryReasonDesc(error) ?? 'Security scan failed.'
313+
: (getTelemetryReasonDesc(error) ?? 'Security scan failed.')
314314

315315
throw new UploadArtifactToS3Error(errorMessage)
316316
}

packages/core/src/lambda/models/samLambdaRuntime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export function createRuntimeQuickPick(params: {
258258
totalSteps?: number
259259
}): QuickPickPrompter<RuntimeAndPackage> {
260260
const zipRuntimes = params.runtimeFamily
261-
? getRuntimesForFamily(params.runtimeFamily) ?? samLambdaCreatableRuntimes()
261+
? (getRuntimesForFamily(params.runtimeFamily) ?? samLambdaCreatableRuntimes())
262262
: samLambdaCreatableRuntimes()
263263

264264
const zipRuntimeItems = zipRuntimes

packages/core/src/shared/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export function scrubNames(s: string, username?: string) {
454454
* @param err Error object, or message text
455455
*/
456456
export function getTelemetryReasonDesc(err: unknown | undefined): string | undefined {
457-
const m = typeof err === 'string' ? err : getErrorMsg(err as Error, true) ?? ''
457+
const m = typeof err === 'string' ? err : (getErrorMsg(err as Error, true) ?? '')
458458
const msg = scrubNames(m, _username)
459459

460460
// Truncate message as these strings can be very long.

0 commit comments

Comments
 (0)