Tags: aws/constructs
Tags
fix: Python constructs do not implement a compatible interface (#2495) Reverting to and pinning an older version of jsii-pacmak that will generate python bindings with correct dependency constraints for typeguard. Needs to be reverted once aws/jsii#4658 is resolved.
feat: add a mechanism to retrieve all context (with defaults) (#1751) Previously, all users of constructs would have to know beforehand the keys in the context to expect, and use either `tryGetContext` or `getContext` to retrieve a specific key from context. This provides a mechanism to get the full context of a node in the construct tree, with overridable defaults. The `getAllContext` method allows users to retrieve all context. The interface for `getContext` and `tryGetContext` remains unchanged. I have also fixed a small typo in the library.
fix: improve addChild and path performance (#1891) Improve the performance of the `constructs` library by removing several branches in the library's hot paths and switching to some more performant operations. On my laptop, the benchmark I used (shared in a gist [here](https://gist.github.com/Chriscbr/fa69e5f7f35d5aa4dc312dd7025952b1)) takes about 5.0-5.3 seconds with the old version of constructs, and about 1.1-1.2 seconds with the new version of constructs. Misc: - Removed an unused file in the `test` folder. - Added some files to `npmignore` to reduce the package's npm footprint.
PreviousNext