@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/compute",
3
- "version": "0.8.4-main.c1de068",
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.0",
46
+ "effect": "3.17.7",
44
47
  "hyperformula": "^2.7.1",
45
48
  "lodash.defaultsdeep": "^4.6.1",
46
- "@dxos/client": "0.8.4-main.c1de068",
47
- "@dxos/context": "0.8.4-main.c1de068",
48
- "@dxos/async": "0.8.4-main.c1de068",
49
- "@dxos/debug": "0.8.4-main.c1de068",
50
- "@dxos/echo": "0.8.4-main.c1de068",
51
- "@dxos/echo-db": "0.8.4-main.c1de068",
52
- "@dxos/echo-schema": "0.8.4-main.c1de068",
53
- "@dxos/functions": "0.8.4-main.c1de068",
54
- "@dxos/invariant": "0.8.4-main.c1de068",
55
- "@dxos/keys": "0.8.4-main.c1de068",
56
- "@dxos/live-object": "0.8.4-main.c1de068",
57
- "@dxos/log": "0.8.4-main.c1de068",
58
- "@dxos/schema": "0.8.4-main.c1de068",
59
- "@dxos/util": "0.8.4-main.c1de068",
60
- "@dxos/protocols": "0.8.4-main.c1de068"
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-db": "0.8.4-main.c1de068",
66
- "@dxos/echo-schema": "0.8.4-main.c1de068",
67
- "@dxos/random": "0.8.4-main.c1de068"
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 SpaceId, type Space } from '@dxos/client/echo';
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';
@@ -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, Filter, fullyQualifiedId } from '@dxos/client/echo';
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
- defaultFunctions,
22
+ EDGE_FUNCTION_NAME,
23
23
  FunctionContext,
24
24
  type FunctionContextOptions,
25
25
  type FunctionDefinition,
26
- EDGE_FUNCTION_NAME,
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 { debounce, type CleanupFn } from '@dxos/async';
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, ErrorType, EmptyValue, FunctionPlugin, type HyperFormula } from '#hyperformula';
15
+ import { CellError, EmptyValue, ErrorType, FunctionPlugin, type HyperFormula } from '#hyperformula';
16
16
 
17
17
  // TODO(burdon): Create API gateways:
18
18
  // https://publicapis.io
@@ -2,7 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { describe, test, expect } from 'vitest';
5
+ import { describe, expect, test } from 'vitest';
6
6
 
7
7
  import { HyperFormula } from '#hyperformula';
8
8
 
@@ -2,10 +2,10 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { getIndices, sortByIndex, getIndicesBelow, getIndicesAbove, getIndicesBetween } from '@tldraw/indices';
5
+ import { getIndices, getIndicesAbove, getIndicesBelow, getIndicesBetween, sortByIndex } from '@tldraw/indices';
6
6
  import { describe, expect, test } from 'vitest';
7
7
 
8
- import { inRange, addressFromA1Notation, addressToA1Notation, rangeFromA1Notation, rangeToA1Notation } from './types';
8
+ import { addressFromA1Notation, addressToA1Notation, inRange, rangeFromA1Notation, rangeToA1Notation } from './types';
9
9
 
10
10
  describe('cell', () => {
11
11
  test('posToA1Notation', () => {