Skip to content

Commit

Permalink
Merge branch 'cli' into cli-overrides-poc
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-shigueo committed Feb 22, 2025
2 parents b9db690 + 3aae633 commit 51b3c22
Show file tree
Hide file tree
Showing 19 changed files with 876 additions and 343 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,28 @@ jobs:
cargo install cargo-readme
diff -u ../README.md <(cargo readme)
msrv-valid:
name: Check that the MSRV is valid
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check that README.md is up-to-date
working-directory: ts-rs
run: |
set +e
cargo install cargo-msrv
cargo msrv verify --all-features
if [[ $? -eq 1 ]]; then
cargo msrv find --all-features
exit 1
fi
test-all-features:
name: Test ts-rs with --all-features
runs-on: ubuntu-latest
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# master
### Breaking
- Added `OptionInnerType` associated type to the `TS` trait. If you manually implement `TS`, you must set this associated type to `Self` in all of your implementations.
- Raised MSRV to `1.78.0` due to use of `#[diagnostic::on_unimplemented]` and `let ... else { ... }`

### Features
- Added `#[ts(optional_fields)]` and `#[ts(optional_fields = nullable)]` attribute to structs, this attribute is equivalent to using the corresponding `#[ts(optional)]` or `#[ts(optional = nullable)]` on every field of the struct. ([#366](https://github.com/Aleph-Alpha/ts-rs/pull/366))

### Fixes
- Fix `#[ts(optional)]` error when using a type alias for `Option` or fully qqualifying it as `core::option::Option` ([#366](https://github.com/Aleph-Alpha/ts-rs/pull/366))

# 10.1.0
### Features
- Add support for synchronization primitives from `tokio` (feature `tokio-impl`)
### Fixes
- Fix incorrect behavior of the tag attribute for structs without any fields declared with braces
- Fix representation of `serde_json::Value`

# 10.0.0
### Breaking
- Change how `HashMap<K, V>` is represented in TypeScript. The resulting bindings (`{ [key in K]?: V }` instead of `{ [key: K]: V }`) are more accurate and flexible.

### Features
Expand Down
Loading

0 comments on commit 51b3c22

Please sign in to comment.