@launchdarkly/react-native-client-sdk 10.4.0 → 10.5.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 +23 -0
- package/dist/package.json +3 -4
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/polyfills/index.d.ts +1 -2
- package/dist/src/polyfills/index.d.ts.map +1 -1
- package/dist/src/polyfills/index.js +1 -9
- package/dist/src/polyfills/index.js.map +1 -1
- package/package.json +3 -4
- package/dist/src/polyfills/CustomEvent.d.ts +0 -17
- package/dist/src/polyfills/CustomEvent.d.ts.map +0 -1
- package/dist/src/polyfills/CustomEvent.js +0 -13
- package/dist/src/polyfills/CustomEvent.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [10.5.1](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.5.0...react-native-client-sdk-v10.5.1) (2024-08-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @launchdarkly/js-client-sdk-common bumped from 1.4.0 to 1.5.0
|
|
11
|
+
|
|
12
|
+
## [10.5.0](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.4.0...react-native-client-sdk-v10.5.0) (2024-08-15)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Remove event target shim. ([#545](https://github.com/launchdarkly/js-core/issues/545)) ([448ad67](https://github.com/launchdarkly/js-core/commit/448ad67815b9ec29abd322ed8483b2367147b146)), closes [#412](https://github.com/launchdarkly/js-core/issues/412)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
* The following workspace dependencies were updated
|
|
23
|
+
* dependencies
|
|
24
|
+
* @launchdarkly/js-client-sdk-common bumped from 1.3.0 to 1.4.0
|
|
25
|
+
|
|
3
26
|
## [10.4.0](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.3.1...react-native-client-sdk-v10.4.0) (2024-08-12)
|
|
4
27
|
|
|
5
28
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@launchdarkly/react-native-client-sdk",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.1",
|
|
4
4
|
"description": "React Native LaunchDarkly SDK",
|
|
5
5
|
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/react-native",
|
|
6
6
|
"repository": {
|
|
@@ -43,10 +43,9 @@
|
|
|
43
43
|
"react-native": "*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@launchdarkly/js-client-sdk-common": "1.
|
|
46
|
+
"@launchdarkly/js-client-sdk-common": "1.5.0",
|
|
47
47
|
"@react-native-async-storage/async-storage": "^1.21.0",
|
|
48
|
-
"base64-js": "^1.5.1"
|
|
49
|
-
"event-target-shim": "^6.0.2"
|
|
48
|
+
"base64-js": "^1.5.1"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"@launchdarkly/private-js-mocks": "0.0.1",
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the API reference for the React Native LaunchDarkly SDK.
|
|
3
|
+
*
|
|
4
|
+
* For more information, see the SDK reference guide.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
1
8
|
import ReactNativeLDClient from './ReactNativeLDClient';
|
|
2
9
|
import RNOptions from './RNOptions';
|
|
3
10
|
export * from '@launchdarkly/js-client-sdk-common';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,cAAc,oCAAoC,CAAC;AAEnD,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
*/
|
|
8
|
-
import { setupPolyfill } from './polyfills';
|
|
9
8
|
import ReactNativeLDClient from './ReactNativeLDClient';
|
|
10
|
-
setupPolyfill();
|
|
11
9
|
export * from '@launchdarkly/js-client-sdk-common';
|
|
12
10
|
export * from './hooks';
|
|
13
11
|
export * from './provider';
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAGxD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAA0B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Hasher, sha256 } from '../fromExternal/js-sha256';
|
|
2
2
|
import { base64FromByteArray, btoa } from './btoa';
|
|
3
|
-
|
|
4
|
-
export { base64FromByteArray, btoa, type Hasher, setupPolyfill, sha256 };
|
|
3
|
+
export { base64FromByteArray, btoa, type Hasher, sha256 };
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/polyfills/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/polyfills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import EventTarget from 'event-target-shim';
|
|
2
1
|
import { sha256 } from '../fromExternal/js-sha256';
|
|
3
2
|
import { base64FromByteArray, btoa } from './btoa';
|
|
4
|
-
|
|
5
|
-
function setupPolyfill() {
|
|
6
|
-
Object.assign(global, {
|
|
7
|
-
EventTarget,
|
|
8
|
-
CustomEvent,
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export { base64FromByteArray, btoa, setupPolyfill, sha256 };
|
|
3
|
+
export { base64FromByteArray, btoa, sha256 };
|
|
12
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/polyfills/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/polyfills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAe,MAAM,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@launchdarkly/react-native-client-sdk",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.1",
|
|
4
4
|
"description": "React Native LaunchDarkly SDK",
|
|
5
5
|
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/react-native",
|
|
6
6
|
"repository": {
|
|
@@ -43,10 +43,9 @@
|
|
|
43
43
|
"react-native": "*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@launchdarkly/js-client-sdk-common": "1.
|
|
46
|
+
"@launchdarkly/js-client-sdk-common": "1.5.0",
|
|
47
47
|
"@react-native-async-storage/async-storage": "^1.21.0",
|
|
48
|
-
"base64-js": "^1.5.1"
|
|
49
|
-
"event-target-shim": "^6.0.2"
|
|
48
|
+
"base64-js": "^1.5.1"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"@launchdarkly/private-js-mocks": "0.0.1",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ripped from:
|
|
3
|
-
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Events/CustomEvent.js#L21
|
|
4
|
-
*/
|
|
5
|
-
import { Event } from 'event-target-shim/es5';
|
|
6
|
-
type CustomEventOptions = {
|
|
7
|
-
bubbles?: boolean;
|
|
8
|
-
cancelable?: boolean;
|
|
9
|
-
composed?: boolean;
|
|
10
|
-
detail?: any;
|
|
11
|
-
};
|
|
12
|
-
export default class CustomEvent extends Event {
|
|
13
|
-
detail: any;
|
|
14
|
-
constructor(typeArg: string, options: CustomEventOptions);
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=CustomEvent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomEvent.d.ts","sourceRoot":"","sources":["../../../src/polyfills/CustomEvent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,KAAK,kBAAkB,GAAG;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK;IAC5C,MAAM,EAAE,GAAG,CAAC;gBAEA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB;CAMzD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ripped from:
|
|
3
|
-
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Events/CustomEvent.js#L21
|
|
4
|
-
*/
|
|
5
|
-
import { Event } from 'event-target-shim/es5';
|
|
6
|
-
export default class CustomEvent extends Event {
|
|
7
|
-
constructor(typeArg, options) {
|
|
8
|
-
const { bubbles, cancelable, composed, detail } = options;
|
|
9
|
-
super(typeArg, { bubbles, cancelable, composed });
|
|
10
|
-
this.detail = detail; // this would correspond to `NativeEvent` in SyntheticEvent
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=CustomEvent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomEvent.js","sourceRoot":"","sources":["../../../src/polyfills/CustomEvent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAS9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK;IAG5C,YAAY,OAAe,EAAE,OAA2B;QACtD,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;QAC1D,KAAK,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC;QAElD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,2DAA2D;IACnF,CAAC;CACF"}
|