@eskea/super-app-sdk 1.0.1 → 1.0.3

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.
@@ -13,11 +13,11 @@
13
13
  },
14
14
  "react-native-safe-area-context": {
15
15
  "name": "react-native-safe-area-context",
16
- "version": "^5.6.2"
16
+ "version": "5.6.2"
17
17
  },
18
18
  "@bottom-tabs/react-navigation": {
19
19
  "name": "@bottom-tabs/react-navigation",
20
- "version": "^1.1.0"
20
+ "version": "1.1.0"
21
21
  },
22
22
  "@module-federation/enhanced": {
23
23
  "name": "@module-federation/enhanced",
@@ -26,34 +26,34 @@
26
26
  },
27
27
  "@react-navigation/native": {
28
28
  "name": "@react-navigation/native",
29
- "version": "^7.1.28"
29
+ "version": "7.1.28"
30
30
  },
31
31
  "@react-navigation/native-stack": {
32
32
  "name": "@react-navigation/native-stack",
33
- "version": "^7.11.0"
33
+ "version": "7.11.0"
34
34
  },
35
35
  "expo": {
36
36
  "name": "expo",
37
- "version": "^54.0.32"
37
+ "version": "54.0.32"
38
38
  },
39
39
  "expo-constants": {
40
40
  "name": "expo-constants",
41
- "version": "^18.0.13"
41
+ "version": "18.0.13"
42
42
  },
43
43
  "expo-linking": {
44
44
  "name": "expo-linking",
45
- "version": "~8.0.11"
45
+ "version": "8.0.11"
46
46
  },
47
47
  "expo-status-bar": {
48
48
  "name": "expo-status-bar",
49
- "version": "~3.0.9"
49
+ "version": "3.0.9"
50
50
  },
51
51
  "react-native-bottom-tabs": {
52
52
  "name": "react-native-bottom-tabs",
53
- "version": "^1.1.0"
53
+ "version": "1.1.0"
54
54
  },
55
55
  "react-native-screens": {
56
56
  "name": "react-native-screens",
57
- "version": "~4.16.0"
57
+ "version": "4.16.0"
58
58
  }
59
59
  }
package/lib/sharedDeps.js CHANGED
@@ -11,6 +11,18 @@ const getSharedDependencies = ({ eager = true }) => {
11
11
  const shared = Object.entries(dependencies)
12
12
  .filter(([dep, props]) => props.shared !== false)
13
13
  .map(([dep, { version }]) => {
14
+ // Special handling for react-native to ensure strict singleton
15
+ if (dep === "react-native" || dep === "react") {
16
+ return [
17
+ dep,
18
+ {
19
+ singleton: true,
20
+ eager,
21
+ requiredVersion: version,
22
+ strictVersion: true,
23
+ },
24
+ ];
25
+ }
14
26
  return [dep, { singleton: true, eager, requiredVersion: version }];
15
27
  });
16
28
  return Object.fromEntries(shared);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eskea/super-app-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Dependency management & utils for the Super App",
5
5
  "main": "index.js",
6
6
  "files": [