Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: winglang/wing
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.85.28
Choose a base ref
...
head repository: winglang/wing
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 16 commits
  • 225 files changed
  • 8 contributors

Commits on Nov 1, 2024

  1. feat(sdk): add support for the forceDestroy property on the bucket (#…

    …7213)
    
    The forceDestroy property allows to delete a bucket that contains
    objects
    
    ## Checklist
    
    - [X] Title matches [Winglang's style
    guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution
    License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    
    ---------
    
    Signed-off-by: monada-bot[bot] <monabot@monada.co>
    Co-authored-by: monada-bot[bot] <monabot@monada.co>
    ShaiBer and monadabot authored Nov 1, 2024
    Configuration menu
    Copy the full SHA
    ee1ab4b View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. chore(docs): removed rfcs from search on docs website (#7214)

    Attempt to fix #7198, which should remove the RFCs from the search index on the docs site. Need to log into algolia to verify, will give some time for the site to reindex too.
    boyney123 authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    fce5d28 View commit details
    Browse the repository at this point in the history
  2. chore(docs): added duration example to the wing by example docs (#7215)

    Closes #7103, added an example for `duration` with Wing.
    boyney123 authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    d610f3c View commit details
    Browse the repository at this point in the history
  3. chore(docs): moved api lang docs into the learn by docs (#7217)

    Fixed for #7216
    
    This merges the https://www.winglang.io/docs/api/language and https://www.winglang.io/docs/learn sections together.
    
    The information from https://www.winglang.io/docs/api/language was duplicated in the wing learn by sections, and some stuff was missing all together. This just cleans it up.
    
    Next phase it actually reviewing the "Getting Started" and "Learn" sections and stream lining into stuff that makes more sense for people learning Wing. I like have rust have done it (https://www.rust-lang.org/learn) with install and learn, with learn forking off into courses, books, learn by, and examples... I think there is much we can learn from here. 
    
    This PR is a small step to that direction.
    boyney123 authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    cb705f3 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. fix(cli): not to show 1 test when no tests are in the file (#7205)

    This is to fix an issue that caused `wing test` against an empty `some_file_name.w` file shows `Tests 1 passed (1)`.
    
    See the issue #5852 for details.
    
    Solution:
    Instead of adding a dummy pass message, the function now returns early with a predefined message when there's no test case to avoid confusion later.
    
    And I don't think it would need full E2E tests?
    
    I am still exploring how to add test for this new test system behavior. Will mark the PR as ready after adding/updating test for it.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
    - [x] Description explains motivation and solution
    - [x] Tests added (always)
    - [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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    
    Resolves #5852
    ChihweiLHBird authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    7f00098 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. chore: update rust and wasi toolchain (#7212)

    Resolves #7175 
    This PR updates rust and wasi toolchain to latest.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    Pushkarm029 authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    c8aea62 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. chore(docs): moving typescript docs into own section (#7222)

    The docs are getting re-looked and updated slightly to help with the flow. Part of this is moving TypeScript docs out of the main project flow (for now), this will create a new section `/docs/typescript` and things will continue to work, but the main project will no longer point to these files, but will still be indexed.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    boyney123 authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    babc638 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. chore(docs): removed install instructions from docs (#7223)

    ## Checklist
    
    This removes Wing installation instructions from the docs (as we now have a new page). But this PR requires winglang/docsite#1041 to be merged first.
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    boyney123 authored Nov 27, 2024
    Configuration menu
    Copy the full SHA
    76a5895 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2025

  1. fix(sdk): logformat used in awscdk lambda functions is deprecated (#7228

    )
    
    The LogFormat used in AWS CDK for Lambda Functions is deprecated, and is being changed to LoggingFormat.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    marciocadev authored Jan 2, 2025
    Configuration menu
    Copy the full SHA
    7aa9d6a View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2025

  1. fix(sdk): test execution in aws-cdk (#7232)

    The Pull Request v0.79.13 changed the way the lambdas test ARNs are passed to the TestRunnerClient, unfortunately, it was not noticed that the target awscdk should also be changed. This change allowed the tests to be executed correctly.
    
    Closes #7229
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    marciocadev authored Jan 5, 2025
    Configuration menu
    Copy the full SHA
    4315ce3 View commit details
    Browse the repository at this point in the history
  2. feat(sdk): adding cloud.Service to awscdk (#7230)

    # 👷 WORK IN PROGRESS ... AGAIN 🏗️
    
    Adding `cloud.Service` to AWS-CDK
    
    Closes #7226 
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    marciocadev authored Jan 5, 2025
    Configuration menu
    Copy the full SHA
    332bd69 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2025

  1. fix(sdk): some fixes and minor refactoring (#7234)

    I made two small corrections and a refactoring in this PR:
    
    1. There was an error in an environment variable related to the bucket name that was passed in the aws-cdk build.
    2. When updating the lambda function log, I assigned the new enum to the old variable, but I have now corrected it to the proper variable.
    3. It didn't make sense to have a file just to keep a global variable related to the Counter, so I removed the file and moved the global variable to the shared-aws/counter.ts file.
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    marciocadev authored Jan 6, 2025
    Configuration menu
    Copy the full SHA
    680203a View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2025

  1. feat(docs): add toolchain validation to contrib docs (#7227)

    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    eladb authored Jan 7, 2025
    Configuration menu
    Copy the full SHA
    dc35958 View commit details
    Browse the repository at this point in the history
  2. chore: replace mergify's queue_rules.speculative_checks in favor of…

    … `merge_queue.max_parallel_checks` (#7238)
    skyrpex authored Jan 7, 2025
    Configuration menu
    Copy the full SHA
    bb7f1ba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9828ae6 View commit details
    Browse the repository at this point in the history
  4. fix(sdk): cloud.Service test when using tf-aws target (#7233)

    I try to run this test whit the command `wing test --platform tf-aws minimal.test.w`
    
    ```w
    bring cloud;
    
    let s = new cloud.Service(inflight () => {
      log("hello, service!");
    
      return () => {
        log("stopping!");
      };
    });
    
    test "start and stop" {
      assert(s.started());
      s.stop();
      assert(!s.started());
    }
    ```
    
    but I get this error
    
    ```shell
    $ wing test --platform tf-aws minimal.test.w
    ✔ Compiling minimal.test.w to tf-aws...
    
    ✔ terraform init
    
    ✖ terraform apply
    
    Command failed: terraform apply -auto-approve
    ╷
    │ Error: creating ECS Cluster (Test.mfet8zI2Z4_cluster): InvalidParameterException: Cluster name must match ^[a-zA-Z0-9\-_]{1,255}$, but was Test.mfet8zI2Z4_cluster
    │
    │   with aws_ecs_cluster.Testmfet8zI2Z4_env0_Service_ECSCluster_1D77BD98,
    │   on main.tf.json line 116, in resource.aws_ecs_cluster.Testmfet8zI2Z4_env0_Service_ECSCluster_1D77BD98:
    │  116:       }
    │
    ╵
    
    ✔ terraform destroy
    
    
    Tests 1 failed (1)
    Snapshots 1 skipped
    Test Files 1 failed (1)
    Duration 3m29.12s
    ```
    
    When objects are generated for the test, the default is to generate the cluster name like this Test.mfet8zI2Z4_cluster. 
    However, the cluster name cannot have a `.`, so I made a small adjustment to replace `.` with `_` to avoid this error
    
    
    ## Checklist
    
    - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/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 [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
    marciocadev authored Jan 7, 2025
    Configuration menu
    Copy the full SHA
    c10997b View commit details
    Browse the repository at this point in the history
Loading