@launchdarkly/react-native-client-sdk 10.4.0 → 10.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * 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)
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @launchdarkly/js-client-sdk-common bumped from 1.3.0 to 1.4.0
16
+
3
17
  ## [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
18
 
5
19
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchdarkly/react-native-client-sdk",
3
- "version": "10.4.0",
3
+ "version": "10.5.0",
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.3.0",
46
+ "@launchdarkly/js-client-sdk-common": "1.4.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,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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,SAAS,MAAM,aAAa,CAAC;AAIpC,cAAc,oCAAoC,CAAC;AAEnD,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC"}
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';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAGxD,aAAa,EAAE,CAAC;AAEhB,cAAc,oCAAoC,CAAC;AAEnD,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAA0B,CAAC"}
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
- declare function setupPolyfill(): void;
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":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnD,iBAAS,aAAa,SAKrB;AACD,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC"}
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
- import CustomEvent from './CustomEvent';
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,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAe,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,SAAS,aAAa;IACpB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;QACpB,WAAW;QACX,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AACD,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAe,aAAa,EAAE,MAAM,EAAE,CAAC"}
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.4.0",
3
+ "version": "10.5.0",
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.3.0",
46
+ "@launchdarkly/js-client-sdk-common": "1.4.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"}