@launchdarkly/js-server-sdk-common-edge 2.6.8 → 2.6.10
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 +151 -84
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/api/EdgeFeatureStore.d.ts +1 -1
- package/dist/cjs/src/api/EdgeFeatureStore.d.ts.map +1 -1
- package/dist/cjs/src/api/EdgeFeatureStore.js +4 -1
- package/dist/cjs/src/api/EdgeFeatureStore.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/src/api/EdgeFeatureStore.d.ts +1 -1
- package/dist/esm/src/api/EdgeFeatureStore.d.ts.map +1 -1
- package/dist/esm/src/api/EdgeFeatureStore.js +5 -2
- package/dist/esm/src/api/EdgeFeatureStore.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,100 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* The following workspace dependencies were updated
|
|
6
|
-
* dependencies
|
|
7
|
-
* @launchdarkly/js-server-sdk-common bumped from 0.3.0 to 0.3.1
|
|
8
|
-
|
|
9
|
-
### Dependencies
|
|
3
|
+
## [2.6.10](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.6.9...js-server-sdk-common-edge-v2.6.10) (2025-12-05)
|
|
10
4
|
|
|
11
|
-
* The following workspace dependencies were updated
|
|
12
|
-
* dependencies
|
|
13
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.0.2 to 1.0.3
|
|
14
5
|
|
|
15
6
|
### Dependencies
|
|
16
7
|
|
|
17
8
|
* The following workspace dependencies were updated
|
|
18
9
|
* dependencies
|
|
19
|
-
* @launchdarkly/js-server-sdk-common bumped from
|
|
10
|
+
* @launchdarkly/js-server-sdk-common bumped from 2.16.2 to 2.17.0
|
|
20
11
|
|
|
21
|
-
|
|
12
|
+
## [2.6.9](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.6.8...js-server-sdk-common-edge-v2.6.9) (2025-08-29)
|
|
22
13
|
|
|
23
|
-
* The following workspace dependencies were updated
|
|
24
|
-
* dependencies
|
|
25
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.0.4 to 1.0.5
|
|
26
|
-
|
|
27
|
-
### Dependencies
|
|
28
|
-
|
|
29
|
-
* The following workspace dependencies were updated
|
|
30
|
-
* dependencies
|
|
31
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.0.5 to 1.0.6
|
|
32
|
-
|
|
33
|
-
### Dependencies
|
|
34
|
-
|
|
35
|
-
* The following workspace dependencies were updated
|
|
36
|
-
* dependencies
|
|
37
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.0.6 to 1.0.7
|
|
38
|
-
|
|
39
|
-
### Dependencies
|
|
40
|
-
|
|
41
|
-
* The following workspace dependencies were updated
|
|
42
|
-
* dependencies
|
|
43
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.0.8 to 1.1.0
|
|
44
|
-
|
|
45
|
-
### Dependencies
|
|
46
|
-
|
|
47
|
-
* The following workspace dependencies were updated
|
|
48
|
-
* dependencies
|
|
49
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.1.0 to 1.2.0
|
|
50
|
-
|
|
51
|
-
### Dependencies
|
|
52
|
-
|
|
53
|
-
* The following workspace dependencies were updated
|
|
54
|
-
* dependencies
|
|
55
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.2.0 to 1.2.1
|
|
56
|
-
|
|
57
|
-
### Dependencies
|
|
58
|
-
|
|
59
|
-
* The following workspace dependencies were updated
|
|
60
|
-
* dependencies
|
|
61
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.2.1 to 1.2.2
|
|
62
|
-
|
|
63
|
-
### Dependencies
|
|
64
14
|
|
|
65
|
-
|
|
66
|
-
* dependencies
|
|
67
|
-
* @launchdarkly/js-server-sdk-common bumped from 1.2.2 to 1.2.3
|
|
68
|
-
|
|
69
|
-
### Dependencies
|
|
70
|
-
|
|
71
|
-
* The following workspace dependencies were updated
|
|
72
|
-
* dependencies
|
|
73
|
-
* @launchdarkly/js-server-sdk-common bumped from 2.0.0 to 2.0.1
|
|
74
|
-
|
|
75
|
-
### Dependencies
|
|
76
|
-
|
|
77
|
-
* The following workspace dependencies were updated
|
|
78
|
-
* dependencies
|
|
79
|
-
* @launchdarkly/js-server-sdk-common bumped from 2.0.1 to 2.0.2
|
|
80
|
-
|
|
81
|
-
### Dependencies
|
|
82
|
-
|
|
83
|
-
* The following workspace dependencies were updated
|
|
84
|
-
* dependencies
|
|
85
|
-
* @launchdarkly/js-server-sdk-common bumped from 2.1.0 to 2.1.1
|
|
15
|
+
### Bug Fixes
|
|
86
16
|
|
|
87
|
-
|
|
17
|
+
* Improve serialization/deserialization overhead with EdgeFeatureStore ([#914](https://github.com/launchdarkly/js-core/issues/914)) ([76d614f](https://github.com/launchdarkly/js-core/commit/76d614f8b036750275cec90ac5b5d68322bf912e))
|
|
88
18
|
|
|
89
|
-
* The following workspace dependencies were updated
|
|
90
|
-
* dependencies
|
|
91
|
-
* @launchdarkly/js-server-sdk-common bumped from 2.1.1 to 2.1.2
|
|
92
19
|
|
|
93
20
|
### Dependencies
|
|
94
21
|
|
|
95
22
|
* The following workspace dependencies were updated
|
|
96
23
|
* dependencies
|
|
97
|
-
* @launchdarkly/js-server-sdk-common bumped from 2.
|
|
24
|
+
* @launchdarkly/js-server-sdk-common bumped from 2.16.1 to 2.16.2
|
|
98
25
|
|
|
99
26
|
## [2.6.8](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.6.7...js-server-sdk-common-edge-v2.6.8) (2025-07-23)
|
|
100
27
|
|
|
@@ -380,6 +307,15 @@
|
|
|
380
307
|
* dependencies
|
|
381
308
|
* @launchdarkly/js-server-sdk-common bumped from 2.2.2 to 2.2.3
|
|
382
309
|
|
|
310
|
+
## [2.2.2](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.2.1...js-server-sdk-common-edge-v2.2.2) (2024-03-25)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
### Dependencies
|
|
314
|
+
|
|
315
|
+
* The following workspace dependencies were updated
|
|
316
|
+
* dependencies
|
|
317
|
+
* @launchdarkly/js-server-sdk-common bumped from 2.2.1 to 2.2.2
|
|
318
|
+
|
|
383
319
|
## [2.2.1](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.2.0...js-server-sdk-common-edge-v2.2.1) (2024-03-15)
|
|
384
320
|
|
|
385
321
|
|
|
@@ -414,6 +350,24 @@
|
|
|
414
350
|
* dependencies
|
|
415
351
|
* @launchdarkly/js-server-sdk-common bumped from 2.1.2 to 2.1.3
|
|
416
352
|
|
|
353
|
+
## [2.1.2](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.1.1...js-server-sdk-common-edge-v2.1.2) (2023-12-27)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
### Dependencies
|
|
357
|
+
|
|
358
|
+
* The following workspace dependencies were updated
|
|
359
|
+
* dependencies
|
|
360
|
+
* @launchdarkly/js-server-sdk-common bumped from 2.1.1 to 2.1.2
|
|
361
|
+
|
|
362
|
+
## [2.1.1](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.1.0...js-server-sdk-common-edge-v2.1.1) (2023-12-04)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
### Dependencies
|
|
366
|
+
|
|
367
|
+
* The following workspace dependencies were updated
|
|
368
|
+
* dependencies
|
|
369
|
+
* @launchdarkly/js-server-sdk-common bumped from 2.1.0 to 2.1.1
|
|
370
|
+
|
|
417
371
|
## [2.1.0](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.0.2...js-server-sdk-common-edge-v2.1.0) (2023-11-14)
|
|
418
372
|
|
|
419
373
|
|
|
@@ -428,6 +382,24 @@
|
|
|
428
382
|
* dependencies
|
|
429
383
|
* @launchdarkly/js-server-sdk-common bumped from 2.0.2 to 2.1.0
|
|
430
384
|
|
|
385
|
+
## [2.0.2](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.0.1...js-server-sdk-common-edge-v2.0.2) (2023-11-01)
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
### Dependencies
|
|
389
|
+
|
|
390
|
+
* The following workspace dependencies were updated
|
|
391
|
+
* dependencies
|
|
392
|
+
* @launchdarkly/js-server-sdk-common bumped from 2.0.1 to 2.0.2
|
|
393
|
+
|
|
394
|
+
## [2.0.1](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v2.0.0...js-server-sdk-common-edge-v2.0.1) (2023-10-16)
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
### Dependencies
|
|
398
|
+
|
|
399
|
+
* The following workspace dependencies were updated
|
|
400
|
+
* dependencies
|
|
401
|
+
* @launchdarkly/js-server-sdk-common bumped from 2.0.0 to 2.0.1
|
|
402
|
+
|
|
431
403
|
## [2.0.0](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.13...js-server-sdk-common-edge-v2.0.0) (2023-10-16)
|
|
432
404
|
|
|
433
405
|
|
|
@@ -446,6 +418,51 @@
|
|
|
446
418
|
* dependencies
|
|
447
419
|
* @launchdarkly/js-server-sdk-common bumped from 1.2.3 to 2.0.0
|
|
448
420
|
|
|
421
|
+
## [1.0.13](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.12...js-server-sdk-common-edge-v1.0.13) (2023-09-06)
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
### Dependencies
|
|
425
|
+
|
|
426
|
+
* The following workspace dependencies were updated
|
|
427
|
+
* dependencies
|
|
428
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.2.2 to 1.2.3
|
|
429
|
+
|
|
430
|
+
## [1.0.12](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.11...js-server-sdk-common-edge-v1.0.12) (2023-08-28)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
### Dependencies
|
|
434
|
+
|
|
435
|
+
* The following workspace dependencies were updated
|
|
436
|
+
* dependencies
|
|
437
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.2.1 to 1.2.2
|
|
438
|
+
|
|
439
|
+
## [1.0.11](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.10...js-server-sdk-common-edge-v1.0.11) (2023-08-24)
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
### Dependencies
|
|
443
|
+
|
|
444
|
+
* The following workspace dependencies were updated
|
|
445
|
+
* dependencies
|
|
446
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.2.0 to 1.2.1
|
|
447
|
+
|
|
448
|
+
## [1.0.10](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.9...js-server-sdk-common-edge-v1.0.10) (2023-08-22)
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
### Dependencies
|
|
452
|
+
|
|
453
|
+
* The following workspace dependencies were updated
|
|
454
|
+
* dependencies
|
|
455
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.1.0 to 1.2.0
|
|
456
|
+
|
|
457
|
+
## [1.0.9](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.8...js-server-sdk-common-edge-v1.0.9) (2023-08-14)
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
### Dependencies
|
|
461
|
+
|
|
462
|
+
* The following workspace dependencies were updated
|
|
463
|
+
* dependencies
|
|
464
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.0.8 to 1.1.0
|
|
465
|
+
|
|
449
466
|
## [1.0.8](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.7...js-server-sdk-common-edge-v1.0.8) (2023-08-10)
|
|
450
467
|
|
|
451
468
|
|
|
@@ -460,6 +477,51 @@
|
|
|
460
477
|
* dependencies
|
|
461
478
|
* @launchdarkly/js-server-sdk-common bumped from 1.0.7 to 1.0.8
|
|
462
479
|
|
|
480
|
+
## [1.0.7](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.6...js-server-sdk-common-edge-v1.0.7) (2023-08-03)
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
### Dependencies
|
|
484
|
+
|
|
485
|
+
* The following workspace dependencies were updated
|
|
486
|
+
* dependencies
|
|
487
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.0.6 to 1.0.7
|
|
488
|
+
|
|
489
|
+
## [1.0.6](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.5...js-server-sdk-common-edge-v1.0.6) (2023-07-05)
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
### Dependencies
|
|
493
|
+
|
|
494
|
+
* The following workspace dependencies were updated
|
|
495
|
+
* dependencies
|
|
496
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.0.5 to 1.0.6
|
|
497
|
+
|
|
498
|
+
## [1.0.5](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.4...js-server-sdk-common-edge-v1.0.5) (2023-06-27)
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
### Dependencies
|
|
502
|
+
|
|
503
|
+
* The following workspace dependencies were updated
|
|
504
|
+
* dependencies
|
|
505
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.0.4 to 1.0.5
|
|
506
|
+
|
|
507
|
+
## [1.0.4](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.3...js-server-sdk-common-edge-v1.0.4) (2023-06-13)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
### Dependencies
|
|
511
|
+
|
|
512
|
+
* The following workspace dependencies were updated
|
|
513
|
+
* dependencies
|
|
514
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.0.3 to 1.0.4
|
|
515
|
+
|
|
516
|
+
## [1.0.3](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.2...js-server-sdk-common-edge-v1.0.3) (2023-06-08)
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
### Dependencies
|
|
520
|
+
|
|
521
|
+
* The following workspace dependencies were updated
|
|
522
|
+
* dependencies
|
|
523
|
+
* @launchdarkly/js-server-sdk-common bumped from 1.0.2 to 1.0.3
|
|
524
|
+
|
|
463
525
|
## [1.0.2](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v1.0.1...js-server-sdk-common-edge-v1.0.2) (2023-04-28)
|
|
464
526
|
|
|
465
527
|
|
|
@@ -504,7 +566,16 @@
|
|
|
504
566
|
|
|
505
567
|
* remove useless defaults ([#94](https://github.com/launchdarkly/js-core/issues/94)) ([a9f533a](https://github.com/launchdarkly/js-core/commit/a9f533a4bdeb73338fd04fb5be2efd64c2d82c75))
|
|
506
568
|
|
|
507
|
-
## 0.0.1 (2023-04-
|
|
569
|
+
## [0.0.2](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-edge-v0.0.1...js-server-sdk-common-edge-v0.0.2) (2023-04-20)
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
### Dependencies
|
|
573
|
+
|
|
574
|
+
* The following workspace dependencies were updated
|
|
575
|
+
* dependencies
|
|
576
|
+
* @launchdarkly/js-server-sdk-common bumped from 0.3.0 to 0.3.1
|
|
577
|
+
|
|
578
|
+
## [0.0.1](https://github.com/launchdarkly/js-core/releases/tag/js-server-sdk-common-edge-v0.0.1) (2023-04-19)
|
|
508
579
|
|
|
509
580
|
|
|
510
581
|
### Features
|
|
@@ -518,7 +589,3 @@
|
|
|
518
589
|
* The following workspace dependencies were updated
|
|
519
590
|
* dependencies
|
|
520
591
|
* @launchdarkly/js-server-sdk-common bumped from 0.2.0 to 0.3.0
|
|
521
|
-
|
|
522
|
-
## Changelog
|
|
523
|
-
|
|
524
|
-
All notable changes to `@launchdarkly/js-server-sdk-common-edge` will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DataKind, LDFeatureStore, LDFeatureStoreDataStorage, LDFeatureStoreItem, LDFeatureStoreKindData, LDLogger } from '@launchdarkly/js-server-sdk-common';
|
|
2
2
|
import Cache from './cache';
|
|
3
3
|
export interface EdgeProvider {
|
|
4
|
-
get: (rootKey: string) => Promise<string | null | undefined>;
|
|
4
|
+
get: (rootKey: string) => Promise<string | Record<string, any> | null | undefined>;
|
|
5
5
|
}
|
|
6
6
|
export declare class EdgeFeatureStore implements LDFeatureStore {
|
|
7
7
|
private readonly _edgeProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeFeatureStore.d.ts","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,QAAQ,EACT,MAAM,oCAAoC,CAAC;AAG5C,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"EdgeFeatureStore.d.ts","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,QAAQ,EACT,MAAM,oCAAoC,CAAC;AAG5C,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACpF;AAED,qBAAa,gBAAiB,YAAW,cAAc;IAInD,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM,CAAC;IAPjB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAGf,aAAa,EAAE,YAAY,EAC5C,MAAM,EAAE,MAAM,EACG,YAAY,EAAE,MAAM,EAC7B,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,mBAAO;IAKlB,GAAG,CACP,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,GACjD,OAAO,CAAC,IAAI,CAAC;IAwBV,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAE,CAAC,GAAG,EAAE,sBAAsB,KAAK,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBhG;;;OAGG;YACW,gBAAgB;IA4BxB,WAAW,CAAC,QAAQ,GAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAOnF,IAAI,CAAC,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAIpE,cAAc,IAAI,MAAM;IAIxB,KAAK,IAAI,IAAI;IAMb,MAAM,aAAQ;IAEd,MAAM,aAAQ;CACf"}
|
|
@@ -71,7 +71,10 @@ class EdgeFeatureStore {
|
|
|
71
71
|
if (!providerData) {
|
|
72
72
|
throw new Error(`${this._rootKey} is not found in KV.`);
|
|
73
73
|
}
|
|
74
|
-
payload =
|
|
74
|
+
payload =
|
|
75
|
+
typeof providerData === 'string'
|
|
76
|
+
? (0, js_server_sdk_common_1.deserializePoll)(providerData)
|
|
77
|
+
: (0, js_server_sdk_common_1.reviveFullPayload)(providerData);
|
|
75
78
|
if (!payload) {
|
|
76
79
|
throw new Error(`Error deserializing ${this._rootKey}`);
|
|
77
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeFeatureStore.js","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":";;;AAQA,
|
|
1
|
+
{"version":3,"file":"EdgeFeatureStore.js","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":";;;AAQA,6EAA8F;AAQ9F,MAAa,gBAAgB;IAG3B,YACmB,aAA2B,EAC5C,MAAc,EACG,YAAoB,EAC7B,OAAiB,EACjB,MAAc;QAJL,kBAAa,GAAb,aAAa,CAAc;QAE3B,iBAAY,GAAZ,YAAY,CAAQ;QAC7B,YAAO,GAAP,OAAO,CAAU;QACjB,WAAM,GAAN,MAAM,CAAQ;QA2GxB,SAAS;QAET,WAAM,GAAG,2BAAI,CAAC;QAEd,WAAM,GAAG,2BAAI,CAAC;QA7GZ,IAAI,CAAC,QAAQ,GAAG,UAAU,MAAM,EAAE,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,GAAG,CACP,IAAc,EACd,OAAe,EACf,QAAkD;QAElD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAC3B,MAAM,OAAO,GAAG,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QAC/D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,OAAO,SAAS,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC,CAAC;QAE7E,IAAI;YACF,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAEnD,QAAQ,SAAS,EAAE;gBACjB,KAAK,UAAU;oBACb,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;oBACtC,MAAM;gBACR,KAAK,UAAU;oBACb,QAAQ,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;oBACzC,MAAM;gBACR;oBACE,QAAQ,CAAC,I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kly/js-server-sdk-common';
|
|
2
2
|
import Cache from './cache';
|
|
3
3
|
export interface EdgeProvider {
|
|
4
|
-
get: (rootKey: string) => Promise<string | null | undefined>;
|
|
4
|
+
get: (rootKey: string) => Promise<string | Record<string, any> | null | undefined>;
|
|
5
5
|
}
|
|
6
6
|
export declare class EdgeFeatureStore implements LDFeatureStore {
|
|
7
7
|
private readonly _edgeProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeFeatureStore.d.ts","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,QAAQ,EACT,MAAM,oCAAoC,CAAC;AAG5C,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"EdgeFeatureStore.d.ts","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,QAAQ,EACT,MAAM,oCAAoC,CAAC;AAG5C,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACpF;AAED,qBAAa,gBAAiB,YAAW,cAAc;IAInD,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM,CAAC;IAPjB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAGf,aAAa,EAAE,YAAY,EAC5C,MAAM,EAAE,MAAM,EACG,YAAY,EAAE,MAAM,EAC7B,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,mBAAO;IAKlB,GAAG,CACP,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,GACjD,OAAO,CAAC,IAAI,CAAC;IAwBV,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAE,CAAC,GAAG,EAAE,sBAAsB,KAAK,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBhG;;;OAGG;YACW,gBAAgB;IA4BxB,WAAW,CAAC,QAAQ,GAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAOnF,IAAI,CAAC,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAIpE,cAAc,IAAI,MAAM;IAIxB,KAAK,IAAI,IAAI;IAMb,MAAM,aAAQ;IAEd,MAAM,aAAQ;CACf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { deserializePoll, noop } from '@launchdarkly/js-server-sdk-common';
|
|
1
|
+
import { deserializePoll, noop, reviveFullPayload } from '@launchdarkly/js-server-sdk-common';
|
|
2
2
|
export class EdgeFeatureStore {
|
|
3
3
|
constructor(_edgeProvider, sdkKey, _description, _logger, _cache) {
|
|
4
4
|
this._edgeProvider = _edgeProvider;
|
|
@@ -68,7 +68,10 @@ export class EdgeFeatureStore {
|
|
|
68
68
|
if (!providerData) {
|
|
69
69
|
throw new Error(`${this._rootKey} is not found in KV.`);
|
|
70
70
|
}
|
|
71
|
-
payload =
|
|
71
|
+
payload =
|
|
72
|
+
typeof providerData === 'string'
|
|
73
|
+
? deserializePoll(providerData)
|
|
74
|
+
: reviveFullPayload(providerData);
|
|
72
75
|
if (!payload) {
|
|
73
76
|
throw new Error(`Error deserializing ${this._rootKey}`);
|
|
74
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeFeatureStore.js","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"EdgeFeatureStore.js","sourceRoot":"","sources":["../../../../src/api/EdgeFeatureStore.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAQ9F,MAAM,OAAO,gBAAgB;IAG3B,YACmB,aAA2B,EAC5C,MAAc,EACG,YAAoB,EAC7B,OAAiB,EACjB,MAAc;QAJL,kBAAa,GAAb,aAAa,CAAc;QAE3B,iBAAY,GAAZ,YAAY,CAAQ;QAC7B,YAAO,GAAP,OAAO,CAAU;QACjB,WAAM,GAAN,MAAM,CAAQ;QA2GxB,SAAS;QAET,WAAM,GAAG,IAAI,CAAC;QAEd,WAAM,GAAG,IAAI,CAAC;QA7GZ,IAAI,CAAC,QAAQ,GAAG,UAAU,MAAM,EAAE,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,GAAG,CACP,IAAc,EACd,OAAe,EACf,QAAkD;QAElD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAC3B,MAAM,OAAO,GAAG,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QAC/D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,OAAO,SAAS,IAAI,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC,CAAC;QAE7E,IAAI;YACF,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,gBAAgB,E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AAK;;QACH,OAAO,MAAA,IAAI,CAAC,MAAM,0CAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;CAOF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@launchdarkly/js-server-sdk-common-edge",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.10",
|
|
4
4
|
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/shared/sdk-server-edge",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"check": "yarn prettier && yarn lint && yarn build && yarn test && yarn doc"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@launchdarkly/js-server-sdk-common": "2.
|
|
39
|
+
"@launchdarkly/js-server-sdk-common": "2.17.0",
|
|
40
40
|
"crypto-js": "^4.1.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|