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: merge main into release #3081

Merged
merged 19 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
f68f9c9
chore: update .jsii assembly
amplify-data-ci Nov 20, 2024
a0c4244
chore: update .jsii assembly
amplify-data-ci Nov 20, 2024
519ee9d
chore: bump cross-spawn version to 7.0.6 (#3033)
bobbyu99 Nov 20, 2024
805c7b4
bump cross-spawn version in scripts/yarn.lock to patched version (#3043)
bobbyu99 Nov 20, 2024
a6e994d
test: exclude unsupported ap-northeast-3 region for PredictionsTransf…
atierian Nov 20, 2024
32d3854
Enable logging on the L3 CDK construct (#2814)
bobbyu99 Nov 22, 2024
3c3becc
chore: remove redundant @aws-sdk/abort-controller and aws-sdk (#3051)
bobbyu99 Nov 26, 2024
48ccbf1
chore: extract log group naming logic (#3050)
bobbyu99 Nov 26, 2024
6ddfc9b
chore: nit fix getAppSyncLogGroupName doc (#3052)
bobbyu99 Nov 27, 2024
7466aaa
fix(conversation): handle enums in data tool selection sets (#3045)
atierian Dec 9, 2024
e3d5268
chore(deps): bump nanoid (#3061)
dependabot[bot] Dec 10, 2024
e4d1691
chore: dependabot alert fix #150 (#3064)
Siqi-Shan Dec 10, 2024
12dd23b
chore: set vs code format on save to true (#3068)
dpilch Dec 12, 2024
8fd2564
chore: remove third party licenses file (#3071)
dpilch Dec 13, 2024
eb86867
test: consolidate jest config (#3069)
dpilch Dec 13, 2024
e3f09d2
style: upgrade eslint-plugin-jsdoc to ^50.6.1 (#3072)
dpilch Dec 16, 2024
fb8cd0e
chore: construct dependencies fix (#3065)
Siqi-Shan Dec 16, 2024
812d59b
feat: deps tree search improv (#3078)
Siqi-Shan Dec 16, 2024
24c82cb
chore: add construct dependencies verification to pr workflow (#3066)
Siqi-Shan Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "never"
},
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"editor.rulers": [140],
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
Expand Down
6,551 changes: 0 additions & 6,551 deletions Third_Party_Licenses.txt

This file was deleted.

87 changes: 48 additions & 39 deletions codebuild_specs/e2e_workflow.yml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions codebuild_specs/pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ batch:
buildspec: codebuild_specs/verify_cdk_version.yml
depend-on:
- build_linux
- identifier: verify_construct_dependencies
buildspec: codebuild_specs/verify_construct_dependencies.yml
depend-on:
- build_linux
- identifier: verify_dependency_licenses_extract
buildspec: codebuild_specs/verify_dependency_licenses_extract.yml
env:
Expand Down
7 changes: 7 additions & 0 deletions codebuild_specs/verify_construct_dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 0.2
env:
shell: bash
phases:
build:
commands:
- source ./shared-scripts.sh && _verifyConstructDependencies
952 changes: 694 additions & 258 deletions dependency_licenses.txt

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions jest.config.base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
bail: false,
verbose: true,
testRunner: 'jest-circus/runner',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'core', 'node'],
collectCoverage: true,
coverageReporters: ['clover', 'text', 'html'],
coverageProvider: 'v8',
collectCoverageFrom: ['src/**/*.(ts|tsx|js|jsx)', '!src/**/*.test.(ts|tsx|js|jsx)', '!src/**/*.d.ts'],
coveragePathIgnorePatterns: ['/__tests__/', '/.*\\.template.js'],
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
},
},
coverageDirectory: 'coverage',
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
testEnvironmentOptions: {
url: 'http://localhost',
},
};
44 changes: 0 additions & 44 deletions jest.config.js

This file was deleted.

433 changes: 243 additions & 190 deletions package.json

Large diffs are not rendered by default.

78 changes: 71 additions & 7 deletions packages/amplify-data-construct/.jsii
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@aws-amplify/backend-output-schemas": "^1.0.0",
"@aws-amplify/backend-output-storage": "^1.0.0",
"@aws-amplify/graphql-auth-transformer": "4.1.7",
"@aws-amplify/graphql-conversation-transformer": "1.1.1",
"@aws-amplify/graphql-conversation-transformer": "1.1.2",
"@aws-amplify/graphql-default-value-transformer": "3.1.4",
"@aws-amplify/graphql-directives": "2.6.0",
"@aws-amplify/graphql-function-transformer": "3.1.6",
Expand All @@ -23,11 +23,14 @@
"@aws-amplify/graphql-relational-transformer": "3.1.1",
"@aws-amplify/graphql-searchable-transformer": "3.0.9",
"@aws-amplify/graphql-sql-transformer": "0.4.9",
"@aws-amplify/graphql-transformer": "2.2.1",
"@aws-amplify/graphql-transformer": "2.2.2",
"@aws-amplify/graphql-transformer-core": "3.3.1",
"@aws-amplify/graphql-transformer-interfaces": "4.2.0",
"@aws-amplify/platform-core": "^1.0.0",
"@aws-amplify/plugin-types": "^1.0.0",
"@aws-cdk/assert": "^2.68.0",
"@aws-cdk/cfnspec": "2.68.0",
"@aws-cdk/cloudformation-diff": "2.68.0",
"@aws-crypto/crc32": "5.2.0",
"@aws-crypto/sha256-browser": "5.2.0",
"@aws-crypto/sha256-js": "^5.2.0",
Expand Down Expand Up @@ -100,38 +103,60 @@
"@smithy/util-stream": "^3.1.3",
"@smithy/util-uri-escape": "^3.0.0",
"@smithy/util-utf8": "^3.0.0",
"ajv": "^8.0.1",
"ansi-regex": "^5.0.1",
"ansi-styles": "^4.1.0",
"astral-regex": "^2.0.0",
"at-least-node": "^1.0.0",
"bowser": "^2.11.0",
"chalk": "^4",
"charenc": "^0.0.2",
"ci-info": "^3.2.0",
"color-convert": "^2.0.1",
"color-name": "~1.1.4",
"crypt": "^0.0.2",
"diff": "^5.1.0",
"emoji-regex": "^8.0.0",
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
"fast-xml-parser": "4.4.1",
"fs-extra": "^8.1.0",
"graceful-fs": "^4.2.0",
"graphql": "^15.5.0",
"graphql-mapping-template": "5.0.1",
"graphql-transformer-common": "5.1.1",
"has-flag": "^4.0.0",
"hjson": "^3.2.2",
"immer": "^9.0.12",
"is-buffer": "~1.1.6",
"is-ci": "^3.0.1",
"is-fullwidth-code-point": "^3.0.0",
"json-schema-traverse": "^1.0.0",
"jsonfile": "^4.0.0",
"libphonenumber-js": "1.9.47",
"lodash": "^4.17.21",
"lodash.mergewith": "^4.6.2",
"lodash.truncate": "^4.4.2",
"md5": "^2.2.1",
"object-hash": "^3.0.0",
"pluralize": "8.0.0",
"require-from-string": "^2.0.2",
"semver": "^7.6.3",
"slice-ansi": "^4.0.0",
"string-width": "^4.2.3",
"strip-ansi": "^6.0.1",
"strnum": "^1.0.5",
"supports-color": "^7.1.0",
"table": "^6.8.1",
"ts-dedent": "^2.0.0",
"tslib": "^2.6.2",
"universalify": "^0.1.0",
"uuid": "^9.0.1",
"zod": "^3.22.2"
},
"dependencies": {
"@aws-amplify/graphql-api-construct": "1.18.1",
"aws-cdk-lib": "^2.158.0",
"@aws-amplify/graphql-api-construct": "1.18.2",
"aws-cdk-lib": "^2.168.0",
"constructs": "^10.3.0"
},
"dependencyClosure": {
Expand Down Expand Up @@ -1150,6 +1175,19 @@
}
}
},
"aws-cdk-lib.aws_connectcampaignsv2": {
"targets": {
"dotnet": {
"package": "Amazon.CDK.AWS.ConnectCampaignsV2"
},
"java": {
"package": "software.amazon.awscdk.services.connectcampaignsv2"
},
"python": {
"module": "aws_cdk.aws_connectcampaignsv2"
}
}
},
"aws-cdk-lib.aws_controltower": {
"targets": {
"dotnet": {
Expand Down Expand Up @@ -1969,6 +2007,19 @@
}
}
},
"aws-cdk-lib.aws_invoicing": {
"targets": {
"dotnet": {
"package": "Amazon.CDK.AWS.Invoicing"
},
"java": {
"package": "software.amazon.awscdk.services.invoicing"
},
"python": {
"module": "aws_cdk.aws_invoicing"
}
}
},
"aws-cdk-lib.aws_iot": {
"targets": {
"dotnet": {
Expand Down Expand Up @@ -2957,6 +3008,19 @@
}
}
},
"aws-cdk-lib.aws_rbin": {
"targets": {
"dotnet": {
"package": "Amazon.CDK.AWS.Rbin"
},
"java": {
"package": "software.amazon.awscdk.services.rbin"
},
"python": {
"module": "aws_cdk.aws_rbin"
}
}
},
"aws-cdk-lib.aws_rds": {
"targets": {
"dotnet": {
Expand Down Expand Up @@ -3991,7 +4055,7 @@
"stability": "stable"
},
"homepage": "https://github.com/aws-amplify/amplify-category-api.git",
"jsiiVersion": "5.5.4 (build 1378d94)",
"jsiiVersion": "5.6.0 (build 7be6ace)",
"keywords": [
"awscdk",
"aws-cdk",
Expand Down Expand Up @@ -4026,6 +4090,6 @@
}
},
"types": {},
"version": "1.14.1",
"fingerprint": "I12zGofQM0FdW94WEX4bLGaTKxWbJrmMWOOt600DuM0="
"version": "1.14.2",
"fingerprint": "APjytkZM54Hm1aMlPGMXzuoTZBDCo4V2Abg4rDYBE1A="
}
12 changes: 12 additions & 0 deletions packages/amplify-data-construct/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { CustomConflictResolutionStrategy } from '@aws-amplify/graphql-api-const
import { CustomSqlDataSourceStrategy } from '@aws-amplify/graphql-api-construct';
import { DataStoreConfiguration } from '@aws-amplify/graphql-api-construct';
import { DefaultDynamoDbModelDataSourceStrategy } from '@aws-amplify/graphql-api-construct';
import { FieldLogLevel } from '@aws-amplify/graphql-api-construct';
import { FunctionSlot } from '@aws-amplify/graphql-api-construct';
import { FunctionSlotBase } from '@aws-amplify/graphql-api-construct';
import { FunctionSlotOverride } from '@aws-amplify/graphql-api-construct';
Expand All @@ -33,6 +34,8 @@ import { IBackendOutputStorageStrategy } from '@aws-amplify/graphql-api-construc
import { IdentityPoolAuthorizationConfig } from '@aws-amplify/graphql-api-construct';
import { ImportedAmplifyDynamoDbModelDataSourceStrategy } from '@aws-amplify/graphql-api-construct';
import { LambdaAuthorizationConfig } from '@aws-amplify/graphql-api-construct';
import { LogConfig } from '@aws-amplify/graphql-api-construct';
import { Logging } from '@aws-amplify/graphql-api-construct';
import { ModelDataSourceStrategy } from '@aws-amplify/graphql-api-construct';
import { ModelDataSourceStrategyDbType } from '@aws-amplify/graphql-api-construct';
import { ModelDataSourceStrategySqlDbType } from '@aws-amplify/graphql-api-construct';
Expand All @@ -43,6 +46,7 @@ import { PartialTranslationBehavior } from '@aws-amplify/graphql-api-construct';
import { ProvisionedConcurrencyConfig } from '@aws-amplify/graphql-api-construct';
import { ProvisionedThroughput } from '@aws-amplify/graphql-api-construct';
import { QueryFunctionSlot } from '@aws-amplify/graphql-api-construct';
import { RetentionDays } from '@aws-amplify/graphql-api-construct';
import { SQLLambdaModelDataSourceStrategy } from '@aws-amplify/graphql-api-construct';
import { SQLLambdaModelDataSourceStrategyFactory } from '@aws-amplify/graphql-api-construct';
import { SqlModelDataSourceDbConnectionConfig } from '@aws-amplify/graphql-api-construct';
Expand Down Expand Up @@ -99,6 +103,8 @@ export { DataStoreConfiguration }

export { DefaultDynamoDbModelDataSourceStrategy }

export { FieldLogLevel }

export { FunctionSlot }

export { FunctionSlotBase }
Expand All @@ -119,6 +125,10 @@ export { ImportedAmplifyDynamoDbModelDataSourceStrategy }

export { LambdaAuthorizationConfig }

export { LogConfig }

export { Logging }

export { ModelDataSourceStrategy }

export { ModelDataSourceStrategyDbType }
Expand All @@ -139,6 +149,8 @@ export { ProvisionedThroughput }

export { QueryFunctionSlot }

export { RetentionDays }

export { SQLLambdaModelDataSourceStrategy }

export { SQLLambdaModelDataSourceStrategyFactory }
Expand Down
5 changes: 5 additions & 0 deletions packages/amplify-data-construct/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const baseConfig = require('../../jest.config.base.js'); // eslint-disable-line @typescript-eslint/no-var-requires

module.exports = {
...baseConfig,
};
Loading
Loading