@umituz/react-native-notifications 1.5.11 → 1.5.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-notifications",
3
- "version": "1.5.11",
3
+ "version": "1.5.13",
4
4
  "description": "Offline-first local notifications system for React Native apps using expo-notifications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -77,7 +77,6 @@ interface PreferencesState {
77
77
 
78
78
  interface PreferencesActions {
79
79
  initialize: () => Promise<void>;
80
- loadPreferences: () => Promise<void>;
81
80
  updatePreferences: (updates: Partial<NotificationPreferences>) => void;
82
81
  updateQuietHours: (quietHours: QuietHoursConfig) => void;
83
82
  reset: () => void;
@@ -115,10 +114,6 @@ export const usePreferencesStore = createStore<PreferencesState, PreferencesActi
115
114
  set({ isLoading: false, isInitialized: true });
116
115
  },
117
116
 
118
- loadPreferences: async () => {
119
- // Data loaded automatically by persist
120
- },
121
-
122
117
  updatePreferences: (updates: Partial<NotificationPreferences>) => {
123
118
  const { preferences } = get();
124
119
  set({ preferences: { ...preferences, ...updates } });
@@ -151,12 +146,3 @@ export const useNotificationPreferences = () => usePreferencesStore(state => sta
151
146
  export const useQuietHours = () => usePreferencesStore(state => state.preferences.quietHours);
152
147
  export const useRemindersLoading = () => usePreferencesStore(state => state.isLoading);
153
148
  export const useRemindersInitialized = () => usePreferencesStore(state => state.isInitialized);
154
-
155
- // ============================================================================
156
- // LEGACY EXPORTS - DEPRECATED
157
- // ============================================================================
158
-
159
- /**
160
- * @deprecated Use specific store hooks instead
161
- */
162
- export const useRemindersStoreLegacy = useRemindersStore;
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * Simple notification settings hook
3
- * @deprecated Use usePreferencesStore and useNotificationPreferences instead
4
3
  */
5
4
 
6
5
  import { createStore } from '@umituz/react-native-storage';
@@ -26,9 +25,6 @@ const useNotificationSettingsStore = createStore<NotificationSettingsState, Noti
26
25
  }),
27
26
  });
28
27
 
29
- /**
30
- * @deprecated Use usePreferencesStore and useNotificationPreferences from RemindersStore instead
31
- */
32
28
  export const useNotificationSettings = () => {
33
29
  const store = useNotificationSettingsStore();
34
30
  const { notificationsEnabled, isLoading, setNotificationsEnabled } = store;