@allstak/react-native 0.1.3 → 0.3.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@allstak/react-native",
3
- "version": "0.1.3",
4
- "description": "AllStak React Native SDK — ErrorUtils + Hermes rejection tracking + device tags. Depends on @allstak-io/core. Native Android/iOS crash capture modules in ./native.",
3
+ "version": "0.3.1",
4
+ "description": "AllStak React Native SDK — standalone error tracking, breadcrumbs, network capture, and ErrorUtils + Hermes rejection hooks. No browser or Node dependencies. Native Android/iOS crash modules in ./native.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -10,11 +10,20 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.mjs",
12
12
  "require": "./dist/index.js"
13
+ },
14
+ "./sourcemaps": {
15
+ "types": "./dist/build/sourcemaps.d.ts",
16
+ "import": "./dist/build/sourcemaps.mjs",
17
+ "require": "./dist/build/sourcemaps.js"
13
18
  }
14
19
  },
15
20
  "files": [
16
21
  "dist",
17
22
  "native",
23
+ "build-hooks",
24
+ "react-native.config.js",
25
+ "app.plugin.js",
26
+ "AllStakRN.podspec",
18
27
  "README.md",
19
28
  "LICENSE"
20
29
  ],
@@ -32,29 +41,35 @@
32
41
  "observability",
33
42
  "react-native",
34
43
  "mobile",
35
- "error-tracking"
44
+ "error-tracking",
45
+ "apm"
36
46
  ],
37
47
  "publishConfig": {
38
48
  "access": "public",
39
49
  "registry": "https://registry.npmjs.org/"
40
50
  },
41
51
  "scripts": {
42
- "build": "tsup src/index.ts --format esm,cjs --dts --clean --sourcemap --platform browser --external react-native",
43
- "typecheck": "tsc --noEmit"
52
+ "build": "tsup src/index.ts src/expo-plugin.ts --format esm,cjs --dts --clean --sourcemap --platform neutral --no-shims --external react --external react-native --external @react-navigation/native --external promise/setimmediate/rejection-tracking && tsup src/build/sourcemaps.ts --format esm,cjs --dts --sourcemap --platform node --out-dir dist/build && node scripts/post-build.mjs",
53
+ "typecheck": "tsc --noEmit",
54
+ "test": "node --test --test-concurrency=1 test/*.test.mjs"
44
55
  },
45
56
  "peerDependencies": {
57
+ "react": ">=16.8.0",
46
58
  "react-native": ">=0.70"
47
59
  },
48
60
  "peerDependenciesMeta": {
61
+ "react": {
62
+ "optional": false
63
+ },
49
64
  "react-native": {
50
65
  "optional": true
51
66
  }
52
67
  },
53
- "dependencies": {
54
- "@allstak/core": "^0.1.3",
55
- "@allstak/js": "^0.1.3"
56
- },
57
68
  "devDependencies": {
69
+ "@types/node": "^25.6.0",
70
+ "@types/react": "^18.3.28",
71
+ "react": "^18.3.1",
72
+ "react-test-renderer": "^18.3.1",
58
73
  "tsup": "^8.0.0",
59
74
  "typescript": "^5.3.0"
60
75
  }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * React Native autolinking config.
3
+ *
4
+ * Tells the RN CLI (>= 0.60) where to find the native iOS / Android crash
5
+ * modules that ship under ./native. With this in place, consumers no
6
+ * longer have to hand-edit Podfile or settings.gradle — `npx pod-install`
7
+ * (iOS) and a Gradle sync (Android) wire AllStakRNModule and
8
+ * AllStakCrashHandler into the host app automatically.
9
+ *
10
+ * iOS: the podspec lives at `native/ios/AllStakRN.podspec` (added in the
11
+ * same change). Android: the project's build.gradle and AndroidManifest.xml
12
+ * under `native/android/` follow the standard RN module layout the CLI
13
+ * expects.
14
+ */
15
+ module.exports = {
16
+ dependency: {
17
+ platforms: {
18
+ ios: {
19
+ podspecPath: require('node:path').resolve(__dirname, 'native/ios/AllStakRN.podspec'),
20
+ },
21
+ android: {
22
+ sourceDir: './native/android',
23
+ packageImportPath: 'import io.allstak.rn.AllStakRNPackage;',
24
+ packageInstance: 'new AllStakRNPackage()',
25
+ },
26
+ },
27
+ },
28
+ };