Skip to content

Commit 99f5d0b

Browse files
dependabot[bot]github-actions[bot]rtpascual
authored
Bump prettier and @types/prettier (#2387)
* Bump prettier and @types/prettier Bumps [prettier](https://github.com/prettier/prettier) and [@types/prettier](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prettier). These dependencies needed to be updated together. Updates `prettier` from 2.8.8 to 3.4.2 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.8.8...3.4.2) Updates `@types/prettier` from 2.7.3 to 3.0.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prettier) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:production update-type: version-update:semver-major - dependency-name: "@types/prettier" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * add changeset * fix * fix lint --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Roshane Pascual <[email protected]>
1 parent f1042b2 commit 99f5d0b

File tree

513 files changed

+4343
-4274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

513 files changed

+4343
-4274
lines changed

.changeset/cuddly-camels-enjoy.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
'@aws-amplify/backend-platform-test-stubs': patch
3+
'@aws-amplify/deployed-backend-client': patch
4+
'@aws-amplify/backend-output-schemas': patch
5+
'@aws-amplify/backend-output-storage': patch
6+
'@aws-amplify/integration-tests': patch
7+
'@aws-amplify/backend-deployer': patch
8+
'@aws-amplify/backend-function': patch
9+
'@aws-amplify/schema-generator': patch
10+
'@aws-amplify/backend-storage': patch
11+
'@aws-amplify/model-generator': patch
12+
'@aws-amplify/auth-construct': patch
13+
'@aws-amplify/backend-secret': patch
14+
'create-amplify': patch
15+
'@aws-amplify/form-generator': patch
16+
'@aws-amplify/ai-constructs': patch
17+
'@aws-amplify/client-config': patch
18+
'@aws-amplify/platform-core': patch
19+
'@aws-amplify/backend-auth': patch
20+
'@aws-amplify/backend-data': patch
21+
'eslint-plugin-amplify-backend-rules': patch
22+
'@aws-amplify/plugin-types': patch
23+
'@aws-amplify/backend-ai': patch
24+
'@aws-amplify/cli-core': patch
25+
'@aws-amplify/backend': patch
26+
'@aws-amplify/sandbox': patch
27+
'@aws-amplify/backend-cli': patch
28+
---
29+
30+
lint and format with new version of prettier
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@aws-amplify/form-generator': patch
3+
---
4+
5+
Updates `prettier` from 2.8.8 to 3.4.2
6+
Updates `@types/prettier` from 2.7.3 to 3.0.0

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@shopify/eslint-plugin": "^43.0.0",
7474
"@types/fs-extra": "^11.0.1",
7575
"@types/node": "^18.15.11",
76-
"@types/prettier": "^2.7.3",
76+
"@types/prettier": "^3.0.0",
7777
"@typescript-eslint/eslint-plugin": "^8.23.0",
7878
"@typescript-eslint/parser": "^8.23.0",
7979
"c8": "^7.13.0",
@@ -93,7 +93,7 @@
9393
"glob": "^10.1.0",
9494
"husky": "^8.0.3",
9595
"lint-staged": "^15.2.10",
96-
"prettier": "^2.8.7",
96+
"prettier": "^3.5.3",
9797
"rimraf": "^5.0.0",
9898
"semver": "^7.5.4",
9999
"tsx": "^4.6.1",

packages/ai-constructs/src/conversation/conversation_handler_construct.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void describe('Conversation Handler Function construct', () => {
6464
(
6565
result: { [x: string | number]: unknown },
6666
val: unknown,
67-
key: string | number
67+
key: string | number,
6868
) => {
6969
if (typeof val === 'object') {
7070
val = keysToCamelCase(val as Record<string, unknown>);
@@ -73,15 +73,15 @@ void describe('Conversation Handler Function construct', () => {
7373
key = `${key.slice(0, 1).toLowerCase()}${key.slice(1)}`;
7474
}
7575
result[key] = val;
76-
}
76+
},
7777
);
7878
expectedDataProtectionPolicy = keysToCamelCase(
79-
expectedDataProtectionPolicy
79+
expectedDataProtectionPolicy,
8080
);
8181
}
8282
assert.deepStrictEqual(
8383
logGroup.Properties.DataProtectionPolicy,
84-
expectedDataProtectionPolicy
84+
expectedDataProtectionPolicy,
8585
);
8686
template.hasResourceProperties('AWS::Lambda::Function', {
8787
Handler: 'index.handler',
@@ -191,7 +191,7 @@ void describe('Conversation Handler Function construct', () => {
191191
});
192192
const template = Template.fromStack(stack);
193193
const output = template.findOutputs(
194-
'definedConversationHandlers'
194+
'definedConversationHandlers',
195195
).definedConversationHandlers;
196196
assert.ok(!output);
197197
});
@@ -206,7 +206,7 @@ void describe('Conversation Handler Function construct', () => {
206206
},
207207
],
208208
outputStorageStrategy: new StackMetadataBackendOutputStorageStrategy(
209-
stack
209+
stack,
210210
),
211211
});
212212
const template = Template.fromStack(stack);

packages/ai-constructs/src/conversation/conversation_handler_construct.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class ConversationHandlerFunction
8888
constructor(
8989
scope: Construct,
9090
id: string,
91-
private readonly props: ConversationHandlerFunctionProps
91+
private readonly props: ConversationHandlerFunctionProps,
9292
) {
9393
super(scope, id);
9494

@@ -121,20 +121,20 @@ export class ConversationHandlerFunction
121121
identifiers: [
122122
new CustomDataIdentifier(
123123
'JWTToken',
124-
'ey[A-Za-z0-9-_=]+\\.[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*'
124+
'ey[A-Za-z0-9-_=]+\\.[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*',
125125
),
126126
],
127127
}),
128128
}),
129-
}
129+
},
130130
);
131131

132132
if (this.props.models && this.props.models.length > 0) {
133133
const resources = this.props.models.map(
134134
(model) =>
135135
`arn:aws:bedrock:${
136136
model.region ?? Stack.of(this).region
137-
}::foundation-model/${model.modelId}`
137+
}::foundation-model/${model.modelId}`,
138138
);
139139
conversationHandler.addToRolePolicy(
140140
new PolicyStatement({
@@ -144,15 +144,15 @@ export class ConversationHandlerFunction
144144
'bedrock:InvokeModelWithResponseStream',
145145
],
146146
resources,
147-
})
147+
}),
148148
);
149149
}
150150

151151
this.resources = {
152152
lambda: conversationHandler,
153153
cfnResources: {
154154
cfnFunction: conversationHandler.node.findChild(
155-
'Resource'
155+
'Resource',
156156
) as CfnFunction,
157157
},
158158
};
@@ -166,7 +166,7 @@ export class ConversationHandlerFunction
166166
private storeOutput = (
167167
outputStorageStrategy:
168168
| BackendOutputStorageStrategy<AIConversationOutput>
169-
| undefined
169+
| undefined,
170170
): void => {
171171
outputStorageStrategy?.appendToBackendOutputList(aiConversationOutputKey, {
172172
version: '1',
@@ -187,7 +187,7 @@ export class ConversationHandlerFunction
187187
!isWholeNumberBetweenInclusive(this.props.memoryMB, memoryMin, memoryMax)
188188
) {
189189
throw new Error(
190-
`memoryMB must be a whole number between ${memoryMin} and ${memoryMax} inclusive`
190+
`memoryMB must be a whole number between ${memoryMin} and ${memoryMax} inclusive`,
191191
);
192192
}
193193
return this.props.memoryMB;
@@ -205,11 +205,11 @@ export class ConversationHandlerFunction
205205
!isWholeNumberBetweenInclusive(
206206
this.props.timeoutSeconds,
207207
timeoutMin,
208-
timeoutMax
208+
timeoutMax,
209209
)
210210
) {
211211
throw new Error(
212-
`timeoutSeconds must be a whole number between ${timeoutMin} and ${timeoutMax} inclusive`
212+
`timeoutSeconds must be a whole number between ${timeoutMin} and ${timeoutMax} inclusive`,
213213
);
214214
}
215215
return this.props.timeoutSeconds;
@@ -219,5 +219,5 @@ export class ConversationHandlerFunction
219219
const isWholeNumberBetweenInclusive = (
220220
test: number,
221221
min: number,
222-
max: number
222+
max: number,
223223
) => min <= test && test <= max && test % 1 === 0;

0 commit comments

Comments
 (0)