react-native-stallion 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,10 +2,13 @@
2
2
 
3
3
  # React Native Stallion – Best CodePush Alternative & Expo Updates Replacement
4
4
 
5
- [![npm Version](https://img.shields.io/npm/v/react-native-stallion.svg)](https://www.npmjs.com/package/react-native-stallion)
6
- [![License](https://img.shields.io/npm/l/react-native-stallion.svg)](https://www.npmjs.com/package/react-native-stallion)
5
+ [![npm Version](https://img.shields.io/npm/v/react-native-stallion.svg)](https://www.npmjs.com/package/react-native-stallion)   [![GitHub Stars](https://img.shields.io/github/stars/stallion-tech/react-native-stallion)](https://github.com/stallion-tech/react-native-stallion)   [![npm Downloads](https://img.shields.io/npm/dm/react-native-stallion.svg)](https://www.npmjs.com/package/react-native-stallion)   [![SOC 2 Type 1](https://img.shields.io/badge/SOC%202-Type%201%20Compliant-blue)](https://stalliontech.io/trust)   [![License](https://img.shields.io/npm/l/react-native-stallion.svg)](https://www.npmjs.com/package/react-native-stallion)
7
6
 
8
- **React Native Stallion** is the modern **CodePush alternative** and **App Center replacement** for React Native apps. Ship app updates instantly with **up to 98% smaller patches (depending on changes)**—no app store resubmission required for JavaScript updates. The best **Expo Updates alternative** with advanced OTA controls, patch-based updates, and advanced security features.
7
+ ⭐ If React Native Stallion helps you ship OTA updates, [consider starring the repo on GitHub](https://github.com/stallion-tech/react-native-stallion)!
8
+
9
+ **React Native Stallion** is a modern **CodePush alternative** and **App Center replacement** for React Native apps. Ship app updates instantly with **up to 98% smaller patches (depending on changes)**—no app store resubmission required for JavaScript updates. A full-featured **Expo EAS Update alternative** with advanced OTA controls, patch-based updates, and enterprise security.
10
+
11
+ Trusted by **2,500+ organizations** serving **500M+ users**. **10,000 MAU free tier** — no credit card required.
9
12
 
10
13
  👉 **[Sign up with Stallion](https://console.stalliontech.io/)** to start shipping OTA updates today
11
14
 
@@ -13,7 +16,7 @@
13
16
 
14
17
  ## Why Choose React Native Stallion?
15
18
 
16
- React Native Stallion is the **best CodePush alternative** for teams that need modern OTA update capabilities:
19
+ React Native Stallion is a leading **CodePush replacement** for teams that need modern OTA update capabilities:
17
20
 
18
21
  - **Up to 98% Smaller Patch Updates (Depending on Changes)** – Binary-safe differential updates, not full bundles
19
22
  - **Automatic Rollback & Crash Recovery** – Instant rollback on crashes or failures
@@ -55,6 +58,12 @@ const UpdateModal = () => {
55
58
 
56
59
  ---
57
60
 
61
+ ## Migrating from CodePush?
62
+
63
+ Replace deprecated CodePush with React Native Stallion in minutes. **[Read the migration guide →](https://stalliontech.io/learn/docs/migrating-from-codepush)**
64
+
65
+ ---
66
+
58
67
  ## Key Features
59
68
 
60
69
  ### Patch Updates (Up to 98% Smaller, Depending on Changes)
@@ -109,7 +118,7 @@ yarn add react-native-stallion@latest
109
118
 
110
119
  For complete setup instructions, native integration steps, and environment configurations, visit:
111
120
 
112
- **📚 [Full Installation Guide](https://learn.stalliontech.io/docs/sdk/installation)**
121
+ **📚 [Full Installation Guide](https://stalliontech.io/learn/docs/sdk/installation)**
113
122
 
114
123
  ### Step 3: Configure Stallion
115
124
 
@@ -125,15 +134,27 @@ export default withStallion(RootComponent);
125
134
 
126
135
  ### Complete Documentation
127
136
 
128
- - **[Full Documentation](https://learn.stalliontech.io)** – Complete API reference and guides
129
- - **[SDK Installation](https://learn.stalliontech.io/docs/sdk/installation)** – Step-by-step setup
130
- - **[Bundle Signing](https://learn.stalliontech.io/docs/bundle-signing)** – Security best practices
131
- - **[Custom Update UI](https://learn.stalliontech.io/blogs/react-native-over-the-air-updates-with-custom-ui)** – Build custom flows
132
- - **[CI/CD Integration](https://learn.stalliontech.io/docs/release-automation)** – Automate deployments
137
+ - **[Full Documentation](https://stalliontech.io/learn)** – Complete API reference and guides
138
+ - **[SDK Installation](https://stalliontech.io/learn/docs/sdk/installation)** – Step-by-step setup
139
+ - **[Bundle Signing](https://stalliontech.io/learn/docs/bundle-signing)** – Security best practices
140
+ - **[Custom Update UI](https://stalliontech.io/learn/blogs/react-native-over-the-air-updates-with-custom-ui)** – Build custom flows
141
+ - **[CI/CD Integration](https://stalliontech.io/learn/docs/release-automation)** – Automate deployments
142
+
143
+ ### Featured Guides
144
+
145
+ - **[New Architecture Support](https://stalliontech.io/react-native-new-architecture)** – Fabric, TurboModules, and React Native 0.76+
146
+ - **[Patch Updates Explained](https://stalliontech.io/react-native-patch-updates)** – How binary-safe diffs work
147
+ - **[OTA Security Guide](https://stalliontech.io/ota-update-security)** – Bundle signing, integrity, and rollbacks
148
+ - **[OTA Best Practices (2026)](https://stalliontech.io/learn/blogs/react-native-ota-best-practices-stallion)** – Safer release workflows
149
+ - **[React Native OTA Updates Guide](https://stalliontech.io/react-native-ota-updates-guide)** – Complete OTA overview
150
+ - **[API Reference](https://stalliontech.io/learn/docs/sdk/api-reference)** – SDK hooks and methods
151
+ - **[Getting Started](https://stalliontech.io/learn/docs/introduction)** – Platform overview
152
+ - **[Pricing](https://stalliontech.io/pricing)** – Plans and free tier details
153
+ - **[Trust Center](https://stalliontech.io/trust)** – Compliance and security resources
133
154
 
134
155
  ### Migration Guides
135
156
 
136
- - **[CodePush Migration](https://learn.stalliontech.io/docs/migrating-from-codepush)** – Migrate from CodePush
157
+ - **[CodePush Migration](https://stalliontech.io/learn/docs/migrating-from-codepush)** – Migrate from CodePush
137
158
  - **[App Center Migration](https://stalliontech.io/app-center-alternative)** – Replace App Center
138
159
  - **[Expo Updates Migration](https://stalliontech.io/expo-eas-update)** – Switch from Expo Updates
139
160
 
@@ -143,7 +164,7 @@ export default withStallion(RootComponent);
143
164
 
144
165
  ### CodePush Alternative
145
166
 
146
- React Native Stallion is the **best CodePush alternative** for teams migrating from deprecated CodePush or App Center:
167
+ React Native Stallion is a **modern CodePush replacement** for teams migrating from deprecated CodePush or App Center:
147
168
 
148
169
  - ✅ CodePush-compatible API
149
170
  - ✅ Patch updates (CodePush doesn't support)
@@ -152,7 +173,7 @@ React Native Stallion is the **best CodePush alternative** for teams migrating f
152
173
 
153
174
  ### Expo Updates Replacement
154
175
 
155
- The best **Expo Updates alternative** with more features:
176
+ A strong **Expo Updates replacement** with more features:
156
177
 
157
178
  - ✅ Patch updates (up to 98% smaller, depending on changes)
158
179
  - ✅ Advanced OTA controls
@@ -170,6 +191,12 @@ Enterprise-ready OTA update solution:
170
191
 
171
192
  ---
172
193
 
194
+ ## Security
195
+
196
+ React Native Stallion is SOC 2 Type 1 compliant (Security, Availability, Confidentiality).
197
+
198
+ ---
199
+
173
200
  ## Security Features
174
201
 
175
202
  - **Cryptographic Bundle Signing** – Customer-managed keys for tamper-proof updates
@@ -205,7 +232,7 @@ We welcome contributions! Please see the [CONTRIBUTING.md](./CONTRIBUTING.md) fi
205
232
  ## Issues & Support
206
233
 
207
234
  - **[Open Issues](https://github.com/stallion-tech/react-native-stallion/issues)** – Report bugs or request features
208
- - **[Documentation](https://learn.stalliontech.io)** – Complete guides and API reference
235
+ - **[Documentation](https://stalliontech.io/learn)** – Complete guides and API reference
209
236
  - **[Contact Support](https://stalliontech.io/)** – Get help from our team
210
237
 
211
238
  ---
@@ -213,10 +240,12 @@ We welcome contributions! Please see the [CONTRIBUTING.md](./CONTRIBUTING.md) fi
213
240
  ## 🔗 Links
214
241
 
215
242
  - **Website:** [https://stalliontech.io](https://stalliontech.io)
216
- - **Documentation:** [https://learn.stalliontech.io](https://learn.stalliontech.io)
243
+ - **Documentation:** [https://stalliontech.io/learn](https://stalliontech.io/learn)
217
244
  - **Console:** [https://console.stalliontech.io](https://console.stalliontech.io)
245
+ - **GitHub:** [https://github.com/stallion-tech/react-native-stallion](https://github.com/stallion-tech/react-native-stallion)
246
+ - **Pricing:** [https://stalliontech.io/pricing](https://stalliontech.io/pricing)
218
247
  - **NPM Package:** [https://www.npmjs.com/package/react-native-stallion](https://www.npmjs.com/package/react-native-stallion)
219
248
 
220
249
  ---
221
250
 
222
- > **React Native Stallion** – The fastest, safest way to manage React Native OTA updates. The best **CodePush alternative** and **Expo Updates replacement** with patch-based updates, advanced security features, and up to 98% smaller deployments (depending on changes).
251
+ > **React Native Stallion** – The fastest, safest way to manage React Native OTA updates. A **CodePush alternative** and **Expo EAS Update replacement** with patch-based updates, enterprise security, and up to 98% smaller deployments (depending on changes).
package/package.json CHANGED
@@ -1,15 +1,23 @@
1
1
  {
2
2
  "name": "react-native-stallion",
3
- "version": "2.4.1",
4
- "description": "Offical React Native SDK for Stallion",
5
- "main": "index",
3
+ "version": "2.4.2",
4
+ "description": "Official React Native OTA updates SDK — CodePush alternative with patch updates, rollback, and bundle signing.",
5
+ "main": "src/index",
6
6
  "types": "types/index.d.ts",
7
7
  "react-native": "src/index",
8
8
  "source": "src/index",
9
9
  "keywords": [
10
10
  "react-native",
11
11
  "ios",
12
- "android"
12
+ "android",
13
+ "codepush",
14
+ "codepush-alternative",
15
+ "ota-updates",
16
+ "expo-updates",
17
+ "app-center",
18
+ "over-the-air",
19
+ "react-native-ota",
20
+ "eas-update"
13
21
  ],
14
22
  "repository": {
15
23
  "type": "git",
package/src/index.js CHANGED
@@ -21,6 +21,7 @@ if (StallionNativeModule !== null && StallionNativeModule !== void 0 && Stallion
21
21
  }
22
22
  export { sync, restart } from './main/utils/StallionNativeUtils';
23
23
  export { useStallionUpdate } from './main/utils/useStallionUpdate';
24
+ export { default as useStallionConfig } from './main/utils/useStallionConfig';
24
25
  export const addEventListener = stallionEventEmitter.addEventListener.bind(stallionEventEmitter);
25
26
  export const removeEventListener = stallionEventEmitter.removeEventListener.bind(stallionEventEmitter);
26
27
  export const ACTIVE_RELEASE_HASH = getActiveReleaseHashNative();
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["StallionNativeModule","STALLION_DISABLED_ERROR","withStallionNoop","useStallionModalNoop","withStallionMain","useStallionModalMain","stallionEventEmitter","getActiveReleaseHashNative","withStallion","useStallionModal","getStallionConfig","console","warn","sync","restart","useStallionUpdate","addEventListener","bind","removeEventListener","ACTIVE_RELEASE_HASH"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,oBAAoB,IACzBC,uBAAuB,QAClB,wBAAwB;;AAE/B;AACA,OAAOC,gBAAgB,MAAM,qBAAqB;AAClD,OAAOC,oBAAoB,MAAM,yBAAyB;;AAE1D;AACA,OAAOC,gBAAgB,MAAM,2BAA2B;AACxD,OAAOC,oBAAoB,MAAM,+BAA+B;AAGhE,SAASC,oBAAoB,QAAQ,mCAAmC;AACxE,SAASC,0BAA0B,QAAQ,kCAAkC;AAE7E,OAAO,IAAIC,YAA2B;AACtC,OAAO,IAAIC,gBAAyC;AAEpD,IAAIT,oBAAoB,aAApBA,oBAAoB,eAApBA,oBAAoB,CAAEU,iBAAiB,EAAE;EAC3CF,YAAY,GAAGJ,gBAAgB;EAC/BK,gBAAgB,GAAGJ,oBAAoB;AACzC,CAAC,MAAM;EACLM,OAAO,CAACC,IAAI,CAACX,uBAAuB,CAAC;EACrCO,YAAY,GAAGN,gBAAgB;EAC/BO,gBAAgB,GAAGN,oBAAoB;AACzC;AAEA,SAASU,IAAI,EAAEC,OAAO,QAAQ,kCAAkC;AAChE,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,OAAO,MAAMC,gBAAgB,GAC3BV,oBAAoB,CAACU,gBAAgB,CAACC,IAAI,CAACX,oBAAoB,CAAC;AAClE,OAAO,MAAMY,mBAAmB,GAC9BZ,oBAAoB,CAACY,mBAAmB,CAACD,IAAI,CAACX,oBAAoB,CAAC;AAErE,OAAO,MAAMa,mBAAmB,GAAGZ,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"names":["StallionNativeModule","STALLION_DISABLED_ERROR","withStallionNoop","useStallionModalNoop","withStallionMain","useStallionModalMain","stallionEventEmitter","getActiveReleaseHashNative","withStallion","useStallionModal","getStallionConfig","console","warn","sync","restart","useStallionUpdate","default","useStallionConfig","addEventListener","bind","removeEventListener","ACTIVE_RELEASE_HASH"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,oBAAoB,IACzBC,uBAAuB,QAClB,wBAAwB;;AAE/B;AACA,OAAOC,gBAAgB,MAAM,qBAAqB;AAClD,OAAOC,oBAAoB,MAAM,yBAAyB;;AAE1D;AACA,OAAOC,gBAAgB,MAAM,2BAA2B;AACxD,OAAOC,oBAAoB,MAAM,+BAA+B;AAGhE,SAASC,oBAAoB,QAAQ,mCAAmC;AACxE,SAASC,0BAA0B,QAAQ,kCAAkC;AAE7E,OAAO,IAAIC,YAA2B;AACtC,OAAO,IAAIC,gBAAyC;AAEpD,IAAIT,oBAAoB,aAApBA,oBAAoB,eAApBA,oBAAoB,CAAEU,iBAAiB,EAAE;EAC3CF,YAAY,GAAGJ,gBAAgB;EAC/BK,gBAAgB,GAAGJ,oBAAoB;AACzC,CAAC,MAAM;EACLM,OAAO,CAACC,IAAI,CAACX,uBAAuB,CAAC;EACrCO,YAAY,GAAGN,gBAAgB;EAC/BO,gBAAgB,GAAGN,oBAAoB;AACzC;AAEA,SAASU,IAAI,EAAEC,OAAO,QAAQ,kCAAkC;AAChE,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,OAAO,IAAIC,iBAAiB,QAAQ,gCAAgC;AAC7E,OAAO,MAAMC,gBAAgB,GAC3BZ,oBAAoB,CAACY,gBAAgB,CAACC,IAAI,CAACb,oBAAoB,CAAC;AAClE,OAAO,MAAMc,mBAAmB,GAC9Bd,oBAAoB,CAACc,mBAAmB,CAACD,IAAI,CAACb,oBAAoB,CAAC;AAErE,OAAO,MAAMe,mBAAmB,GAAGd,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { useContext } from "react";
2
+ import { GlobalContext } from "../state";
3
+ const useStallionConfig = () => {
4
+ const {
5
+ actions: {
6
+ refreshConfig
7
+ }
8
+ } = useContext(GlobalContext);
9
+ return {
10
+ updateStallionConfig: refreshConfig
11
+ };
12
+ };
13
+ export default useStallionConfig;
14
+ //# sourceMappingURL=useStallionConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useContext","GlobalContext","useStallionConfig","actions","refreshConfig","updateStallionConfig"],"sourceRoot":"../../../../src","sources":["main/utils/useStallionConfig.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,aAAa,QAAQ,UAAU;AAExC,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EAC5B,MAAM;IAAEC,OAAO,EAAE;MAAEC;IAAc;EAAE,CAAC,GAAGJ,UAAU,CAACC,aAAa,CAAC;EAChE,OAAO;IACHI,oBAAoB,EAAED;EAC1B,CAAC;AACL,CAAC;AAED,eAAeF,iBAAiB"}
package/types/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare let withStallion: IWithStallion;
3
3
  export declare let useStallionModal: () => IUseStallionModal;
4
4
  export { sync, restart } from './main/utils/StallionNativeUtils';
5
5
  export { useStallionUpdate } from './main/utils/useStallionUpdate';
6
+ export { default as useStallionConfig } from './main/utils/useStallionConfig';
6
7
  export declare const addEventListener: (listener: (data?: import("./main/state/useStallionEvents").IStallionNativeEventData | undefined) => void) => void;
7
8
  export declare const removeEventListener: (listenerToRemove: (data?: import("./main/state/useStallionEvents").IStallionNativeEventData | undefined) => void) => void;
8
9
  export declare const ACTIVE_RELEASE_HASH: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIvE,eAAO,IAAI,YAAY,EAAE,aAAa,CAAC;AACvC,eAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAWrD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,eAAO,MAAM,gBAAgB,oHACqC,CAAC;AACnE,eAAO,MAAM,mBAAmB,4HACqC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,eAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIvE,eAAO,IAAI,YAAY,EAAE,aAAa,CAAC;AACvC,eAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAWrD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,eAAO,MAAM,gBAAgB,oHACqC,CAAC;AACnE,eAAO,MAAM,mBAAmB,4HACqC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,eAA+B,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const useStallionConfig: () => {
2
+ updateStallionConfig: () => void;
3
+ };
4
+ export default useStallionConfig;
5
+ //# sourceMappingURL=useStallionConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStallionConfig.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/useStallionConfig.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,iBAAiB;;CAKtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}