Releases: RonasIT/react-native-common-modules
Releases · RonasIT/react-native-common-modules
v1.2.1
What's Changed
- fix: extend web sockets lib export by @ipakhomov in #44
Full Changelog: v1.2.0...v1.2.1
v1.2.0
What's Changed
- chore: update workspace dependencies by @Tomass673 in #39
- feat: pusher websocket service enhancements by @ipakhomov in #40
- feat: add pusher websockets RN hook and update readme by @ipakhomov in #41
- feat: setup CI by @ipakhomov in #42
- chore: reconfigure package builds by @ipakhomov in #43
Pusher websockets utilities change
WebSocketServicenow requires callinginit()beforeconnect()as per Pusher docs.
Theinit()method now can accept:
- a token getter function for dynamic token retrieval, ensuring the latest authentication token is always used;
- set of handlers to pass callbacks into pusher client instance
Migration:
// Before
await webSocketService.connect('your-auth-token');
// After
const tokenGetter = () => getAuthToken(); // Function that returns current token
await webSocketService.init(tokenGetter, {
// Optional handlers
onConnectionStateChange: (currentState) => {
// Do something with the connection state
},
}
);
webSocketService.connect();- Added new hook
usePusherReactNativethat automatically manages WebSocket connection lifecycle for React Native apps.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
- Added JSDoc for Clerk modules by @mikhail-create in #34
- Added JSDoc for Data access modules by @tgestronas in #37
- Added JSDoc for Ui and Utils modules by @tgestronas in #38
- Added support for shorter import paths with enhanced code editor suggestions by @VitalyMih in #35
Note: See the README for updated import path documentation. To enable these features, your tsconfig.json should use moduleResolution: bundler. Old version of imports is also supported.
Full Changelog: v1.0.1...v1.1.0
v1.0.0
V1 Release overview
Features
- Reusable modules for Clerk. More details in Readme
- The
setupReactotronutility now accepts plugins - The example app has been updated
Fixes
- The
usePushNotificationshook now usesexpo_token(instead ofexpoToken) as the body parameter name for subscriptions by default - The package no longer depends on deprecated Async Storage modules
Removals and Breaking Changes
- Storage utilities
AsyncStorageItemandSecureStorageItemhave been removed. It is now recommended to use React Native MMKV instead - The
VirtualizedListcomponent has been removed - direct usage of FlashList v2 is now the recommended approach - The
AppPressablecomponent has been removed - please use Pressable directly as needed based on your app's UI requirements
v0.7.1
What's Changed
- Dependencies update and minor fixes by @ekazankova in #29
Full Changelog: v0.7.0...v0.7.1
v0.7.0
What's Changed
- Update react-native-safe-area-context by @kerne1s in #17
- Make storage items deprecated by @VitalyMih in #18
- Reorganized modules export by @VitalyMih in #19
Migration
Starting from this version, the package uses direct module export for better dependency management and tree shaking.
All dependencies required by modules (specified in Readme) must be installed by the parent application.
- Update the package to
0.7.0 - Run Typescript checks in your workspace
- Fix modules imports like this:
- import { AppPressable, AppSafeAreaView } from '@ronas-it/react-native-common-modules';
+ import { AppPressable } from '@ronas-it/react-native-common-modules/src/ui/pressable';
+ import { AppSafeAreaView } from '@ronas-it/react-native-common-modules/src/ui/safe-area-view';Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
- Support ref by
AppPressableby @ekazankova in #15 - Dependencies update by @ekazankova in #16
Full Changelog: v0.5.0...v0.6.0
