@dxos/compute 0.8.4-main.c1de068 → 0.8.4-main.fd6878d
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/dist/lib/browser/{chunk-AURNYRCC.mjs → chunk-X2FWMHD4.mjs} +32 -3
- package/dist/lib/browser/{chunk-AURNYRCC.mjs.map → chunk-X2FWMHD4.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +4 -1
- package/dist/lib/browser/testing/index.mjs.map +2 -2
- package/dist/lib/node-esm/{chunk-DZMSWKOY.mjs → chunk-RP7HSSCA.mjs} +32 -3
- package/dist/lib/node-esm/{chunk-DZMSWKOY.mjs.map → chunk-RP7HSSCA.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +4 -1
- package/dist/lib/node-esm/testing/index.mjs.map +2 -2
- package/dist/types/src/compute-graph-registry.d.ts +1 -1
- package/dist/types/src/compute-graph-registry.d.ts.map +1 -1
- package/dist/types/src/compute-graph.d.ts.map +1 -1
- package/dist/types/src/functions/async-function.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -20
- package/src/compute-graph-registry.ts +1 -1
- package/src/compute-graph.ts +3 -3
- package/src/functions/async-function.ts +2 -2
- package/src/hyperformula.test.ts +1 -1
- package/src/types/types.test.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/compute",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.fd6878d",
|
|
4
4
|
"description": "Low-level compute API",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,17 +10,20 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"imports": {
|
|
12
12
|
"#hyperformula": {
|
|
13
|
+
"source": "hyperformula",
|
|
13
14
|
"types": "hyperformula",
|
|
14
15
|
"default": "./dist/vendor/hyperformula.mjs"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
20
|
+
"source": "./src/index.ts",
|
|
19
21
|
"types": "./dist/types/src/index.d.ts",
|
|
20
22
|
"browser": "./dist/lib/browser/index.mjs",
|
|
21
23
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
22
24
|
},
|
|
23
25
|
"./testing": {
|
|
26
|
+
"source": "./src/testing/index.ts",
|
|
24
27
|
"types": "./dist/types/src/testing/index.d.ts",
|
|
25
28
|
"browser": "./dist/lib/browser/testing/index.mjs",
|
|
26
29
|
"node": "./dist/lib/node-esm/testing/index.mjs"
|
|
@@ -40,31 +43,31 @@
|
|
|
40
43
|
],
|
|
41
44
|
"dependencies": {
|
|
42
45
|
"@preact/signals-core": "^1.9.0",
|
|
43
|
-
"effect": "3.17.
|
|
46
|
+
"effect": "3.17.7",
|
|
44
47
|
"hyperformula": "^2.7.1",
|
|
45
48
|
"lodash.defaultsdeep": "^4.6.1",
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/echo": "0.8.4-main.
|
|
51
|
-
"@dxos/echo-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
49
|
+
"@dxos/async": "0.8.4-main.fd6878d",
|
|
50
|
+
"@dxos/client": "0.8.4-main.fd6878d",
|
|
51
|
+
"@dxos/debug": "0.8.4-main.fd6878d",
|
|
52
|
+
"@dxos/context": "0.8.4-main.fd6878d",
|
|
53
|
+
"@dxos/echo-db": "0.8.4-main.fd6878d",
|
|
54
|
+
"@dxos/echo-schema": "0.8.4-main.fd6878d",
|
|
55
|
+
"@dxos/functions": "0.8.4-main.fd6878d",
|
|
56
|
+
"@dxos/invariant": "0.8.4-main.fd6878d",
|
|
57
|
+
"@dxos/keys": "0.8.4-main.fd6878d",
|
|
58
|
+
"@dxos/live-object": "0.8.4-main.fd6878d",
|
|
59
|
+
"@dxos/log": "0.8.4-main.fd6878d",
|
|
60
|
+
"@dxos/schema": "0.8.4-main.fd6878d",
|
|
61
|
+
"@dxos/echo": "0.8.4-main.fd6878d",
|
|
62
|
+
"@dxos/protocols": "0.8.4-main.fd6878d",
|
|
63
|
+
"@dxos/util": "0.8.4-main.fd6878d"
|
|
61
64
|
},
|
|
62
65
|
"devDependencies": {
|
|
63
66
|
"@tldraw/indices": "^2.0.0-alpha.14",
|
|
64
67
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
65
|
-
"@dxos/echo-
|
|
66
|
-
"@dxos/echo-
|
|
67
|
-
"@dxos/random": "0.8.4-main.
|
|
68
|
+
"@dxos/echo-schema": "0.8.4-main.fd6878d",
|
|
69
|
+
"@dxos/echo-db": "0.8.4-main.fd6878d",
|
|
70
|
+
"@dxos/random": "0.8.4-main.fd6878d"
|
|
68
71
|
},
|
|
69
72
|
"peerDependencies": {
|
|
70
73
|
"effect": "^3.13.3"
|
|
@@ -7,7 +7,7 @@ import type { ConfigParams } from 'hyperformula/typings/ConfigParams';
|
|
|
7
7
|
import type { FunctionTranslationsPackage } from 'hyperformula/typings/interpreter';
|
|
8
8
|
import defaultsDeep from 'lodash.defaultsdeep';
|
|
9
9
|
|
|
10
|
-
import { type
|
|
10
|
+
import { type Space, type SpaceId } from '@dxos/client/echo';
|
|
11
11
|
import { Resource } from '@dxos/context';
|
|
12
12
|
import { invariant } from '@dxos/invariant';
|
|
13
13
|
import { log } from '@dxos/log';
|
package/src/compute-graph.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { type Listeners } from 'hyperformula/typings/Emitter';
|
|
6
6
|
|
|
7
7
|
import { Event } from '@dxos/async';
|
|
8
|
-
import { type Space,
|
|
8
|
+
import { Filter, type Space, fullyQualifiedId } from '@dxos/client/echo';
|
|
9
9
|
import { FQ_ID_LENGTH } from '@dxos/client/echo';
|
|
10
10
|
import { Resource } from '@dxos/context';
|
|
11
11
|
import { getTypename } from '@dxos/echo-schema';
|
|
@@ -19,11 +19,11 @@ import { ExportedCellChange, type HyperFormula } from '#hyperformula';
|
|
|
19
19
|
|
|
20
20
|
import { ComputeNode } from './compute-node';
|
|
21
21
|
import {
|
|
22
|
-
|
|
22
|
+
EDGE_FUNCTION_NAME,
|
|
23
23
|
FunctionContext,
|
|
24
24
|
type FunctionContextOptions,
|
|
25
25
|
type FunctionDefinition,
|
|
26
|
-
|
|
26
|
+
defaultFunctions,
|
|
27
27
|
} from './functions';
|
|
28
28
|
|
|
29
29
|
// TODO(burdon): Factor out compute-graph.
|
|
@@ -8,11 +8,11 @@ import { type InterpreterValue } from 'hyperformula/typings/interpreter/Interpre
|
|
|
8
8
|
import { type ProcedureAst } from 'hyperformula/typings/parser';
|
|
9
9
|
import defaultsDeep from 'lodash.defaultsdeep';
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { type CleanupFn, debounce } from '@dxos/async';
|
|
12
12
|
import { type Space } from '@dxos/client/echo';
|
|
13
13
|
import { log } from '@dxos/log';
|
|
14
14
|
|
|
15
|
-
import { CellError,
|
|
15
|
+
import { CellError, EmptyValue, ErrorType, FunctionPlugin, type HyperFormula } from '#hyperformula';
|
|
16
16
|
|
|
17
17
|
// TODO(burdon): Create API gateways:
|
|
18
18
|
// https://publicapis.io
|
package/src/hyperformula.test.ts
CHANGED
package/src/types/types.test.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { getIndices,
|
|
5
|
+
import { getIndices, getIndicesAbove, getIndicesBelow, getIndicesBetween, sortByIndex } from '@tldraw/indices';
|
|
6
6
|
import { describe, expect, test } from 'vitest';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { addressFromA1Notation, addressToA1Notation, inRange, rangeFromA1Notation, rangeToA1Notation } from './types';
|
|
9
9
|
|
|
10
10
|
describe('cell', () => {
|
|
11
11
|
test('posToA1Notation', () => {
|