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

refactor(core): improvements to Construct API #2767

Merged
merged 26 commits into from
Jun 6, 2019
Merged

Commits on Jun 3, 2019

  1. refactor(core): Misc cleanups to App-related APIs

    Ensure documentation coverage and clean up of the various APIs.
    
    Fixes #1891
    
    
    BREAKING CHANGE:
    * **core:** `StackProps.autoDeploy` has been removed and replaced by `StackProps.hide` (with negated logic).
    * **core:** `ISynthesizable.synthesize` now accepts an `ISynthesisSession` which contains the `CloudAssemblyBuilder` object.
    * **cx-api:** Multiple changes to the cloud assembly APIs to reduce surface area and clean up.
    Elad Ben-Israel committed Jun 3, 2019
    Configuration menu
    Copy the full SHA
    b81502e View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2019

  1. Additional changes

    BREAKING CHANGE:
    - `StackProps.autoDeploy` renamed to `entrypoint` (still true by default).
    - CLI must be upgraded to 0.34.0 (cx protocol changes)
    Elad Ben-Israel committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    7ab5fcb View commit details
    Browse the repository at this point in the history
  2. CR fixes

    Elad Ben-Israel committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    7565b7e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ec73ab View commit details
    Browse the repository at this point in the history
  4. additional fixes

    Elad Ben-Israel committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    d9cb6f3 View commit details
    Browse the repository at this point in the history
  5. more fixes

    Elad Ben-Israel committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    96be493 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2019

  1. Configuration menu
    Copy the full SHA
    76af774 View commit details
    Browse the repository at this point in the history
  2. remove "entrypoints" (autoDeploy)

    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    27959e6 View commit details
    Browse the repository at this point in the history
  3. fix tests

    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    7ae9720 View commit details
    Browse the repository at this point in the history
  4. fix integ test

    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    731cf64 View commit details
    Browse the repository at this point in the history
  5. allow integ tests to specify which stack to deploy

    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    c2cdd30 View commit details
    Browse the repository at this point in the history
  6. fix kms test and be less opinionated

    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    0dc7bef View commit details
    Browse the repository at this point in the history
  7. fix another multi-stack test

    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    b758f23 View commit details
    Browse the repository at this point in the history
  8. add a @deprecated "app.run()"

    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    530fc3d View commit details
    Browse the repository at this point in the history
  9. Merge remote-tracking branch 'origin/master' into benisrae/revisit-co…

    …nstruct
    Elad Ben-Israel committed Jun 5, 2019
    Configuration menu
    Copy the full SHA
    ebe1b11 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2019

  1. refactor(core): revisit Construct API

    BREAKING CHANGE:
    * **core:** `node.validateTree` is now `ConstructNode.validate(node)`
    * **core:** `node.prepareTree` is now `ConstructNode.prepare(node)`
    * **core:** `node.getContext` is now `node.tryGetContext`
    * **core:** `node.recordReference` is now `node.addReference`
    * **core:** `node.apply` is now `node.applyAspect`
    * **core:** `node.ancestors()` is now `node.scopes`
    * **core:** `node.required` has been removed.
    * **core:** `node.typename` has been removed.
    * **core:** `node.addChild` is now private
    * **core:** `node.findReferences()` is now `node.references`
    * **core:** `node.findDependencieS()` is now `node.dependencies`
    * **core:** `stack.dependencies()` is now `stack.dependencies`
    * **core:** `construct.node.stack` is now `Stack.of(construct)`
    * **core:** `CfnElement.stackPath` has been removed.
    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    471f132 View commit details
    Browse the repository at this point in the history
  2. fix cfn2ts

    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    57baa9f View commit details
    Browse the repository at this point in the history
  3. fix all stack.node occurrences

    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    be6d475 View commit details
    Browse the repository at this point in the history
  4. fix compilation issue

    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    e4c0399 View commit details
    Browse the repository at this point in the history
  5. move "resolve" and "stringifyJson" to Stack

    BREAKING CHANGE:
    * **core:** `node.resolve` has been moved to `stack.resolve`.
    * **core:** `node.stringifyJson` has been moved to `stack.stringifyJson`.
    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    d282577 View commit details
    Browse the repository at this point in the history
  6. Misc

    * stringifyJson => toJsonString
    * node.resolve => stack.resolve
    * CloudFormationLang is now toJsonString
    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    d8e0098 View commit details
    Browse the repository at this point in the history
  7. Merge remote-tracking branch 'origin/master' into benisrae/revisit-co…

    …nstruct
    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    e373842 View commit details
    Browse the repository at this point in the history
  8. fix input

    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    0788a01 View commit details
    Browse the repository at this point in the history
  9. some more compilation fixes

    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    e2cbeab View commit details
    Browse the repository at this point in the history
  10. and another one

    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    a54f0b8 View commit details
    Browse the repository at this point in the history
  11. fix alb test

    Elad Ben-Israel committed Jun 6, 2019
    Configuration menu
    Copy the full SHA
    1a7c85c View commit details
    Browse the repository at this point in the history