@safercity/sdk-react-native 0.3.2 → 0.4.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,51 @@
1
+ # @safercity/sdk-react-native
2
+
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - **100% Codegen Types** - All types flow from the generated OpenAPI spec. No manual type definitions.
8
+ - **SDK Realignment** - Updated to reflect v0.4.0 client and React hook changes.
9
+ - **New Features** - Support for premium panic creation and enhanced location update metadata.
10
+
11
+ ### Breaking Changes
12
+
13
+ - `useSubscribeUser()` hook removed. Use `useCreateSubscription()` instead.
14
+
15
+ ## 0.3.2
16
+
17
+ ### Patch Changes
18
+
19
+ - **Proxy Mode for White-Label Apps** - `SaferCityProvider` supports `tenantId`, `userId`, and `headers` in proxy mode.
20
+ - **useBanner Fix** - Fixed hook parameter from `radius` to `days`.
21
+
22
+ ## 0.3.1
23
+
24
+ ### Patch Changes
25
+
26
+ - **Simplified Return Types** - Updated to reflect v0.3.1 client changes.
27
+ - **Typed Errors** - `SaferCityApiError` on all API failures.
28
+
29
+ ## 0.3.0
30
+
31
+ ### Minor Changes
32
+
33
+ - **Typed SDK Alignment** - Updated to support v0.3.0 auto-generated types.
34
+
35
+ ## 0.2.0
36
+
37
+ ### Minor Changes
38
+
39
+ - **SDK Overhaul Alignment** - Updated to reflect v0.2.0 changes across all packages.
40
+
41
+ ## 0.1.3
42
+
43
+ ### Patch Changes
44
+
45
+ - Version update for consistency.
46
+
47
+ ## 0.1.0
48
+
49
+ ### Minor Changes
50
+
51
+ - Initial release with React Native adapter and expo-fetch streaming support.
package/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  React Native adapter for SaferCity SDK with expo-fetch streaming support and secure token storage.
4
4
 
5
+ ## What's New in v0.4.0
6
+
7
+ - **100% Codegen Types** - All types flow from the generated OpenAPI spec. No manual type definitions.
8
+ - **SDK Realignment** - Updated to reflect v0.4.0 client and React hook changes.
9
+ - **Breaking Changes** - `useSubscribeUser()` hook removed. Subscription creation body updated to use `isPremium` flag.
10
+ - **New Features** - Support for premium panic creation and enhanced location update metadata.
11
+
5
12
  ## What's New in v0.3.2
6
13
 
7
14
  - **Proxy Mode for White-Label Apps** - `SaferCityProvider` now supports `tenantId`, `userId`, and `headers` in proxy mode. Essential for white-label React Native apps where the native app talks to your backend proxy, which then forwards to SaferCity API.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safercity/sdk-react-native",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "React Native adapter for SaferCity SDK with expo-fetch streaming support",
5
5
  "license": "MIT",
6
6
  "author": {