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

feat: allow referencing properties of constructs #2909

Closed
wants to merge 48 commits into from
Closed

Commits on Jun 13, 2023

  1. feat: allow referencing properties of CDK constructs

    It is now possible to reference properties of Terraform CDK constructs from inflight context. For example:
    
    ```js
    bring "@cdktf/provider-aws" as aws;
    let b = new aws.s3Bucket.S3Bucket();
    
    inflight () => {
      log(b.arn);
    };
    ```
    
    In order to support this, we need the lifting and binding mechanism to have information about which properties are being accessed. To that end, I've extended this API to accept an additional `props` array with the names of properties being bound/lifted.
    
    I changed how `FieldReferenceVisitor` so that if it finds a property reference (e.g. `this.bucket.arn` or `bucket.arn`), it will treat `arn` as the `op`, and we merge this information with the list of captured variables/fields.
    
    Tweaked the `registerBind()` method to allow any `op` that matches a preflight property.
    
    * Fixed a bug in how we lift tokens. CDKTF produces a new token every time a tokenized property is retrieved (e.g. `bucket.arn`). And since we used this token string every time. Since we use the token ID to produce an environment variable, this created a situation where `lift()` and `bind()` had a different environment variable name.
    * Update the `Debug Wing Compiler` launch configuration to use the currently open file as the source for debugging.
    * Remove the `self_client_path` from the generated `_toInflightType()` methods and just embed the path directly into the inline code.
    eladb committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    cb31041 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    560a097 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2023

  1. initial capture testing!

    eladb committed Jun 18, 2023
    Configuration menu
    Copy the full SHA
    33703c7 View commit details
    Browse the repository at this point in the history
  2. chore: self mutation

    Signed-off-by: monada-bot[bot] <[email protected]>
    monadabot committed Jun 18, 2023
    Configuration menu
    Copy the full SHA
    80aa8bc View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. improvements

    eladb committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    2b57b16 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. Configuration menu
    Copy the full SHA
    e27e423 View commit details
    Browse the repository at this point in the history
  2. all capture tests pass

    eladb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    bb9f22c View commit details
    Browse the repository at this point in the history
  3. chore: self mutation

    Signed-off-by: monada-bot[bot] <[email protected]>
    monadabot committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    82ccf78 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. fix(docs): broken links (#2914)

    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    ekeren authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    7ffed08 View commit details
    Browse the repository at this point in the history
  2. feat(sdk): std.util.sleep() (#2906)

    ## Description
    
    Added `util.sleep(Duration)` inflight api
    
    ## Leftover
    #2907
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    ekeren authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    9e8c3fd View commit details
    Browse the repository at this point in the history
  3. fix(vscode): missing completions in lazy-loaded jsii namespaces (#2921)

    Due to the jsii type lazy loading, completions only show types that were used in the current file. We now eagerly load namespaces when referenced (even if incomplete).
    
    For example:
    
    ```
    bring "aws-cdk-lib" as awscdk;
    
    new awscdk.aws_lambda.
                        //^ completions will show here
    ```
    
    https://github.com/winglang/wing/assets/1237390/d6edeee2-8c64-428d-a2ef-0aa51b5e3b96
    
    ## Notes
      - I couldn't think of a reasonable way to test this, the lsp tests need a good jsii fixture system
      - refactored some code into a `reference_to_udt` and as part of it, allowed a udt to basically refer to a namespace
      - We also now also eagerly load jsii types that don't belong to a namespace, just to cover that base
    
    Fixes #2639
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [ ] Tests added (always)
      - See notes above 
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    bfd71a3 View commit details
    Browse the repository at this point in the history
  4. chore(compiler): add 🗺️ expression for debugging symbol environments (#…

    …2908)
    
    This PR introduces another debugging utility for our compiler. Given code like this:
    
    ```js
    bring cloud;
    
    class A {
      f: num;
      init(b: cloud.Bucket) {
        this.f = 5;
        🗺️;
    
        let n = b.node.id;
      }
    }
    
    new A(new cloud.Bucket());
    ```
    
    Compiling this will print to the terminal:
    
    ```
    [symbol environment at example.w:7:5]
    level 0: { __parent_this => A, b => Bucket, this => A }
    level 1: { A => A [type], assert => (condition: bool): void, cloud => cloud [namespace], log => (message: str): void, panic => (message: str): void, std => std [namespace], throw => (message: str): void }
    ```
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    Chriscbr authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    0337591 View commit details
    Browse the repository at this point in the history
  5. feat(sdk): util.wait (#2918)

    ## Description
    
    add `util.wait`
    
    ```ts
    test "returns false takes a minute" {
      if util.wait(inflight (): bool => { return false; }) {
         assert(false);
        } else {
        assert(JSHelper.getTime() - start > 60 * 1000);
      }
    }
    ```
    fixes #2621 
    
    
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    ekeren authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    bc58378 View commit details
    Browse the repository at this point in the history
  6. fix(docs): broken links (#2915)

    ## Checklist
    
    - [x] Title matches [Winglang's style
    guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end
    testing
    
    *By submitting this pull request, I confirm that my contribution is made
    under the terms of the [Monada Contribution
    License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    ekeren authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    b45ded7 View commit details
    Browse the repository at this point in the history
  7. chore(docs): remove duplicate Wing SDK spec (#2926)

    There were two copies of the Wing SDK spec, so I removed the duplicate.
    
    I also cleaned up some internal naming in the SDK to consolidate some of the code around the API name change from `addConsumer` to `setConsumer`. (This is sort of a breaking change, but in practice I doubt anyone's using the interface name directly).
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    Chriscbr authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    b8113dc View commit details
    Browse the repository at this point in the history
  8. fix(docs): util module docs missing in API reference (#2932)

    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    Chriscbr authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c4f6d44 View commit details
    Browse the repository at this point in the history
  9. feat(docs): equality semantics (#2923)

    Initial spec for v0 of equality in the Wing language. Many of the relationships described already hold, though some of them are not implemented yet. All feedback is welcome.
    
    [Rendered doc](https://github.com/winglang/wing/blob/rybickic/equality-spec/docs/03-language-guide/14-equality.md)
    
    Closes #2756 
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    Chriscbr authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    841cb63 View commit details
    Browse the repository at this point in the history
  10. chore: run unit tests in parallel with build/e2e and fix e2e sharding (

    …#2944)
    
    Time Save: ~17 minutes
    Time Save (pr/e2e-full): ~30 minutes
    
    This is a low-effort change, but saves us quite a bit of time.
    This adds quite a bit of duplication due to the fact that testing in a new job effectively requires us to redo a lot of work, but at the cost of wasted workflow time we gain overall speed. This could be possible to avoid by saving the entire build steps as an asset, but that would be multiple GBs of data so I'm not sure it's worth it. 
    It would also be solved by fully figuring out Nx caching, but tbh I think that'll be a nightmare.
    
    Additionally, it turns out that the test sharding for e2e tests weren't working. So we were just running all tests twice 😭 . Fixing that shaved another ~7 minutes from non-full e2e load.
    
    Misc Change: Decided also to remove the auto-approve workflow, since we're not using it and it adds a useless "skipped" status to all PRs.
    
    Closes #2820
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    a7a7124 View commit details
    Browse the repository at this point in the history
  11. chore: wingsdk requires build before test (#2945)

    `post-compile` requires `compile` to run, so we might as well run the whole build step.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c6b9cc0 View commit details
    Browse the repository at this point in the history
  12. fix: esbuild-wasm is slow via child_process (#2950)

    We were running esbuild through a spawned node process, which is very slow. See evanw/esbuild#2927 for why this was needed. In that thread, it was mentioned that some changes to esbuild avoided the issue. 
    
    ### Change
    
    Added a patch with the previously mentioned workaround to "fix" this (with a small additional change to handle the newly piped stderr). This greatly improves bundling time (saves several hundred ms per inflight).
    
    As far as I can tell, there are no bad side effects for this change (leaks, etc.)
    
    ### Root Cause (?)
    
    After doing research on this, I still haven't quite figured out the real issue. esbuild-wasm creates both a worker thread and a subprocess that stays alive "forever". The thread and subprocess are `.unref()`ed, which means that node will not wait for them to finish before the parent process ends. The child process has a handle on stderr, so it seems like when the parent process finishes at a bad time then something in that fd gets messed up. This change removes that handle, which I suppose is good enough?
    
    ### Misc
    
    - Started running into an issue that looked like vitest wasn't properly mocking an azure dep in the SDK tests. Not sure why it suddenly started happening. Updating vitest fixed it.
    - Updated esbuild-wasm to latest. This wasn't necessary for the fix to work, I just figured it made sense to do.
    - I accidentally ran `npm audit fix` and decided that instead of undoing it I would just keep it in, so this PR also updates aws-sdk packages.
    
    ### Upstreaming this change
    
    I don't understand esbuild's architecture to know if this change is best for everyone, so maybe we hang on to this for a while before thinking about offering it as a PR upstream. Not sure though, I'd be fine with also doing it right away to see what the author says.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    10a517f View commit details
    Browse the repository at this point in the history
  13. chore(build): run Node v20 in CI tests (#2947)

    Updating our tests to run on Node 20 instead of Node 19 since Node 19 is past its end-of-life date (https://endoflife.date/nodejs).
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    Chriscbr authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    7df3600 View commit details
    Browse the repository at this point in the history
  14. fix(sdk): MutJson methods .set(), .setAt() accept any, not `M…

    …utJson` (#2901)
    
    Changed `MutJson` methods `.set()`, `.setAt()` to accept `MutJson`  and not
    Fixes issue #2767  
    
    ## Checklist
    
    - [ ] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [ ] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    revitalbarletz authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    cc8937b View commit details
    Browse the repository at this point in the history
  15. fix(sdk): std.utils.sleep() test (#2951)

    verify that sleep work without guarantee precision
    
    *By submitting this pull request, I confirm that my contribution is made
    under the terms of the [Monada Contribution
    License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    ainvoner authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    f9680db View commit details
    Browse the repository at this point in the history
  16. fix(vscode): resource keyword is obsolete (#2966)

    ## Checklist
    
    - [ ] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [ ] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    skorfmann authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    06d23c6 View commit details
    Browse the repository at this point in the history
  17. feat(compiler): add milliseconds, days, months and years to duration (#…

    …2870)
    
    Adding support to days, months and years to Duration
    
    | syntax | description | in seconds |
    |-|-|-|
    | 1ms | 1 millisecond | 1/1000 |
    | 1s | 1 second | 1 |
    | 1m | 1 minute | 60 |
    | 1h | 1 hour | 60 * 60 |
    | 1d | 1 day | 60 * 60 * 24 |
    | 1mo | 1 month | (60 * 60 * 24 * 365) / 12 ➡️ (30.4166667 days) |
    | 1y | 1 year | 60 * 60 * 24 * 365 |
    
    Months and years are a bit complicated as their duration varies, so I am assuming that 1 month (30,4166667 days) is equal to 2,592,000 seconds and 1 year corresponds to 31,104,000 seconds.
    
    Closes #2243
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    marciocadev authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    22d6efd View commit details
    Browse the repository at this point in the history
  18. fix: duration requires std namespace (#2955)

    Access `duration` functions without prefixing with `std`
    
    Fixes #2935 
    
    ## Checklist
    
    - [X] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [X] Description explains motivation and solution
    - [X] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    eladcon authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    6236270 View commit details
    Browse the repository at this point in the history
  19. feat(docs): compiler targets core-concepts (#2942)

    Adding core concept entry for Wing compiler targets
    
    
    ## Checklist
    
    - [ ] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [ ] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    hasanaburayyan authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    75d12bc View commit details
    Browse the repository at this point in the history
  20. feat(vscode): docs in completions and signature help for constructors (

    …#2925)
    
    Fixes #2747
    
    https://github.com/winglang/wing/assets/1237390/253e892c-0680-4bba-ab7c-3a0b065ba686
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    0e13d9e View commit details
    Browse the repository at this point in the history
  21. chore(sdk): website sdk tests (#2784)

    * testing website's initiation, `addJson`, and `url`
    * add external `fetch` and `readFile` methods (js)
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    tsuf239 authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    a5f958a View commit details
    Browse the repository at this point in the history
  22. chore: copy semantic-release from console repo (#2977)

    I love https://github.com/winglang/console/tree/main/tools/conventional-release and it effectively has the same goal as the ad-hoc script in https://github.com/winglang/wing/blob/main/scripts/changelog.mjs. 
    To ease the movement of the console into the monorepo, I went ahead and moved that project into this repo. 
    Unfortunately, a lot of changes were needed due to repo differences so I ended up using more of the original script than I intended, but the end result is still easier to use than what I implemented previously.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [ ] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c3da93e View commit details
    Browse the repository at this point in the history
  23. chore: bump-pack does not set package version during release (#2992)

    refactored to make the logic simpler as well
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [ ] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    8a729dd View commit details
    Browse the repository at this point in the history
  24. chore: use PROJEN_BUMP_VERSION for versioning (#2993)

    Another followup to #2992
    
    Switched back to using PROJEN_BUMP_VERSION, which is what the original script used. The issue with the last change probably was that we were trying to regenerate the version/changelog and it was failing. Using the existing variable should work and it's faster anyways.
    
    Also explicitly added a little log, which shouldn't hurt.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    adb82e2 View commit details
    Browse the repository at this point in the history
  25. feat(sdk): bucket onEvent second argument and more (#2725)

    * Adding a second argument (event type) for bucket.onEvent, so now it's aligned to the spec (fixes #192, but not systemically)
    * Improving `bucket/events.w`  test
    * Adding an example for functions that return functions
    * Exposing a severe error in aws events- #2724
    
    This pull request adds and updates several examples and tests for Wing, especially related to bucket events and functions as values. It also modifies the `convertBetweenHandlers` function and the `BucketEventHandlerClient` class to support passing additional arguments to handler clients. It updates the snapshots to reflect the changes in the examples, tests, and compilation output.
    
    ___
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    tsuf239 authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    bb82986 View commit details
    Browse the repository at this point in the history
  26. feat(sdk): adding bucket event hooks to awscdk (#2309)

    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    marciocadev authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    409c08c View commit details
    Browse the repository at this point in the history
  27. chore: website sdk windows snapshot mismatch (#2994)

    Regression from #2784
    
    2 things:
    
    Raised the local node version for developing wing to the latest 18 (18.16.0) to make sure user versions support fetch
    On windows the path for the Website construct is a windows path, so any matching needs to account for that.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    dfd3510 View commit details
    Browse the repository at this point in the history
  28. fix: capture diagnostics missing from language server (#2996)

    Certain errors were not available in the lsp because we didn't run the jsify phase. This PR changes that and also avoids many panics.
    
    So far it seems the perf overhead of running jsify in the lsp is minimal. On my PC, it adds between 1ms and 8ms. This time scales with classes/inflight/externs.
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [ ] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    MarkMcCulloh authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    1563bdd View commit details
    Browse the repository at this point in the history
  29. chore(docs): update categories and title casing, fix broken links (#2995

    )
    
    ## Checklist
    
    - [ ] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [ ] Description explains motivation and solution
    - [ ] Tests added (always)
    - [ ] Docs updated (only required for features)
    - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    Chriscbr authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    51eb488 View commit details
    Browse the repository at this point in the history
  30. feat(compiler): add support for super constructor (#2905)

    Adds support for calling super()  constructor within derived class initializer.
    
    Closes: #1123
    
    - fixed latent bug where inflight client super constructor calls were not wrapping args as an object
    - some minor refactors and cleanups
    
    - [x] Title matches [Winglang's style guide](https://docs.winglang.io/contributors/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [x] Docs updated (only required for features)
    - [x] Added `pr/e2e-full` label if this feature requires end-to-end testing
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
    hasanaburayyan authored and eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    edcef1b View commit details
    Browse the repository at this point in the history
  31. fixes

    eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    d84fb3c View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    1a56a45 View commit details
    Browse the repository at this point in the history
  33. merge

    eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    8626093 View commit details
    Browse the repository at this point in the history
  34. chore: self mutation

    Signed-off-by: monada-bot[bot] <[email protected]>
    monadabot committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    953dc2f View commit details
    Browse the repository at this point in the history
  35. cleanup js

    eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    4718386 View commit details
    Browse the repository at this point in the history
  36. remove merge issue

    eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    b850ca6 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    7c84ace View commit details
    Browse the repository at this point in the history
  38. fix completion tests

    eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    b7ac06f View commit details
    Browse the repository at this point in the history
  39. add test

    eladb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    5c5f7a0 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    8c49595 View commit details
    Browse the repository at this point in the history