Rewrite local storage (#4583)

* Reimplementation of Local Storage provider

* Added tests

* Remove identifierService mocks from all test specs

* Do not persist identifiers in couch

* Constant rename

* Fix broken test

* Clean up mock window functions

* Updated copyright notice

* Fixed bug in in-memory search indexer
This commit is contained in:
Andrew Henry
2021-12-17 12:14:35 -08:00
committed by GitHub
parent fd0e89ca05
commit 2d64813a4f
22 changed files with 281 additions and 507 deletions

View File

@ -73,7 +73,8 @@ define([
'./hyperlink/plugin',
'./clock/plugin',
'./DeviceClassifier/plugin',
'./timer/plugin'
'./timer/plugin',
'./localStorage/plugin'
], function (
_,
UTCTimeSystem,
@ -127,10 +128,10 @@ define([
Hyperlink,
Clock,
DeviceClassifier,
Timer
Timer,
LocalStorage
) {
const bundleMap = {
LocalStorage: 'platform/persistence/local',
Elasticsearch: 'platform/persistence/elastic'
};
@ -235,6 +236,7 @@ define([
plugins.Clock = Clock.default;
plugins.Timer = Timer.default;
plugins.DeviceClassifier = DeviceClassifier.default;
plugins.LocalStorage = LocalStorage.default;
return plugins;
});