@mark1russell7/vex 0.20.1 → 0.20.3
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 +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @mark1russell7/vex
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@mark1russell7/vex) [](https://www.npmjs.com/package/@mark1russell7/vex) [](https://github.com/metrograph-labs/vex/actions/workflows/ci.yml) [](https://github.com/metrograph-labs/vex/blob/main/LICENSE)
|
|
4
4
|
|
|
5
5
|
Typed spreadsheet formulas over TypeScript objects. A Vex program evaluates at one record of a collection. It reads fields relative to that record, and combines them with the ops of domains, for example 2D vectors. A failure does not throw: it is an error value with a code like `#REF!` or `#N/A`, and a trace shows where it started.
|
|
6
6
|
|
|
7
|
-
**[Documentation, live examples and the Lab](https://
|
|
7
|
+
**[Documentation, live examples and the Lab](https://metrograph-labs.github.io/vex/)**
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -61,7 +61,7 @@ fromDocument(doc); // => { ok: true, value: next }
|
|
|
61
61
|
evaluate(doc, { space: space.array([{ n: 2 }]), origin: "0", domains: [NumDomain] }); // => { ok: true, value: 3 }
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
A document that is not valid gives the error `#VALUE!` with the reason and the location of the part. The rules are in [the specification](https://github.com/
|
|
64
|
+
A document that is not valid gives the error `#VALUE!` with the reason and the location of the part. The rules are in [the specification](https://github.com/metrograph-labs/vex/blob/main/spec/README.md#41-documents).
|
|
65
65
|
|
|
66
66
|
## Queries of records
|
|
67
67
|
|
|
@@ -82,7 +82,7 @@ matchView(view, tasks, { domains: [TextDomain, BoolDomain, NumDomain] }).matches
|
|
|
82
82
|
viewToQuery(view); // => "q=pick&state=open"
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
The rules are in [the specification](https://github.com/
|
|
85
|
+
The rules are in [the specification](https://github.com/metrograph-labs/vex/blob/main/spec/README.md#13-the-query-entry).
|
|
86
86
|
|
|
87
87
|
## The kernel of coeval
|
|
88
88
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/vex",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.3",
|
|
5
5
|
"description": "Vex: typed spreadsheet formulas over domain objects. The kernel and the typed builder.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"typescript",
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"layout",
|
|
16
16
|
"functional-programming"
|
|
17
17
|
],
|
|
18
|
-
"homepage": "https://
|
|
18
|
+
"homepage": "https://metrograph-labs.github.io/vex/",
|
|
19
19
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/
|
|
20
|
+
"url": "https://github.com/metrograph-labs/vex/issues"
|
|
21
21
|
},
|
|
22
22
|
"author": "Mark Russell (https://github.com/mark1russell7)",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/
|
|
26
|
+
"url": "git+https://github.com/metrograph-labs/vex.git",
|
|
27
27
|
"directory": "packages/core"
|
|
28
28
|
},
|
|
29
29
|
"type": "module",
|