@supashiphq/react-sdk 0.7.16 → 0.8.0

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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -32,7 +32,7 @@ function App() {
32
32
  environment: 'production',
33
33
  features,
34
34
  context: {
35
- userID: '123',
35
+ userId: '123',
36
36
  email: 'user@example.com',
37
37
  },
38
38
  }}
@@ -129,10 +129,12 @@ const config = {
129
129
  }),
130
130
  context: {
131
131
  // Optional: targeting context
132
- userID: 'user-123',
132
+ userId: 'user-123',
133
133
  email: 'user@example.com',
134
134
  plan: 'premium',
135
135
  },
136
+ // Hash sensitive context properties such as PII on the client before sending to Edge
137
+ sensitiveContextProperties: ['email', 'userID'],
136
138
  networkConfig: {
137
139
  // Optional: network settings
138
140
  featuresAPIUrl: 'https://api.supashiphq.com/features',
@@ -146,6 +148,8 @@ const config = {
146
148
  }
147
149
  ```
148
150
 
151
+ > Privacy note: set `sensitiveContextProperties` to hash PII/sensitive context property values on the client before requests are sent to the Edge API.
152
+
149
153
  **Supported Feature Value Types:**
150
154
 
151
155
  | Type | Example | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supashiphq/react-sdk",
3
- "version": "0.7.16",
3
+ "version": "0.8.0",
4
4
  "description": "Supaship SDK for React",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -39,7 +39,7 @@
39
39
  "react-dom": ">=16.8.0"
40
40
  },
41
41
  "dependencies": {
42
- "@supashiphq/javascript-sdk": "^0.7.16"
42
+ "@supashiphq/javascript-sdk": "^0.8.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@jest/globals": "^30.0.0",