@launchdarkly/js-sdk-common 2.6.0 → 2.7.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
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to `@launchdarkly/js-sdk-common` will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## [2.7.0](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.6.0...js-sdk-common-v2.7.0) (2024-08-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * Correct client evaluation typings. ([#554](https://github.com/launchdarkly/js-core/issues/554)) ([64ab88d](https://github.com/launchdarkly/js-core/commit/64ab88d278308564b4cd7b6433870c7adb09142a))
11
+
5
12
  ## [2.6.0](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.5.0...js-sdk-common-v2.6.0) (2024-08-12)
6
13
 
7
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"LDEvaluationDetail.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB,CAAC,KAAK;IAC5C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
1
+ {"version":3,"file":"LDEvaluationDetail.d.ts","sourceRoot":"","sources":["../../../src/api/data/LDEvaluationDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB,CAAC,KAAK;IAC5C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
@@ -1,5 +1,4 @@
1
1
  import ErrorKinds from './ErrorKinds';
2
- import { createErrorEvaluationDetail, createSuccessEvaluationDetail } from './evaluationDetail';
3
2
  import EventFactoryBase, { EvalEventArgs } from './EventFactoryBase';
4
- export { createSuccessEvaluationDetail, createErrorEvaluationDetail, ErrorKinds, EvalEventArgs, EventFactoryBase, };
3
+ export { ErrorKinds, EvalEventArgs, EventFactoryBase };
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/evaluation/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAChG,OAAO,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,UAAU,EACV,aAAa,EACb,gBAAgB,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/evaluation/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventFactoryBase = exports.ErrorKinds = exports.createErrorEvaluationDetail = exports.createSuccessEvaluationDetail = void 0;
3
+ exports.EventFactoryBase = exports.ErrorKinds = void 0;
4
4
  const ErrorKinds_1 = require("./ErrorKinds");
5
5
  exports.ErrorKinds = ErrorKinds_1.default;
6
- const evaluationDetail_1 = require("./evaluationDetail");
7
- Object.defineProperty(exports, "createErrorEvaluationDetail", { enumerable: true, get: function () { return evaluationDetail_1.createErrorEvaluationDetail; } });
8
- Object.defineProperty(exports, "createSuccessEvaluationDetail", { enumerable: true, get: function () { return evaluationDetail_1.createSuccessEvaluationDetail; } });
9
6
  const EventFactoryBase_1 = require("./EventFactoryBase");
10
7
  exports.EventFactoryBase = EventFactoryBase_1.default;
11
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/internal/evaluation/index.ts"],"names":[],"mappings":";;;AAAA,6CAAsC;AAOpC,qBAPK,oBAAU,CAOL;AANZ,yDAAgG;AAK9F,4GALO,8CAA2B,OAKP;AAD3B,8GAJoC,gDAA6B,OAIpC;AAH/B,yDAAqE;AAOnE,2BAPK,0BAAgB,CAOL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/internal/evaluation/index.ts"],"names":[],"mappings":";;;AAAA,6CAAsC;AAG7B,qBAHF,oBAAU,CAGE;AAFnB,yDAAqE;AAEjC,2BAF7B,0BAAgB,CAE6B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchdarkly/js-sdk-common",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,16 +0,0 @@
1
- import { LDEvaluationReason, LDFlagValue } from '../../api';
2
- import ErrorKinds from './ErrorKinds';
3
- export declare const createErrorEvaluationDetail: (errorKind: ErrorKinds, def?: LDFlagValue) => {
4
- value: any;
5
- variationIndex: null;
6
- reason: {
7
- kind: string;
8
- errorKind: ErrorKinds;
9
- };
10
- };
11
- export declare const createSuccessEvaluationDetail: (value: LDFlagValue, variationIndex?: number, reason?: LDEvaluationReason) => {
12
- value: any;
13
- variationIndex: number | null;
14
- reason: LDEvaluationReason | null;
15
- };
16
- //# sourceMappingURL=evaluationDetail.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluationDetail.d.ts","sourceRoot":"","sources":["../../../src/internal/evaluation/evaluationDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAO,MAAM,2BAA2B,cAAe,UAAU,QAAQ,WAAW;;;;;;;CAIlF,CAAC;AAEH,eAAO,MAAM,6BAA6B,UACjC,WAAW,mBACD,MAAM,WACd,kBAAkB;;;;CAK3B,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSuccessEvaluationDetail = exports.createErrorEvaluationDetail = void 0;
4
- const createErrorEvaluationDetail = (errorKind, def) => ({
5
- value: def !== null && def !== void 0 ? def : null,
6
- variationIndex: null,
7
- reason: { kind: 'ERROR', errorKind },
8
- });
9
- exports.createErrorEvaluationDetail = createErrorEvaluationDetail;
10
- const createSuccessEvaluationDetail = (value, variationIndex, reason) => ({
11
- value,
12
- variationIndex: variationIndex !== null && variationIndex !== void 0 ? variationIndex : null,
13
- reason: reason !== null && reason !== void 0 ? reason : null,
14
- });
15
- exports.createSuccessEvaluationDetail = createSuccessEvaluationDetail;
16
- //# sourceMappingURL=evaluationDetail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluationDetail.js","sourceRoot":"","sources":["../../../src/internal/evaluation/evaluationDetail.ts"],"names":[],"mappings":";;;AAGO,MAAM,2BAA2B,GAAG,CAAC,SAAqB,EAAE,GAAiB,EAAE,EAAE,CAAC,CAAC;IACxF,KAAK,EAAE,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC;AAJU,QAAA,2BAA2B,+BAIrC;AAEI,MAAM,6BAA6B,GAAG,CAC3C,KAAkB,EAClB,cAAuB,EACvB,MAA2B,EAC3B,EAAE,CAAC,CAAC;IACJ,KAAK;IACL,cAAc,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,IAAI;IACtC,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI;CACvB,CAAC,CAAC;AARU,QAAA,6BAA6B,iCAQvC"}