# @revenuecat/purchases-typescript-internal

> Typescript code to be used by RevenueCat's hybrid SDKs. Not meant for external usage.

Latest version **19.3.0** (published 2026-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @revenuecat/purchases-typescript-internal
pnpm add @revenuecat/purchases-typescript-internal
yarn add @revenuecat/purchases-typescript-internal
bun add @revenuecat/purchases-typescript-internal
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 19.3.0 |
| Published | 2026-09-18 |
| First published | 2023-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 92.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 37 |
| Author | RevenueCat, Inc. |
| Maintainers | vegaro, andy_revenuecat, joshdholtzrevenuecat, tonirc, rcgitbot, nicola-revenuecat, francocorrea, jefago, ngrc, alfonsoperez, revenuecat-security, jayshortway |
| Keywords | RevenueCat |

## Links

- npm: https://www.npmjs.com/package/@revenuecat/purchases-typescript-internal
- Repository: https://github.com/RevenueCat/purchases-hybrid-common
- Homepage: https://github.com/RevenueCat/purchases-hybrid-common#readme
- Issues: https://github.com/RevenueCat/purchases-hybrid-common/issues
- npm.io page: https://npm.io/package/@revenuecat/purchases-typescript-internal

## Recent versions

- 19.3.0 (latest) — 2026-09-18
- 17.22.0-alphaaidl01 (next) — 2025-12-01
- 19.2.0 — 2026-09-17
- 19.1.0 — 2026-09-17
- 19.0.0 — 2026-09-14
- 18.38.0 — 2026-09-10
- 18.37.0 — 2026-09-08
- 18.36.1 — 2026-09-07
- 18.36.0 — 2026-09-04
- 18.35.0 — 2026-09-03
- 18.34.0 — 2026-09-03
- 18.33.1 — 2026-08-27
- 18.33.0 — 2026-08-27
- 18.32.1 — 2026-08-21
- 18.32.0 — 2026-08-20
- … 276 more at https://npm.io/package/@revenuecat/purchases-typescript-internal/versions

## README

# purchases-hybrid-common

Common files and libraries for RevenueCat's Hybrid SDKs. This repository contains 4 distinct libraries that provide shared functionality across different platforms and implementations.

## Libraries

### 1. Android (`android/`)
Contains mappings and utilities for RevenueCat hybrid SDKs to interface with the native Android library. This library provides the bridge between hybrid frameworks and the RevenueCat Android SDK, handling platform-specific implementations and data transformations.

### 2. iOS (`ios/`)
Contains mappings and utilities for RevenueCat hybrid SDKs to interface with the native iOS library. This provides the necessary bridge to connect hybrid frameworks with the RevenueCat iOS SDK, managing iOS-specific functionality and data transformations.

### 3. TypeScript (`typescript/`)
Shared TypeScript types and interfaces commonly used by both [react-native-purchases](https://github.com/RevenueCat/react-native-purchases) and [purchases-capacitor](https://github.com/RevenueCat/purchases-capacitor). This library ensures type consistency across different hybrid implementations by providing a single source of truth for common data structures, enums, and type definitions.

- **Package**: `@revenuecat/purchases-typescript-internal`
- **Purpose**: Internal shared TypeScript code for hybrid SDKs
- **Note**: Not intended for external usage

### 4. JavaScript Hybrid Mappings (`purchases-js-hybrid-mappings/`)
Contains mappings from purchases-js for use by hybrid frameworks that support web platforms. This library enables hybrid SDKs to leverage RevenueCat's web functionality through standardized mappings and interfaces.

- **Package**: `@revenuecat/purchases-js-hybrid-mappings`
- **Dependencies**: Built on top of `@revenuecat/purchases-js`
- **Purpose**: Bridge between purchases-js and hybrid implementations

## Development setup

Install [mise](https://mise.jdx.dev/), then from the repo root:

```bash
mise install
```

That installs Java, Ruby, and Node from `mise.toml` / `mise.lock`. Yarn is provided via corepack.

**Exceptions (not managed by mise):** Xcode for iOS work, Android SDK for local Android builds.

---
_Source: https://npm.io/package/@revenuecat/purchases-typescript-internal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
