File tree 3 files changed +28
-2
lines changed
3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1
1
# jsonld ChangeLog
2
2
3
+ ## 8.3.0 -
4
+ ### Added
5
+ - Add ` "react-native" ` section to ` package.json ` and instructions on using
6
+ React Native in the README.
7
+
3
8
## 8.2.0 - 2023-05-19
4
9
5
10
### Changed
Original file line number Diff line number Diff line change @@ -364,6 +364,17 @@ The `safe` options flag set to `true` enables this behavior:
364
364
const expanded = await jsonld .expand (data, {safe: true });
365
365
```
366
366
367
+ ### Using with React Native
368
+
369
+ Using this library with React Native requires the
370
+ [ ` data-integrity-rn ` ] ( https://github.com/digitalcredentials/data-integrity-rn )
371
+ polyfill to be imported before this library:
372
+
373
+ ``` js
374
+ import ' @digitalcredentials/data-integrity-rn' ;
375
+ import * as jsonld from ' jsonld' ;
376
+ ```
377
+
367
378
Tests
368
379
-----
369
380
Original file line number Diff line number Diff line change 29
29
" lib/**/*.js"
30
30
],
31
31
"dependencies" : {
32
- "@digitalbazaar/http-client" : " ^3.4.1 " ,
32
+ "@digitalbazaar/http-client" : " digitalcredentials/http-client#react-native " ,
33
33
"canonicalize" : " ^1.0.1" ,
34
34
"lru-cache" : " ^6.0.0" ,
35
- "rdf-canonize" : " ^3.4.0 "
35
+ "rdf-canonize" : " digitalcredentials/rdf-canonize#react-native "
36
36
},
37
37
"devDependencies" : {
38
38
"@babel/core" : " ^7.21.8" ,
122
122
"request" : false ,
123
123
"url" : false ,
124
124
"util" : false
125
+ },
126
+ "react-native" : {
127
+ "./lib/index.js" : " ./lib/jsonld.js" ,
128
+ "./lib/platform.js" : " ./lib/platform-browser.js" ,
129
+ "crypto" : false ,
130
+ "http" : false ,
131
+ "jsonld-request" : false ,
132
+ "request" : false ,
133
+ "url" : false ,
134
+ "util" : false
125
135
}
126
136
}
You can’t perform that action at this time.
0 commit comments