@dxos/index-core 0.9.1-main.c7dcc2e112 → 0.10.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/dist/lib/neutral/index.mjs.map +1 -1
- package/dist/types/src/index-engine.d.ts +1 -1
- package/dist/types/src/index-engine.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +6 -6
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/indexes/entity-meta-index.d.ts +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/index-engine.test.ts +2 -2
- package/src/index-engine.ts +2 -2
- package/src/index.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/index-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Indexing core.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@effect/experimental": "0.60.0",
|
|
28
|
-
"@effect/platform": "0.96.
|
|
28
|
+
"@effect/platform": "0.96.2",
|
|
29
29
|
"@effect/sql": "0.51.1",
|
|
30
|
-
"effect": "3.21.
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/keys": "0.
|
|
36
|
-
"@dxos/
|
|
30
|
+
"effect": "3.21.4",
|
|
31
|
+
"@dxos/echo": "0.10.0",
|
|
32
|
+
"@dxos/context": "0.10.0",
|
|
33
|
+
"@dxos/echo-protocol": "0.10.0",
|
|
34
|
+
"@dxos/invariant": "0.10.0",
|
|
35
|
+
"@dxos/keys": "0.10.0",
|
|
36
|
+
"@dxos/sql-sqlite": "0.10.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@effect/sql-sqlite-node": "0.52.0"
|
package/src/index-engine.test.ts
CHANGED
|
@@ -16,7 +16,7 @@ import * as SqlTransaction from '@dxos/sql-sqlite/SqlTransaction';
|
|
|
16
16
|
|
|
17
17
|
import { type DataSourceCursor, type IndexDataSource, IndexEngine, type IndexingResult } from './index-engine';
|
|
18
18
|
import { type IndexCursor, IndexTracker } from './index-tracker';
|
|
19
|
-
import { FtsIndex, type IndexerObject,
|
|
19
|
+
import { EntityMetaIndex, FtsIndex, type IndexerObject, ReverseRefIndex } from './indexes';
|
|
20
20
|
|
|
21
21
|
const TYPE_DEFAULT = DXN.make('com.example.type.Type', '0.1.0');
|
|
22
22
|
const TYPE_A = DXN.make('com.example.type.TypeA', '0.1.0');
|
|
@@ -376,7 +376,7 @@ describe('IndexEngine', () => {
|
|
|
376
376
|
createdAt: null,
|
|
377
377
|
updatedAt: Date.now(),
|
|
378
378
|
data: {
|
|
379
|
-
id: EntityId.random(),
|
|
379
|
+
'id': EntityId.random(),
|
|
380
380
|
[ATTR_TYPE]: TYPE_DEFAULT,
|
|
381
381
|
'@deleted': true,
|
|
382
382
|
},
|
package/src/index-engine.ts
CHANGED
|
@@ -13,13 +13,13 @@ import * as SqlTransaction from '@dxos/sql-sqlite/SqlTransaction';
|
|
|
13
13
|
|
|
14
14
|
import { type IndexCursor, IndexTracker } from './index-tracker';
|
|
15
15
|
import {
|
|
16
|
+
type EntityMeta,
|
|
17
|
+
EntityMetaIndex,
|
|
16
18
|
FtsIndex,
|
|
17
19
|
type FtsQuery,
|
|
18
20
|
type FtsQueryResult,
|
|
19
21
|
type Index,
|
|
20
22
|
type IndexerObject,
|
|
21
|
-
type EntityMeta,
|
|
22
|
-
EntityMetaIndex,
|
|
23
23
|
ReverseRefIndex,
|
|
24
24
|
type ReverseRefQuery,
|
|
25
25
|
} from './indexes';
|
package/src/index.ts
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
export {
|
|
6
|
-
IndexEngine,
|
|
7
|
-
type IndexDataSource,
|
|
8
6
|
type DataSourceCursor,
|
|
7
|
+
type IndexDataSource,
|
|
8
|
+
IndexEngine,
|
|
9
9
|
type IndexEngineParams,
|
|
10
10
|
type IndexingResult,
|
|
11
11
|
} from './index-engine';
|
|
12
|
-
export {
|
|
13
|
-
export { type
|
|
12
|
+
export { type IndexCursor, IndexTracker } from './index-tracker';
|
|
13
|
+
export { type Index, type IndexerObject } from './indexes/interface';
|
|
14
14
|
export { FtsIndex, type FtsQuery } from './indexes/fts-index';
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
15
|
+
export { type EntityMeta, EntityMetaIndex } from './indexes/entity-meta-index';
|
|
16
|
+
export { type ReverseRef, ReverseRefIndex, type ReverseRefQuery } from './indexes/reverse-ref-index';
|
|
17
|
+
export { type EntityPropPath, EscapedPropPath } from './utils';
|