Skip to content

Commit 161a459

Browse files
authoredJul 8, 2019
feat: use classes for structs in Python (#3232)
Update jsii to 0.14.0 to achieve the following: - Structs are now modeled as regular classes instead of TypedDicts, making their use more straightforward and snake_casing the attribute names. - Fix an issue where passing a variadic function taking structs would ignore its variadicness. - Generate ReST-style docstrings instead of Google-style docstrings for maximum IDE compatibility - Rectify the casing of the "MiB" suffix at the end of ECS constructs (used to be converted to `_mi_b`, now converted to `_mib`). camelCased dicts can still be passed, but instantiating classes with snake_cased constructor arguments is preferred. BREAKING CHANGES: * **Python**: `memory_limit_mi_b` and others are now named `memory_limit_mib`.
1 parent d61bd2c commit 161a459

File tree

8 files changed

+86
-68
lines changed

8 files changed

+86
-68
lines changed
 

‎package-lock.json

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@types/nodeunit": "^0.0.30",
1414
"conventional-changelog-cli": "^2.0.21",
1515
"jest": "^24.8.0",
16-
"jsii-diff": "0.13.3",
16+
"jsii-diff": "^0.14.0",
1717
"lerna": "^3.15.0",
1818
"nodeunit": "^0.11.3",
1919
"nyc": "^14.1.1",

‎packages/decdk/package-lock.json

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/decdk/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"@aws-cdk/cx-api": "^0.37.0",
142142
"@aws-cdk/region-info": "^0.37.0",
143143
"fs-extra": "^8.0.1",
144-
"jsii-reflect": "^0.13.3",
144+
"jsii-reflect": "^0.14.0",
145145
"jsonschema": "^1.2.4",
146146
"yaml": "1.6.0",
147147
"yargs": "^13.2.4"
@@ -152,7 +152,7 @@
152152
"@types/yaml": "1.0.2",
153153
"@types/yargs": "^13.0.0",
154154
"jest": "^24.8.0",
155-
"jsii": "^0.13.3"
155+
"jsii": "^0.14.0"
156156
},
157157
"keywords": [
158158
"aws",
@@ -162,4 +162,4 @@
162162
"engines": {
163163
"node": ">= 8.10.0"
164164
}
165-
}
165+
}

‎tools/awslint/package-lock.json

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tools/awslint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"camelcase": "^5.3.1",
2020
"colors": "^1.3.3",
2121
"fs-extra": "^8.0.1",
22-
"jsii-reflect": "^0.13.3",
23-
"jsii-spec": "^0.13.3",
22+
"jsii-reflect": "^0.14.0",
23+
"jsii-spec": "^0.14.0",
2424
"yargs": "^13.2.4"
2525
},
2626
"devDependencies": {

‎tools/cdk-build-tools/package-lock.json

+34-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tools/cdk-build-tools/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"colors": "^1.3.3",
4141
"fs-extra": "^8.0.1",
4242
"jest": "^24.8.0",
43-
"jsii": "^0.13.3",
44-
"jsii-pacmak": "^0.13.3",
43+
"jsii": "^0.14.0",
44+
"jsii-pacmak": "^0.14.0",
4545
"nodeunit": "^0.11.3",
4646
"nyc": "^14.1.1",
4747
"ts-jest": "^24.0.2",

0 commit comments

Comments
 (0)