Skip to content

Releases: PerryTS/storekit

v0.1.1 — provenance casing fix

07 May 09:06

Choose a tag to compare

Fixes npm trusted-publisher provenance verification (0.1.0 failed at npm's signature step because package.json :: repository.url was lowercase perryts/storekit while GitHub's OIDC token reported PerryTS/storekit).

No code changes — same FFI surface, same Swift bridge, same TS types as 0.1.0.

v0.1.0 — initial release

07 May 09:05

Choose a tag to compare

First release of @perryts/storekit — StoreKit 2 in-app purchase bindings for Perry.

Closes PerryTS/perry#537.

Highlights

  • Built against perry-ffi = "0.5" (declares perry.nativeLibrary.abiVersion: "0.5").
  • Six FFI exports — js_storekit_load_products / purchase / restore / has_subscription / get_jws / start_listener — wired to a Swift bridge over StoreKit 2 (Product.products(for:), Product.purchase(), AppStore.sync(), Transaction.currentEntitlements, Transaction.updates).
  • iOS 16+ and macOS 13+ build the Swift bridge via crate-ios/build.rs. Non-Apple targets fall back to crate-stub so calling code can use the same imports without #ifdef-style platform checks.
  • TypeScript exports the typed Product / PurchaseResult / HasSubscriptionResult / JwsResult / RestoreResult shapes alongside the raw FFI declarations. README has a copy-pasteable typed wrapper layer.

Still open

Google Play Billing for Android is a separate binding (same TS surface, different native side) — out of scope for this release.