breez / breez/breez-sdk-liquid-react-native

`Transitive TypeScript 5.9 break from uniffi-bindgen-react-native@0.28.3-5`

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C++
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Hi, after upgrading to `@breeztech/breez-sdk-liquid-react-native@0.12.1`, our mobile project started failing `tsc --noEmit` under TypeScript `5.9.3`.

The root cause appears to be the transitive dependency:

- `uniffi-bindgen-react-native@0.28.3-5`

Its shipped `.ts` sources fail on newer TS due to `ArrayBuffer` / `ArrayBufferLike` typing incompatibilities.

Downgrading TypeScript to `5.4.5` fixes it for us, and local casts in the following files also fix it:

- `typescript/src/ffi-converters.ts`
- `typescript/src/ffi-types.ts`

Could you either:
1. update/pin to a version of `uniffi-bindgen-react-native` that supports newer TS, or
2. patch the current dependency version?

Contributor guide

No contributing guide indexed for this repository

Research direction

Run `tsc --noEmit` with TypeScript 5.9.3 and inspect the shipped sources in `typescript/src/ffi-converters.ts` and `typescript/src/ffi-types.ts`. Compare the behavior with TypeScript 5.4.5 and determine whether updating or pinning `uniffi-bindgen-react-native` resolves the reported `ArrayBuffer`/`ArrayBufferLike` errors. Done means the project type-checks under the newer TypeScript version without local casts.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.