@epam/uui-db 5.10.2-alpha.0 → 5.10.2-patch.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/index.esm.js.map +1 -1
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/readme.md +17 -17
- package/stats.html +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/uui-db",
|
|
3
|
-
"version": "5.10.2-
|
|
3
|
+
"version": "5.10.2-patch.0",
|
|
4
4
|
"description": "UUI - client-side relational state cache",
|
|
5
5
|
"author": "EPAM",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"prepublish": "yarn build"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@epam/uui-core": "5.10.2-
|
|
17
|
+
"@epam/uui-core": "5.10.2-patch.0",
|
|
18
18
|
"@types/lodash.countby": "4.6.6",
|
|
19
19
|
"@types/lodash.filter": "4.6.6",
|
|
20
20
|
"@types/lodash.foreach": "4.5.6",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"type": "git",
|
|
56
56
|
"url": "https://github.com/epam/UUI"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "10d7a4acca9cc4c8db7caa0a9dc2b91f708f9d35",
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"directory": "build"
|
|
61
61
|
}
|
package/readme.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# UUI DB package
|
|
2
|
-
|
|
3
|
-
This package is a part of [EPAM UUI](https://github.com/epam/UUI) library.
|
|
4
|
-
|
|
5
|
-
@epam/uui-db is an experimental state-management solution. It maintains immutable relational database on client, provides means to load data from server, update it both from client, and save it to server asynchronously with UI operations.
|
|
6
|
-
|
|
7
|
-
## Features
|
|
8
|
-
|
|
9
|
-
- relation data model for state, providing a normalized storage for UI state
|
|
10
|
-
- data loading from server, with automatic GraphQL response normalization into tables
|
|
11
|
-
- synchronous and transactional updates of state from UI
|
|
12
|
-
- asynchronous bi-directional state synchronization between UI and server. UI changes in terms of 'patches' are batched and sent to server. Server can also push updates to UI state
|
|
13
|
-
- GIT-like branch-rebase approach to handle state concurrency
|
|
14
|
-
- tables can be indexed to speed-up queries
|
|
15
|
-
- Views to build arbitrary state projections
|
|
16
|
-
- subscriptions to subscribe parts of UI to changes in Views
|
|
17
|
-
|
|
1
|
+
# UUI DB package
|
|
2
|
+
|
|
3
|
+
This package is a part of [EPAM UUI](https://github.com/epam/UUI) library.
|
|
4
|
+
|
|
5
|
+
@epam/uui-db is an experimental state-management solution. It maintains immutable relational database on client, provides means to load data from server, update it both from client, and save it to server asynchronously with UI operations.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- relation data model for state, providing a normalized storage for UI state
|
|
10
|
+
- data loading from server, with automatic GraphQL response normalization into tables
|
|
11
|
+
- synchronous and transactional updates of state from UI
|
|
12
|
+
- asynchronous bi-directional state synchronization between UI and server. UI changes in terms of 'patches' are batched and sent to server. Server can also push updates to UI state
|
|
13
|
+
- GIT-like branch-rebase approach to handle state concurrency
|
|
14
|
+
- tables can be indexed to speed-up queries
|
|
15
|
+
- Views to build arbitrary state projections
|
|
16
|
+
- subscriptions to subscribe parts of UI to changes in Views
|
|
17
|
+
|
package/stats.html
CHANGED
|
@@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {
|
|
|
4822
4822
|
</script>
|
|
4823
4823
|
<script>
|
|
4824
4824
|
/*<!--*/
|
|
4825
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.
|
|
4825
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"build/rollup:/@epam/uui-db","children":[{"name":"src","children":[{"uid":"6f8d8c12-1","name":"types.ts"},{"uid":"6f8d8c12-3","name":"utils.ts"},{"uid":"6f8d8c12-5","name":"Db.ts"},{"uid":"6f8d8c12-9","name":"DbTable.ts"},{"uid":"6f8d8c12-11","name":"patchHelpers.ts"},{"uid":"6f8d8c12-13","name":"tempIds.tsx"},{"uid":"6f8d8c12-15","name":"Loader.ts"},{"uid":"6f8d8c12-17","name":"SimpleLoadingTracker.ts"},{"uid":"6f8d8c12-19","name":"ListLoadingTracker.ts"},{"uid":"6f8d8c12-21","name":"batch.ts"},{"uid":"6f8d8c12-23","name":"DbRef.ts"},{"uid":"6f8d8c12-25","name":"reactHooks.ts"}]},{"name":"node_modules/tslib/tslib.es6.js","uid":"6f8d8c12-7"}]}]}],"isRoot":true},"nodeParts":{"6f8d8c12-1":{"renderedLength":265,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-0"},"6f8d8c12-3":{"renderedLength":827,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-2"},"6f8d8c12-5":{"renderedLength":2003,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-4"},"6f8d8c12-7":{"renderedLength":2229,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-6"},"6f8d8c12-9":{"renderedLength":5973,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-8"},"6f8d8c12-11":{"renderedLength":6064,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-10"},"6f8d8c12-13":{"renderedLength":5803,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-12"},"6f8d8c12-15":{"renderedLength":2182,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-14"},"6f8d8c12-17":{"renderedLength":291,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-16"},"6f8d8c12-19":{"renderedLength":2582,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-18"},"6f8d8c12-21":{"renderedLength":1527,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-20"},"6f8d8c12-23":{"renderedLength":5890,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-22"},"6f8d8c12-25":{"renderedLength":487,"gzipLength":0,"brotliLength":0,"metaUid":"6f8d8c12-24"}},"nodeMetas":{"6f8d8c12-0":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\types.ts","moduleParts":{"index.js":"6f8d8c12-1"},"imported":[],"importedBy":[]},"6f8d8c12-2":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\utils.ts","moduleParts":{"index.js":"6f8d8c12-3"},"imported":[],"importedBy":[]},"6f8d8c12-4":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\Db.ts","moduleParts":{"index.js":"6f8d8c12-5"},"imported":[],"importedBy":[]},"6f8d8c12-6":{"id":"\\build\\rollup:\\@epam\\uui-db\\node_modules\\tslib\\tslib.es6.js","moduleParts":{"index.js":"6f8d8c12-7"},"imported":[],"importedBy":[]},"6f8d8c12-8":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\DbTable.ts","moduleParts":{"index.js":"6f8d8c12-9"},"imported":[],"importedBy":[]},"6f8d8c12-10":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\patchHelpers.ts","moduleParts":{"index.js":"6f8d8c12-11"},"imported":[],"importedBy":[]},"6f8d8c12-12":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\tempIds.tsx","moduleParts":{"index.js":"6f8d8c12-13"},"imported":[],"importedBy":[]},"6f8d8c12-14":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\Loader.ts","moduleParts":{"index.js":"6f8d8c12-15"},"imported":[],"importedBy":[]},"6f8d8c12-16":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\SimpleLoadingTracker.ts","moduleParts":{"index.js":"6f8d8c12-17"},"imported":[],"importedBy":[]},"6f8d8c12-18":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\ListLoadingTracker.ts","moduleParts":{"index.js":"6f8d8c12-19"},"imported":[],"importedBy":[]},"6f8d8c12-20":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\batch.ts","moduleParts":{"index.js":"6f8d8c12-21"},"imported":[],"importedBy":[]},"6f8d8c12-22":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\DbRef.ts","moduleParts":{"index.js":"6f8d8c12-23"},"imported":[],"importedBy":[]},"6f8d8c12-24":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\reactHooks.ts","moduleParts":{"index.js":"6f8d8c12-25"},"imported":[],"importedBy":[]},"6f8d8c12-26":{"id":"\\index.tsx","moduleParts":{},"imported":[{"uid":"6f8d8c12-27"}],"importedBy":[],"isEntry":true},"6f8d8c12-27":{"id":"\\src\\index.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-28"},{"uid":"6f8d8c12-29"},{"uid":"6f8d8c12-30"},{"uid":"6f8d8c12-31"},{"uid":"6f8d8c12-32"},{"uid":"6f8d8c12-33"},{"uid":"6f8d8c12-34"},{"uid":"6f8d8c12-35"}],"importedBy":[{"uid":"6f8d8c12-26"}]},"6f8d8c12-28":{"id":"\\src\\types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-27"},{"uid":"6f8d8c12-34"}]},"6f8d8c12-29":{"id":"\\src\\Db.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-33"},{"uid":"6f8d8c12-36"}],"importedBy":[{"uid":"6f8d8c12-27"}]},"6f8d8c12-30":{"id":"\\src\\DbTable.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-37"},{"uid":"6f8d8c12-38"},{"uid":"6f8d8c12-39"}],"importedBy":[{"uid":"6f8d8c12-27"}]},"6f8d8c12-31":{"id":"\\src\\DbRef.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-37"},{"uid":"6f8d8c12-34"},{"uid":"6f8d8c12-32"},{"uid":"6f8d8c12-33"},{"uid":"6f8d8c12-40"},{"uid":"6f8d8c12-41"},{"uid":"6f8d8c12-42"},{"uid":"6f8d8c12-43"},{"uid":"6f8d8c12-44"}],"importedBy":[{"uid":"6f8d8c12-27"}]},"6f8d8c12-32":{"id":"\\src\\tempIds.tsx","moduleParts":{},"imported":[{"uid":"6f8d8c12-33"}],"importedBy":[{"uid":"6f8d8c12-27"},{"uid":"6f8d8c12-31"}]},"6f8d8c12-33":{"id":"\\src\\utils.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-45"},{"uid":"6f8d8c12-46"},{"uid":"6f8d8c12-47"},{"uid":"6f8d8c12-36"}],"importedBy":[{"uid":"6f8d8c12-27"},{"uid":"6f8d8c12-29"},{"uid":"6f8d8c12-31"},{"uid":"6f8d8c12-32"},{"uid":"6f8d8c12-34"}]},"6f8d8c12-34":{"id":"\\src\\patchHelpers.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-28"},{"uid":"6f8d8c12-38"},{"uid":"6f8d8c12-33"},{"uid":"6f8d8c12-48"},{"uid":"6f8d8c12-49"},{"uid":"6f8d8c12-50"},{"uid":"6f8d8c12-51"},{"uid":"6f8d8c12-52"},{"uid":"6f8d8c12-53"},{"uid":"6f8d8c12-54"}],"importedBy":[{"uid":"6f8d8c12-27"},{"uid":"6f8d8c12-31"}]},"6f8d8c12-35":{"id":"\\src\\reactHooks.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-55"}],"importedBy":[{"uid":"6f8d8c12-27"}]},"6f8d8c12-36":{"id":"react-fast-compare","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-29"},{"uid":"6f8d8c12-33"}],"isExternal":true},"6f8d8c12-37":{"id":"C:\\dev\\UUI-main\\node_modules\\tslib\\tslib.es6.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-30"},{"uid":"6f8d8c12-31"},{"uid":"6f8d8c12-43"},{"uid":"6f8d8c12-44"}]},"6f8d8c12-38":{"id":"immutable","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-30"},{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-39":{"id":"@epam/uui-core","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-30"}],"isExternal":true},"6f8d8c12-40":{"id":"lodash.isempty","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-31"}],"isExternal":true},"6f8d8c12-41":{"id":"\\src\\Loader.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-31"}]},"6f8d8c12-42":{"id":"\\src\\SimpleLoadingTracker.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-31"}]},"6f8d8c12-43":{"id":"\\src\\ListLoadingTracker.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-37"}],"importedBy":[{"uid":"6f8d8c12-31"}]},"6f8d8c12-44":{"id":"\\src\\batch.ts","moduleParts":{},"imported":[{"uid":"6f8d8c12-37"}],"importedBy":[{"uid":"6f8d8c12-31"}]},"6f8d8c12-45":{"id":"shallowequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-33"}],"isExternal":true},"6f8d8c12-46":{"id":"lodash.zip","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-33"}],"isExternal":true},"6f8d8c12-47":{"id":"lodash.transform","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-33"}],"isExternal":true},"6f8d8c12-48":{"id":"lodash.groupby","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-49":{"id":"lodash.map","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-50":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-51":{"id":"lodash.countby","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-52":{"id":"lodash.filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-53":{"id":"lodash.foreach","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-54":{"id":"lodash.pick","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-34"}],"isExternal":true},"6f8d8c12-55":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"6f8d8c12-35"}],"isExternal":true}},"env":{"rollup":"4.14.2"},"options":{"gzip":false,"brotli":false,"sourcemap":true}};
|
|
4826
4826
|
|
|
4827
4827
|
const run = () => {
|
|
4828
4828
|
const width = window.innerWidth;
|
|
@@ -4840,3 +4840,9 @@ var drawChart = (function (exports) {
|
|
|
4840
4840
|
</body>
|
|
4841
4841
|
</html>
|
|
4842
4842
|
|
|
4843
|
+
Loaded', run);
|
|
4844
|
+
/*-->*/
|
|
4845
|
+
</script>
|
|
4846
|
+
</body>
|
|
4847
|
+
</html>
|
|
4848
|
+
|