@umituz/react-native-auth 3.4.2 → 3.4.5

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-auth",
3
- "version": "3.4.2",
3
+ "version": "3.4.5",
4
4
  "description": "Authentication service for React Native apps - Secure, type-safe, and production-ready. Provider-agnostic design with dependency injection, configurable validation, and comprehensive error handling.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -31,18 +31,19 @@
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/umituz/react-native-auth.git"
33
33
  },
34
- "peerDependencies": {
35
- "@gorhom/bottom-sheet": ">=4.0.0",
36
- "@react-navigation/native": ">=6.0.0",
37
- "@react-navigation/stack": ">=6.0.0",
38
- "@tanstack/react-query": ">=5.0.0",
34
+ "dependencies": {
39
35
  "@umituz/react-native-design-system": "*",
40
36
  "@umituz/react-native-firebase": "*",
41
37
  "@umituz/react-native-localization": "*",
42
- "@umituz/react-native-sentry": "*",
43
38
  "@umituz/react-native-storage": "*",
44
39
  "@umituz/react-native-tanstack": "*",
45
- "@umituz/react-native-validation": "*",
40
+ "@umituz/react-native-validation": "*"
41
+ },
42
+ "peerDependencies": {
43
+ "@gorhom/bottom-sheet": ">=4.0.0",
44
+ "@react-navigation/native": ">=6.0.0",
45
+ "@react-navigation/stack": ">=6.0.0",
46
+ "@tanstack/react-query": ">=5.0.0",
46
47
  "expo-auth-session": ">=5.0.0",
47
48
  "expo-linear-gradient": ">=13.0.0",
48
49
  "expo-web-browser": ">=12.0.0",
@@ -63,8 +64,6 @@
63
64
  "@react-navigation/bottom-tabs": "^7.9.0",
64
65
  "@react-navigation/native": "^7.1.26",
65
66
  "@react-navigation/stack": "^7.6.13",
66
- "@sentry/react-native": "^7.8.0",
67
- "@sentry/types": "^10.32.1",
68
67
  "@tanstack/react-query": "^5.0.0",
69
68
  "@types/node": "^20.0.0",
70
69
  "@types/react": "~19.1.0",
@@ -75,7 +74,6 @@
75
74
  "@umituz/react-native-firebase": "^1.13.32",
76
75
  "@umituz/react-native-haptics": "*",
77
76
  "@umituz/react-native-localization": "*",
78
- "@umituz/react-native-sentry": "*",
79
77
  "@umituz/react-native-storage": "*",
80
78
  "@umituz/react-native-tanstack": "*",
81
79
  "@umituz/react-native-uuid": "*",
@@ -1,27 +1,24 @@
1
- import {
2
- trackPackageError as sentryTrack,
3
- addPackageBreadcrumb as sentryBreadcrumb
1
+ /**
2
+ * Simple tracker for auth operations
3
+ * Removed Sentry dependency
4
+ */
4
5
 
5
6
  export const authTracker = {
6
7
  logOperationStarted: (operation: string, data?: Record<string, unknown>) => {
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-call
8
- (sentryBreadcrumb as any)("auth", `${operation} started`, data);
8
+ if (__DEV__) {
9
+ console.log(`[Auth] ${operation} started`, data);
10
+ }
9
11
  },
10
12
 
11
13
  logOperationSuccess: (operation: string, data?: Record<string, unknown>) => {
12
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-call
13
- (sentryBreadcrumb as any)("auth", `${operation} successful`, data);
14
+ if (__DEV__) {
15
+ console.log(`[Auth] ${operation} successful`, data);
16
+ }
14
17
  },
15
18
 
16
19
  logOperationError: (operation: string, error: unknown, metadata?: Record<string, unknown>) => {
17
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-call
18
- (sentryTrack as any)(
19
- error instanceof Error ? error : new Error(`${operation} failed`),
20
- {
21
- packageName: "auth",
22
- operation,
23
- ...metadata,
24
- }
25
- );
20
+ if (__DEV__) {
21
+ console.error(`[Auth] ${operation} failed`, { error, ...metadata });
22
+ }
26
23
  }
27
24
  };
@@ -1,54 +0,0 @@
1
- /**
2
- * Type declarations for external dependencies that might not have types
3
- * or where package resolution is failing in the current environment.
4
- */
5
-
6
- /* eslint-disable @typescript-eslint/no-explicit-any */
7
- /* eslint-disable @typescript-eslint/no-unused-vars */
8
-
9
- import React from 'react';
10
-
11
- declare module 'expo-device';
12
- declare module 'expo-application';
13
- declare module '@umituz/react-native-uuid';
14
- declare module 'rn-emoji-keyboard';
15
- declare module '@react-navigation/bottom-tabs';
16
- declare module '@umituz/react-native-haptics';
17
- declare module 'expo-clipboard';
18
- declare module 'expo-sharing';
19
- declare module 'expo-file-system/build/legacy';
20
- declare module '@umituz/react-native-design-system-theme';
21
- declare module '@sentry/react-native';
22
- declare module '@sentry/types';
23
-
24
- declare module 'react-native-safe-area-context' {
25
- export function useSafeAreaInsets(): {
26
- top: number;
27
- bottom: number;
28
- left: number;
29
- right: number;
30
- };
31
- }
32
-
33
- declare module 'expo-linear-gradient' {
34
- export const LinearGradient: React.ComponentType<any>;
35
- }
36
-
37
- declare module '@react-navigation/stack' {
38
- export function createStackNavigator<T = any>(): {
39
- Navigator: React.ComponentType<any>;
40
- Screen: React.ComponentType<any>;
41
- };
42
- export type StackNavigationProp<T = any> = any;
43
- export type StackScreenProps<T = any, K = any> = any;
44
- }
45
-
46
- declare module '@react-navigation/native' {
47
- export function useNavigation<T = any>(): T;
48
- export function useFocusEffect(effect: () => void | (() => void)): void;
49
- export type NavigationProp<T = any> = {
50
- navigate: (name: string, params?: any) => void;
51
- goBack: () => void;
52
- reset: (state: any) => void;
53
- };
54
- }