@markless/runtime 0.2.2 → 0.3.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/README.md +1 -1
- package/dist/{graph-P12yh-2u.js → graph-DoSjSC5T.js} +3 -2
- package/dist/graph.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
Markless state graph runtime: reads, writes, computed invalidation, and the
|
|
4
4
|
flush journal. Internal implementation package of `@markless/core`.
|
|
5
5
|
|
|
6
|
-
See the repository for documentation: https://github.com/
|
|
6
|
+
See the repository for documentation: https://github.com/compiled-run/markless
|
|
@@ -283,8 +283,9 @@ function createRuntimeComputedNodes(computedInput) {
|
|
|
283
283
|
return computedNodes;
|
|
284
284
|
}
|
|
285
285
|
function readComputedNode(computed, readGraph, path) {
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
const { compute } = computed;
|
|
287
|
+
if (computed.dirty && compute) {
|
|
288
|
+
computed.value = compute(readGraph);
|
|
288
289
|
computed.dirty = false;
|
|
289
290
|
}
|
|
290
291
|
return readPath(computed.value, path);
|
package/dist/graph.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createRuntimeGraph } from "./graph-
|
|
1
|
+
import { t as createRuntimeGraph } from "./graph-DoSjSC5T.js";
|
|
2
2
|
export { createRuntimeGraph };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createRuntimeGraph } from "./graph-
|
|
1
|
+
import { t as createRuntimeGraph } from "./graph-DoSjSC5T.js";
|
|
2
2
|
export { createRuntimeGraph };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markless/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Markless state graph runtime: reads, writes, computed invalidation, flush journal.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/compiled-run/markless.git",
|
|
9
9
|
"directory": "packages/runtime"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@markless/serializer": "0.
|
|
28
|
+
"@markless/serializer": "0.3.0"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist"
|