Skip to content

Commit 36d415e

Browse files
authored
feat(all): validate attributes on incoming props with '| any' type (#1462)
* Initialize package.json for scripts * Generates validation.ts, uses it in an intial test situation * Adjust default version for scripts/package.json * Remove '| any' from BucketProps | any * Fully implemented with inherited properties and in bootstrap.sh * Point to dist/src and get CDK version back in sync * Implement feature flag to bypass validation * Add tests that confirm all Validate calls * Check tsc version * Display node version * add npm install to bootstrap.sh * Final update * Before adding test with mocked file operations * Review and mods to generate and tests * Update Validation checks to check error (TODO item 1) * Remove stray package-lock.json from root * TODEAU items 1, 2, 3, 4, 7, 8, 11, 13, 14, 15, 16 * reset versions numbers to 0.0.0 * Before removing StreamProps * Finish the TODEAU list
1 parent aaf9436 commit 36d415e

File tree

245 files changed

+31475
-492
lines changed

Some content is hidden

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

245 files changed

+31475
-492
lines changed

THIRD_PARTY_LICENSE.txt

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ License: Apache-2.0
2020
*******************
2121
Apache-2.0: @aws-cdk/asset-awscli-v1@2.2.263
2222
Apache-2.0: @aws-cdk/asset-node-proxy-agent-v6@2.1.0
23+
Apache-2.0: @aws-cdk/cloud-assembly-api@2.0.0
2324
Apache-2.0: @aws-cdk/cloud-assembly-schema@48.20.0
2425
Apache-2.0: @aws-cdk/integ-tests-alpha@2.163.1-alpha.0
25-
Apache-2.0: @aws-cdk/integ-tests-alpha@2.236.0-alpha.0
26+
Apache-2.0: @aws-cdk/integ-tests-alpha@2.238.0-alpha.0
2627
Apache-2.0: @aws-crypto/crc32@5.2.0
2728
Apache-2.0: @aws-crypto/crc32c@5.2.0
2829
Apache-2.0: @aws-crypto/sha1-browser@5.2.0
@@ -132,11 +133,13 @@ Apache-2.0: @smithy/util-uri-escape@4.1.0
132133
Apache-2.0: @smithy/util-utf8@2.3.0
133134
Apache-2.0: @smithy/util-utf8@4.1.0
134135
Apache-2.0: @smithy/util-waiter@4.1.1
135-
Apache-2.0: aws-cdk-lib@2.236.0
136+
Apache-2.0: aws-cdk-lib@2.238.0
136137
Apache-2.0: baseline-browser-mapping@2.8.6
138+
Apache-2.0: baseline-browser-mapping@2.9.19
137139
Apache-2.0: bser@2.1.1
138140
Apache-2.0: codemaker@1.119.0
139141
Apache-2.0: constructs@10.4.2
142+
Apache-2.0: constructs@10.5.0
140143
Apache-2.0: doctrine@2.1.0
141144
Apache-2.0: eslint-visitor-keys@3.4.3
142145
Apache-2.0: eslint-visitor-keys@4.2.1
@@ -158,24 +161,36 @@ Apache-2.0: xml-name-validator@3.0.0
158161
License: MIT
159162
*******************
160163
MIT: @babel/code-frame@7.27.1
164+
MIT: @babel/code-frame@7.29.0
161165
MIT: @babel/compat-data@7.28.4
166+
MIT: @babel/compat-data@7.29.0
162167
MIT: @babel/core@7.28.4
168+
MIT: @babel/core@7.29.0
163169
MIT: @babel/generator@7.28.3
170+
MIT: @babel/generator@7.29.1
164171
MIT: @babel/helper-compilation-targets@7.27.2
172+
MIT: @babel/helper-compilation-targets@7.28.6
165173
MIT: @babel/helper-globals@7.28.0
166174
MIT: @babel/helper-module-imports@7.27.1
175+
MIT: @babel/helper-module-imports@7.28.6
167176
MIT: @babel/helper-module-transforms@7.28.3
177+
MIT: @babel/helper-module-transforms@7.28.6
168178
MIT: @babel/helper-plugin-utils@7.27.1
179+
MIT: @babel/helper-plugin-utils@7.28.6
169180
MIT: @babel/helper-string-parser@7.27.1
170181
MIT: @babel/helper-validator-identifier@7.27.1
182+
MIT: @babel/helper-validator-identifier@7.28.5
171183
MIT: @babel/helper-validator-option@7.27.1
172184
MIT: @babel/helpers@7.28.4
185+
MIT: @babel/helpers@7.28.6
173186
MIT: @babel/parser@7.28.4
187+
MIT: @babel/parser@7.29.0
174188
MIT: @babel/plugin-syntax-async-generators@7.8.4
175189
MIT: @babel/plugin-syntax-bigint@7.8.3
176190
MIT: @babel/plugin-syntax-class-properties@7.12.13
177191
MIT: @babel/plugin-syntax-class-static-block@7.14.5
178192
MIT: @babel/plugin-syntax-import-attributes@7.27.1
193+
MIT: @babel/plugin-syntax-import-attributes@7.28.6
179194
MIT: @babel/plugin-syntax-import-meta@7.10.4
180195
MIT: @babel/plugin-syntax-json-strings@7.8.3
181196
MIT: @babel/plugin-syntax-logical-assignment-operators@7.10.4
@@ -187,9 +202,13 @@ MIT: @babel/plugin-syntax-optional-chaining@7.8.3
187202
MIT: @babel/plugin-syntax-private-property-in-object@7.14.5
188203
MIT: @babel/plugin-syntax-top-level-await@7.14.5
189204
MIT: @babel/plugin-syntax-typescript@7.27.1
205+
MIT: @babel/plugin-syntax-typescript@7.28.6
190206
MIT: @babel/template@7.27.2
207+
MIT: @babel/template@7.28.6
191208
MIT: @babel/traverse@7.28.4
209+
MIT: @babel/traverse@7.29.0
192210
MIT: @babel/types@7.28.4
211+
MIT: @babel/types@7.29.0
193212
MIT: @bcoe/v8-coverage@0.2.3
194213
MIT: @emnapi/core@1.5.0
195214
MIT: @emnapi/runtime@1.5.0
@@ -246,6 +265,7 @@ MIT: @types/jest@27.5.2
246265
MIT: @types/json-schema@7.0.15
247266
MIT: @types/json5@0.0.29
248267
MIT: @types/node@10.17.60
268+
MIT: @types/node@22.19.11
249269
MIT: @types/npmlog@7.0.0
250270
MIT: @types/prettier@2.6.0
251271
MIT: @types/prettier@2.7.3
@@ -254,6 +274,7 @@ MIT: @types/sinonjs__fake-timers@8.1.5
254274
MIT: @types/stack-utils@2.0.3
255275
MIT: @types/uuid@9.0.8
256276
MIT: @types/yargs-parser@21.0.3
277+
MIT: @types/yargs@16.0.11
257278
MIT: @types/yargs@16.0.9
258279
MIT: @typescript-eslint/eslint-plugin@8.44.1
259280
MIT: @typescript-eslint/parser@8.44.1
@@ -305,6 +326,8 @@ MIT: brace-expansion@1.1.12
305326
MIT: brace-expansion@2.0.2
306327
MIT: braces@3.0.3
307328
MIT: browserslist@4.26.2
329+
MIT: browserslist@4.28.1
330+
MIT: bs-logger@0.2.6
308331
MIT: buffer-from@1.1.2
309332
MIT: buffer@5.7.1
310333
MIT: call-bind-apply-helpers@1.0.2
@@ -323,6 +346,7 @@ MIT: clone@1.0.4
323346
MIT: clone@2.1.2
324347
MIT: co@4.6.0
325348
MIT: collect-v8-coverage@1.0.2
349+
MIT: collect-v8-coverage@1.0.3
326350
MIT: color-convert@2.0.1
327351
MIT: color-name@1.1.4
328352
MIT: combined-stream@1.0.8
@@ -501,6 +525,7 @@ MIT: jest-worker@27.5.1
501525
MIT: jest@27.5.1
502526
MIT: js-tokens@4.0.0
503527
MIT: js-yaml@3.14.1
528+
MIT: js-yaml@3.14.2
504529
MIT: js-yaml@4.1.0
505530
MIT: jsdom@16.7.0
506531
MIT: jsesc@3.1.0
@@ -525,9 +550,11 @@ MIT: lines-and-columns@1.2.4
525550
MIT: lines-and-columns@2.0.3
526551
MIT: locate-path@5.0.0
527552
MIT: locate-path@6.0.0
553+
MIT: lodash.memoize@4.1.2
528554
MIT: lodash.merge@4.6.2
529555
MIT: lodash.truncate@4.4.2
530556
MIT: lodash@4.17.21
557+
MIT: lodash@4.17.23
531558
MIT: log-symbols@4.1.0
532559
MIT: make-dir@4.0.0
533560
MIT: math-intrinsics@1.1.0
@@ -544,9 +571,11 @@ MIT: natural-compare@1.4.0
544571
MIT: node-int64@0.4.0
545572
MIT: node-machine-id@1.1.12
546573
MIT: node-releases@2.0.21
574+
MIT: node-releases@2.0.27
547575
MIT: normalize-path@3.0.0
548576
MIT: npm-run-path@4.0.1
549577
MIT: nwsapi@2.2.22
578+
MIT: nwsapi@2.2.23
550579
MIT: nx@22.2.0
551580
MIT: object-inspect@1.13.4
552581
MIT: object-keys@1.1.1
@@ -601,6 +630,7 @@ MIT: resolve-from@5.0.0
601630
MIT: resolve.exports@1.1.1
602631
MIT: resolve.exports@2.0.3
603632
MIT: resolve@1.22.10
633+
MIT: resolve@1.22.11
604634
MIT: restore-cursor@3.1.0
605635
MIT: reusify@1.1.0
606636
MIT: rfdc@1.4.1
@@ -653,6 +683,7 @@ MIT: to-regex-range@5.0.1
653683
MIT: tr46@2.1.0
654684
MIT: tree-kill@1.2.2
655685
MIT: ts-api-utils@2.1.0
686+
MIT: ts-jest@27.1.5
656687
MIT: tsconfig-paths@3.15.0
657688
MIT: tsconfig-paths@4.2.0
658689
MIT: type-check@0.4.0
@@ -665,10 +696,12 @@ MIT: typed-array-length@1.0.7
665696
MIT: typedarray-to-buffer@3.1.5
666697
MIT: typescript-eslint@8.44.1
667698
MIT: unbox-primitive@1.1.0
699+
MIT: undici-types@6.21.0
668700
MIT: universalify@0.1.2
669701
MIT: universalify@0.2.0
670702
MIT: universalify@2.0.1
671703
MIT: update-browserslist-db@1.1.3
704+
MIT: update-browserslist-db@1.2.3
672705
MIT: url-parse@1.5.10
673706
MIT: util-deprecate@1.0.2
674707
MIT: uuid@9.0.1
@@ -703,6 +736,7 @@ ISC: cliui@8.0.1
703736
ISC: color-support@1.1.3
704737
ISC: console-control-strings@1.1.0
705738
ISC: electron-to-chromium@1.5.222
739+
ISC: electron-to-chromium@1.5.286
706740
ISC: fastq@1.19.1
707741
ISC: flatted@3.3.3
708742
ISC: fs.realpath@1.0.0
@@ -717,6 +751,7 @@ ISC: inflight@1.0.6
717751
ISC: inherits@2.0.4
718752
ISC: isexe@2.0.0
719753
ISC: lru-cache@5.1.1
754+
ISC: make-error@1.3.6
720755
ISC: minimatch@3.1.2
721756
ISC: minimatch@9.0.3
722757
ISC: minimatch@9.0.5
@@ -728,6 +763,7 @@ ISC: saxes@5.0.1
728763
ISC: semver@6.3.1
729764
ISC: semver@7.7.2
730765
ISC: semver@7.7.3
766+
ISC: semver@7.7.4
731767
ISC: set-blocking@2.0.0
732768
ISC: signal-exit@3.0.7
733769
ISC: signal-exit@4.1.0
@@ -812,6 +848,7 @@ Python-2.0: argparse@2.0.1
812848
License: CC-BY-4.0
813849
*******************
814850
CC-BY-4.0: caniuse-lite@1.0.30001743
851+
CC-BY-4.0: caniuse-lite@1.0.30001770
815852

816853
*******************
817854
License: (MIT OR GPL-3.0-or-later)
@@ -833,5 +870,5 @@ License: (MIT OR CC0-1.0)
833870
*******************
834871
(MIT OR CC0-1.0): type-fest@0.21.3
835872

836-
Total libraries: 770
873+
Total libraries: 807
837874

deployment/v2/build-all.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ bail="--bail"
1212
runtarget="build+lint+test"
1313
cd $source_dir/
1414

15+
16+
echo "============================================================================================="
17+
echo "building validation.ts to ensure it is current"
18+
cd scripts
19+
npm install
20+
npm run generate:validation
21+
cd ..
22+
1523
export PATH=$source_dir/node_modules/.bin:$PATH
1624
export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}"
1725

0 commit comments

Comments
 (0)