@supashiphq/react-sdk 0.7.17 → 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.
- package/README.md +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -133,6 +133,8 @@ const config = {
|
|
|
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.
|
|
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.
|
|
42
|
+
"@supashiphq/javascript-sdk": "^0.8.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@jest/globals": "^30.0.0",
|