Skip to content

Releases

2.0.1

Choose a tag to compare

@kylehughes kylehughes released this 01 Dec 04:50

Documentation

  • Fixed the macOS AppKit AppDelegate.purchaseExport(in:) example in README.md to await NSAlert.purchaseError(error).beginSheetModal(for: window).
  • Clarified in README.md and EntitlementsUI.md when to import Entitlements alongside EntitlementsUI (including .preview(...) under MemberImportVisibility).
  • Clarified public API doc comments for EntitlementAuthority.isPurchasing / isPurchasing(_:), EntitlementAuthority.preview(...) initial state, EntitlementAuthority.products, EntitlementRequirement.init(_:or:), EntitlementSubscriptionStatus.RenewalInfo.init, and View.onInAppPurchaseCompletion(...) handling of .unverified results.
  • Curated StoreKit/Transaction in Entitlements.docc and expanded EntitlementsUI.docc's overview of SwiftUI, StoreKit, UIKit, and AppKit extension surfaces.

2.0.0

Choose a tag to compare

@kylehughes kylehughes released this 01 Dec 02:33

Breaking Changes

  • EntitlementsUI no longer re-exports Entitlements via @_exported public import Entitlements. Modular apps that define their own EntitlementAuthority typealias no longer collide in SwiftUI views or #Preview blocks; files that reference core Entitlements types directly should import Entitlements alongside EntitlementsUI. (Entitlements continues to re-export AsyncResult.)

Added

  • Labeled designated initializers Entitled.init(entitlement:), EntitledFeature.init(feature:), and EntitledCapability.init(capability:) so constrained app extensions defining concrete init(_:) defaults can delegate without recursing.
  • ProductView(for:) initializers accepting Entitled<Entitlement>.Resolver and EntitledFeature<Feature>.Resolver across all four icon and placeholder shapes, matching PurchaseAction.

Documentation

  • Documented Swift 6.4 typed-throws inference ergonomics for PurchaseAction (plain do { ... } catch inside named async methods vs. do throws(EntitlementPurchaseError) inside inline Task closures).

1.0.0

Choose a tag to compare

@kylehughes kylehughes released this 30 Nov 23:56

Added

  • Entitlements: Type-safe StoreKit entitlement modeling (StoreProductIdentifier, StoreSubscriptionGroupIdentifier, StoreEntitlement, EntitlementRequirement, EntitlementFeature, EntitlementCapability), @MainActor / @Observable EntitlementAuthority with reconciliation, provenance, launch-seeded and live EntitlementSubscriptionStatus, Storefront.updates product refreshes, app-owned .cached(...) / .ephemeral(...) configuration, typed Transaction helpers, and inert #if DEBUG .preview(...) authorities.
  • EntitlementsUI: SwiftUI property wrappers (@EntitledFeature, @Entitled, @EntitledCapability), counted multi-window .entitlementAuthority(_:) lifecycle mounting, typed ProductView, StoreView, and SubscriptionStoreView initializers, typed-throws PurchaseAction, UIKit, and AppKit purchase helpers, .onInAppPurchaseCompletion(...), localized error alerts across 38 locales, subscription management, refund requests, and OS 27.0+ offer-code redemption helpers.
  • Documentation & Packaging: MIT license, DocC catalogs for Entitlements and EntitlementsUI, Swift Package Index configuration, StoreKit semantics reference, and Swift 6.4 support across iOS, macOS, tvOS, watchOS, and visionOS 26.0+.