@epam/uui-db 5.6.1 → 5.7.0-alpha.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 +1 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/uui-db",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0-alpha.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.
|
|
17
|
+
"@epam/uui-core": "5.7.0-alpha.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",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"type": "git",
|
|
63
63
|
"url": "https://github.com/epam/UUI"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "aca8d1d0a176fdb5fbb046d68792c67d632e15e2",
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"directory": "build"
|
|
68
68
|
}
|
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
|
@@ -4818,7 +4818,7 @@ var drawChart = (function (exports) {
|
|
|
4818
4818
|
</script>
|
|
4819
4819
|
<script>
|
|
4820
4820
|
/*<!--*/
|
|
4821
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"build/rollup:/@epam/uui-db","children":[{"name":"src","children":[{"uid":"
|
|
4821
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.esm.js","children":[{"name":"build/rollup:/@epam/uui-db","children":[{"name":"src","children":[{"uid":"3986-54","name":"types.ts"},{"uid":"3986-56","name":"utils.ts"},{"uid":"3986-58","name":"Db.ts"},{"uid":"3986-62","name":"DbTable.ts"},{"uid":"3986-64","name":"patchHelpers.ts"},{"uid":"3986-66","name":"tempIds.tsx"},{"uid":"3986-68","name":"Loader.ts"},{"uid":"3986-70","name":"SimpleLoadingTracker.ts"},{"uid":"3986-72","name":"ListLoadingTracker.ts"},{"uid":"3986-74","name":"DbRef.ts"},{"uid":"3986-76","name":"reactHooks.ts"}]},{"name":"node_modules/tslib/tslib.es6.js","uid":"3986-60"}]}]}],"isRoot":true},"nodeParts":{"3986-54":{"renderedLength":232,"gzipLength":0,"brotliLength":0,"metaUid":"3986-53"},"3986-56":{"renderedLength":777,"gzipLength":0,"brotliLength":0,"metaUid":"3986-55"},"3986-58":{"renderedLength":2104,"gzipLength":0,"brotliLength":0,"metaUid":"3986-57"},"3986-60":{"renderedLength":2229,"gzipLength":0,"brotliLength":0,"metaUid":"3986-59"},"3986-62":{"renderedLength":6566,"gzipLength":0,"brotliLength":0,"metaUid":"3986-61"},"3986-64":{"renderedLength":6098,"gzipLength":0,"brotliLength":0,"metaUid":"3986-63"},"3986-66":{"renderedLength":6249,"gzipLength":0,"brotliLength":0,"metaUid":"3986-65"},"3986-68":{"renderedLength":2277,"gzipLength":0,"brotliLength":0,"metaUid":"3986-67"},"3986-70":{"renderedLength":291,"gzipLength":0,"brotliLength":0,"metaUid":"3986-69"},"3986-72":{"renderedLength":2894,"gzipLength":0,"brotliLength":0,"metaUid":"3986-71"},"3986-74":{"renderedLength":5956,"gzipLength":0,"brotliLength":0,"metaUid":"3986-73"},"3986-76":{"renderedLength":442,"gzipLength":0,"brotliLength":0,"metaUid":"3986-75"}},"nodeMetas":{"3986-53":{"id":"/build/rollup:/@epam/uui-db/src/types.ts","moduleParts":{"index.esm.js":"3986-54"},"imported":[],"importedBy":[]},"3986-55":{"id":"/build/rollup:/@epam/uui-db/src/utils.ts","moduleParts":{"index.esm.js":"3986-56"},"imported":[],"importedBy":[]},"3986-57":{"id":"/build/rollup:/@epam/uui-db/src/Db.ts","moduleParts":{"index.esm.js":"3986-58"},"imported":[],"importedBy":[]},"3986-59":{"id":"/build/rollup:/@epam/uui-db/node_modules/tslib/tslib.es6.js","moduleParts":{"index.esm.js":"3986-60"},"imported":[],"importedBy":[]},"3986-61":{"id":"/build/rollup:/@epam/uui-db/src/DbTable.ts","moduleParts":{"index.esm.js":"3986-62"},"imported":[],"importedBy":[]},"3986-63":{"id":"/build/rollup:/@epam/uui-db/src/patchHelpers.ts","moduleParts":{"index.esm.js":"3986-64"},"imported":[],"importedBy":[]},"3986-65":{"id":"/build/rollup:/@epam/uui-db/src/tempIds.tsx","moduleParts":{"index.esm.js":"3986-66"},"imported":[],"importedBy":[]},"3986-67":{"id":"/build/rollup:/@epam/uui-db/src/Loader.ts","moduleParts":{"index.esm.js":"3986-68"},"imported":[],"importedBy":[]},"3986-69":{"id":"/build/rollup:/@epam/uui-db/src/SimpleLoadingTracker.ts","moduleParts":{"index.esm.js":"3986-70"},"imported":[],"importedBy":[]},"3986-71":{"id":"/build/rollup:/@epam/uui-db/src/ListLoadingTracker.ts","moduleParts":{"index.esm.js":"3986-72"},"imported":[],"importedBy":[]},"3986-73":{"id":"/build/rollup:/@epam/uui-db/src/DbRef.ts","moduleParts":{"index.esm.js":"3986-74"},"imported":[],"importedBy":[]},"3986-75":{"id":"/build/rollup:/@epam/uui-db/src/reactHooks.ts","moduleParts":{"index.esm.js":"3986-76"},"imported":[],"importedBy":[]},"3986-77":{"id":"/index.tsx","moduleParts":{},"imported":[{"uid":"3986-78"}],"importedBy":[],"isEntry":true},"3986-78":{"id":"/src/index.ts","moduleParts":{},"imported":[{"uid":"3986-79"},{"uid":"3986-80"},{"uid":"3986-81"},{"uid":"3986-82"},{"uid":"3986-83"},{"uid":"3986-84"},{"uid":"3986-85"},{"uid":"3986-86"}],"importedBy":[{"uid":"3986-77"}]},"3986-79":{"id":"/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-78"},{"uid":"3986-85"}]},"3986-80":{"id":"/src/Db.ts","moduleParts":{},"imported":[{"uid":"3986-84"},{"uid":"3986-87"}],"importedBy":[{"uid":"3986-78"}]},"3986-81":{"id":"/src/DbTable.ts","moduleParts":{},"imported":[{"uid":"3986-88"},{"uid":"3986-89"},{"uid":"3986-90"}],"importedBy":[{"uid":"3986-78"}]},"3986-82":{"id":"/src/DbRef.ts","moduleParts":{},"imported":[{"uid":"3986-88"},{"uid":"3986-85"},{"uid":"3986-83"},{"uid":"3986-84"},{"uid":"3986-91"},{"uid":"3986-92"},{"uid":"3986-90"},{"uid":"3986-93"},{"uid":"3986-94"}],"importedBy":[{"uid":"3986-78"}]},"3986-83":{"id":"/src/tempIds.tsx","moduleParts":{},"imported":[{"uid":"3986-84"}],"importedBy":[{"uid":"3986-78"},{"uid":"3986-82"}]},"3986-84":{"id":"/src/utils.ts","moduleParts":{},"imported":[{"uid":"3986-95"},{"uid":"3986-96"},{"uid":"3986-97"},{"uid":"3986-87"}],"importedBy":[{"uid":"3986-78"},{"uid":"3986-80"},{"uid":"3986-82"},{"uid":"3986-83"},{"uid":"3986-85"}]},"3986-85":{"id":"/src/patchHelpers.ts","moduleParts":{},"imported":[{"uid":"3986-79"},{"uid":"3986-89"},{"uid":"3986-84"},{"uid":"3986-98"},{"uid":"3986-99"},{"uid":"3986-100"},{"uid":"3986-101"},{"uid":"3986-102"},{"uid":"3986-103"},{"uid":"3986-104"}],"importedBy":[{"uid":"3986-78"},{"uid":"3986-82"}]},"3986-86":{"id":"/src/reactHooks.ts","moduleParts":{},"imported":[{"uid":"3986-105"}],"importedBy":[{"uid":"3986-78"}]},"3986-87":{"id":"lodash.isequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-80"},{"uid":"3986-84"}],"isExternal":true},"3986-88":{"id":"/Users/Aliaksei_Manetau/WebstormProjects/UUI_new/node_modules/tslib/tslib.es6.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-81"},{"uid":"3986-82"},{"uid":"3986-94"}]},"3986-89":{"id":"immutable","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-81"},{"uid":"3986-85"}],"isExternal":true},"3986-90":{"id":"@epam/uui-core","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-81"},{"uid":"3986-82"}],"isExternal":true},"3986-91":{"id":"lodash.isempty","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-82"}],"isExternal":true},"3986-92":{"id":"/src/Loader.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-82"}]},"3986-93":{"id":"/src/SimpleLoadingTracker.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-82"}]},"3986-94":{"id":"/src/ListLoadingTracker.ts","moduleParts":{},"imported":[{"uid":"3986-88"}],"importedBy":[{"uid":"3986-82"}]},"3986-95":{"id":"shallowequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-84"}],"isExternal":true},"3986-96":{"id":"lodash.zip","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-84"}],"isExternal":true},"3986-97":{"id":"lodash.transform","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-84"}],"isExternal":true},"3986-98":{"id":"lodash.groupby","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-85"}],"isExternal":true},"3986-99":{"id":"lodash.map","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-85"}],"isExternal":true},"3986-100":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-85"}],"isExternal":true},"3986-101":{"id":"lodash.countby","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-85"}],"isExternal":true},"3986-102":{"id":"lodash.filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-85"}],"isExternal":true},"3986-103":{"id":"lodash.foreach","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-85"}],"isExternal":true},"3986-104":{"id":"lodash.pick","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-85"}],"isExternal":true},"3986-105":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"3986-86"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":true}};
|
|
4822
4822
|
|
|
4823
4823
|
const run = () => {
|
|
4824
4824
|
const width = window.innerWidth;
|
|
@@ -4836,9 +4836,3 @@ var drawChart = (function (exports) {
|
|
|
4836
4836
|
</body>
|
|
4837
4837
|
</html>
|
|
4838
4838
|
|
|
4839
|
-
ment.addEventListener('DOMContentLoaded', run);
|
|
4840
|
-
/*-->*/
|
|
4841
|
-
</script>
|
|
4842
|
-
</body>
|
|
4843
|
-
</html>
|
|
4844
|
-
|