@mushi-mushi/react-native 0.17.0 → 0.18.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/CHANGELOG.md CHANGED
@@ -1,10 +1,22 @@
1
1
  # @mushi-mushi/react-native
2
2
 
3
- ## 0.17.0
3
+ ## 0.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8516682: Dependency housekeeping — runtime major-version bumps.
8
+
9
+ - **inventory-schema**: migrate to **Zod 4** (`zod@^4.4.3`), aligning with `@mushi-mushi/mcp` and `@mushi-mushi/agents`, which were already on v4. The public API is unchanged; the validation-issue path formatter now handles Zod 4's widened `PropertyKey[]` issue paths.
10
+ - **cli**: bump `commander` to **v15** (ESM-only; the CLI is already pure ESM, so the change is transparent to consumers).
11
+ - **mcp-ci**: bump `@actions/core` to **v3** (ESM-only, Node 24-ready; bundled via tsup).
12
+ - **react-native**: build and test against **react-native 0.86**. `StyleSheet.absoluteFillObject` was dropped from RN 0.86's TypeScript types, so the backdrop style now inlines the equivalent absolute-fill literal — runtime behavior is identical and it compiles against all supported `react-native >= 0.72`.
13
+
14
+ ## 0.18.0
4
15
 
5
16
  ### Minor Changes
6
17
 
7
- - 94e93e8: Report payload + identity parity with the web SDK, and a web-parity bottom sheet.
18
+ - 679b158: Report payload + identity parity with the web SDK, and a web-parity bottom sheet.
19
+
8
20
  - **Reporter identity (fixes anonymous-token reporter):** `submitReport` now emits nested `metadata.user = { id, email, name, provider }` — the shape the server's `resolveEndUser()` reads — while keeping the flat `userId/userEmail/userName` keys for back-compat. Adds a `setUser()` alias next to `identify()`.
9
21
  - **Sentry-level payload:** every report now carries a per-launch `sessionId`, `sdkPackage`/`sdkVersion`/`appVersion`, a device `fingerprintHash`, and a 50-entry breadcrumb ring buffer that is also sent as a derived repro `timeline` (so the admin "Repro timeline" renders instead of nudging "Upgrade the SDK"). New `addBreadcrumb()` method; `setScreen()` auto-adds a navigation breadcrumb.
10
22
  - **Screenshots:** new `capture.screenshot` config flag (default on) gating the optional `react-native-view-shot` capture; documented masking guidance for sensitive screens.
@@ -12,8 +24,15 @@
12
24
 
13
25
  ### Patch Changes
14
26
 
15
- - Updated dependencies [94e93e8]
16
- - @mushi-mushi/core@1.16.0
27
+ - Dependency housekeeping — runtime major-version bumps.
28
+
29
+ - **inventory-schema**: migrate to **Zod 4** (`zod@^4.4.3`), aligning with `@mushi-mushi/mcp` and `@mushi-mushi/agents`, which were already on v4. The public API is unchanged; the validation-issue path formatter now handles Zod 4's widened `PropertyKey[]` issue paths.
30
+ - **cli**: bump `commander` to **v15** (now ESM-only; the CLI is already pure ESM, so the change is transparent to consumers).
31
+ - **mcp-ci**: bump `@actions/core` to **v3** (ESM-only, Node 24-ready; bundled via tsup).
32
+ - **react-native**: build and test against **react-native 0.86**. `StyleSheet.absoluteFillObject` was dropped from RN 0.86's TypeScript types, so the backdrop style now inlines the equivalent absolute-fill literal — runtime behavior is identical and it compiles against all supported `react-native >= 0.72`.
33
+
34
+ - Updated dependencies [679b158]
35
+ - @mushi-mushi/core@1.17.0
17
36
 
18
37
  ## 0.16.0
19
38
 
package/dist/index.cjs CHANGED
@@ -697,7 +697,13 @@ var MushiBottomSheet = ({
697
697
  var s = import_react_native2.StyleSheet.create({
698
698
  flex: { flex: 1 },
699
699
  backdrop: {
700
- ...import_react_native2.StyleSheet.absoluteFillObject
700
+ // Inlined StyleSheet.absoluteFillObject — RN 0.86 dropped it from the
701
+ // StyleSheet TS types; the literal is equivalent and works on all RN >=0.72.
702
+ position: "absolute",
703
+ top: 0,
704
+ left: 0,
705
+ right: 0,
706
+ bottom: 0
701
707
  },
702
708
  sheet: {
703
709
  position: "absolute",
@@ -1074,7 +1080,7 @@ var s2 = import_react_native3.StyleSheet.create({
1074
1080
 
1075
1081
  // src/version.ts
1076
1082
  var MUSHI_SDK_PACKAGE = "@mushi-mushi/react-native";
1077
- var MUSHI_SDK_VERSION = "0.17.0" ? "0.17.0" : "0.17.0";
1083
+ var MUSHI_SDK_VERSION = "0.18.1" ? "0.18.1" : "0.17.0";
1078
1084
 
1079
1085
  // src/provider.tsx
1080
1086
  var import_jsx_runtime3 = require("react/jsx-runtime");
@@ -1152,7 +1158,9 @@ function MushiProvider({ children, config: configProp, ...barePropConfig }) {
1152
1158
  projectId: config.projectId,
1153
1159
  apiKey: config.apiKey,
1154
1160
  apiEndpoint,
1155
- getUserToken: () => userTokenRef.current
1161
+ getUserToken: () => userTokenRef.current,
1162
+ sdkPackage: MUSHI_SDK_PACKAGE,
1163
+ sdkVersion: MUSHI_SDK_VERSION
1156
1164
  });
1157
1165
  queueRef.current = new AsyncStorageQueue({
1158
1166
  maxSize: config.storage?.maxQueueSize,
package/dist/index.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import { ReactNode, FC, ReactElement } from 'react';
4
3
  import { MushiRewardsConfig, MushiPageContext, MushiBreadcrumb, MushiReporterReport, MushiReporterComment, MushiHallOfFameEntry, MushiTierResult, MushiReputationResult } from '@mushi-mushi/core';
@@ -170,7 +169,7 @@ interface MushiRNInstance {
170
169
  declare function MushiProvider({ children, config: configProp, ...barePropConfig }: MushiRNConfig & {
171
170
  children: ReactNode;
172
171
  config?: Partial<MushiRNConfig>;
173
- }): react_jsx_runtime.JSX.Element;
172
+ }): react.JSX.Element;
174
173
 
175
174
  declare function useMushi(): MushiRNInstance | null;
176
175
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import { ReactNode, FC, ReactElement } from 'react';
4
3
  import { MushiRewardsConfig, MushiPageContext, MushiBreadcrumb, MushiReporterReport, MushiReporterComment, MushiHallOfFameEntry, MushiTierResult, MushiReputationResult } from '@mushi-mushi/core';
@@ -170,7 +169,7 @@ interface MushiRNInstance {
170
169
  declare function MushiProvider({ children, config: configProp, ...barePropConfig }: MushiRNConfig & {
171
170
  children: ReactNode;
172
171
  config?: Partial<MushiRNConfig>;
173
- }): react_jsx_runtime.JSX.Element;
172
+ }): react.JSX.Element;
174
173
 
175
174
  declare function useMushi(): MushiRNInstance | null;
176
175
 
package/dist/index.js CHANGED
@@ -691,7 +691,13 @@ var MushiBottomSheet = ({
691
691
  var s = StyleSheet.create({
692
692
  flex: { flex: 1 },
693
693
  backdrop: {
694
- ...StyleSheet.absoluteFillObject
694
+ // Inlined StyleSheet.absoluteFillObject — RN 0.86 dropped it from the
695
+ // StyleSheet TS types; the literal is equivalent and works on all RN >=0.72.
696
+ position: "absolute",
697
+ top: 0,
698
+ left: 0,
699
+ right: 0,
700
+ bottom: 0
695
701
  },
696
702
  sheet: {
697
703
  position: "absolute",
@@ -1075,7 +1081,7 @@ var s2 = StyleSheet2.create({
1075
1081
 
1076
1082
  // src/version.ts
1077
1083
  var MUSHI_SDK_PACKAGE = "@mushi-mushi/react-native";
1078
- var MUSHI_SDK_VERSION = "0.17.0" ? "0.17.0" : "0.17.0";
1084
+ var MUSHI_SDK_VERSION = "0.18.1" ? "0.18.1" : "0.17.0";
1079
1085
 
1080
1086
  // src/provider.tsx
1081
1087
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -1153,7 +1159,9 @@ function MushiProvider({ children, config: configProp, ...barePropConfig }) {
1153
1159
  projectId: config.projectId,
1154
1160
  apiKey: config.apiKey,
1155
1161
  apiEndpoint,
1156
- getUserToken: () => userTokenRef.current
1162
+ getUserToken: () => userTokenRef.current,
1163
+ sdkPackage: MUSHI_SDK_PACKAGE,
1164
+ sdkVersion: MUSHI_SDK_VERSION
1157
1165
  });
1158
1166
  queueRef.current = new AsyncStorageQueue({
1159
1167
  maxSize: config.storage?.maxQueueSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mushi-mushi/react-native",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "license": "MIT",
5
5
  "description": "React Native SDK for Mushi Mushi — shake-to-report, bottom sheet widget, full context capture",
6
6
  "main": "./dist/index.cjs",
@@ -33,15 +33,15 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@mushi-mushi/core": "^1.16.0"
36
+ "@mushi-mushi/core": "^1.17.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/react": "^19.2.14",
40
- "react": "^19.2.5",
41
- "react-native": "^0.79.7",
39
+ "@types/react": "^19.2.17",
40
+ "react": "^19.2.7",
41
+ "react-native": "^0.86.0",
42
42
  "tsup": "^8.5.1",
43
43
  "typescript": "^6.0.3",
44
- "vitest": "^4.1.5"
44
+ "vitest": "^4.1.8"
45
45
  },
46
46
  "author": "Kenji Sakuramoto",
47
47
  "repository": {