Skip to content

Conversation

@jhugman
Copy link
Owner

@jhugman jhugman commented Jun 10, 2025

Fixes #270 .

This bumps the version of typescript to ES2024, 5.8.3.

The most significant change is around the usage of ArrayBuffer:

⚠️ Breaking change ⚠️

Prior to 5.7, Typescript accepted TypedArrays (Uint8Array, and friends) as ArrayBuffer: i.e. you could declare a variable as ArrayBuffer, but assign it a Int32Array.

Since 5.7, these are distinct types: ArrayBuffer and ArrayBufferView, which is the union of all typed arrays and DataView.

This PR removes the unpacking of an ArrayBufferView into an ArrayBuffer, because now this code path is never reached: because the codepath to get there wouldn't compile.

@jhugman jhugman requested a review from zzorba June 10, 2025 17:00
Copy link
Collaborator

@zzorba zzorba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhugman jhugman merged commit e8f9b35 into main Jun 10, 2025
11 of 12 checks passed
@jhugman jhugman deleted the jhugman/version-bump-typescript-to-5.8.3 branch June 10, 2025 18:51
jhugman added a commit that referenced this pull request Jun 12, 2025
# 0.29.3-0

## ✨ What's New ✨

### 🌏🕸️ WASM!

After 6 months of development, we are releasing the first version of
`uniffi-bindgen-react-native` for use with WASM:

- Different fixtures running:
  - Fixtures `chronological` and `gc-callbacks-crasher` (#238)
  - Fixture `async-callbacks` (#237)
- Configuration file and `ubrn` command line:
- Enable entrypoint and ts bindings directory to be customized for wasm
(#259)
  - Add `ubrn build web --and-generate` command (#253)
  - Add CLI testing for `uniffi-bindgen-react-native` command. (#257)
  - Refactor of ubrn_cli into config and commands modules (#251)
- `uniffi-runtime-javascript` runtime, now on `crates.io`:
- Add runtimeVersion to vary version of uniffi-runtime-javascript (#256)
  - Prepare uniffi-runtime-javascript crate for release (#248)

## 🦊 What's Changed

- Add default value for the --config option in all ubrn commands (#265)
- Change Windows path separators in CMakeLists.txt (#261)
- Bump `uniffi-rs` version to 0.29.3 (#267)
- Bump bob & RN versions (#242) and (#260)
- Run yarn pack as part of compatibility tests (#250)
- Add to "who is using" section of readme (#239)
- Fix wrong key name of `manifestPath` in docs (#240)

## ⚠️ Breaking Changes

- Bump Typescript version to 5.8, affecting `ArrayBuffer` (#271)

**Full Changelog**:
0.29.0-0...0.29.3-3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typescript 5.8.3 issues

3 participants