@safercity/sdk-react-native 0.3.1 → 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 +51 -0
- package/README.md +23 -0
- package/package.json +1 -1
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,29 @@
|
|
|
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
|
+
|
|
12
|
+
## What's New in v0.3.2
|
|
13
|
+
|
|
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.
|
|
15
|
+
- **useBanner Fix** - Fixed hook parameter from `radius` to `days`.
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
// White-label React Native app
|
|
19
|
+
<SaferCityProvider
|
|
20
|
+
mode="proxy"
|
|
21
|
+
proxyBaseUrl={`${env.EXPO_PUBLIC_SERVER_URL}/api/safercity`}
|
|
22
|
+
tenantId={env.EXPO_PUBLIC_TENANT_ID}
|
|
23
|
+
>
|
|
24
|
+
<App />
|
|
25
|
+
</SaferCityProvider>
|
|
26
|
+
```
|
|
27
|
+
|
|
5
28
|
## What's New in v0.3.1
|
|
6
29
|
|
|
7
30
|
- **Simplified Return Types** - Updated to reflect v0.3.1 client changes. Domain methods return API body directly. Hook data types auto-adapt via `@safercity/sdk-react`.
|