@kitedb/core 0.2.4 → 0.2.5
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/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +2 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* KiteDB - A fast, lightweight, embedded graph database for Node.js
|
|
3
3
|
*
|
|
4
4
|
* @example
|
|
5
5
|
* ```typescript
|
|
6
|
-
* import { ray, defineNode, defineEdge, prop, optional } from '
|
|
6
|
+
* import { ray, defineNode, defineEdge, prop, optional } from 'kitedb-core'
|
|
7
7
|
*
|
|
8
8
|
* // Define schema
|
|
9
9
|
* const User = defineNode('user', {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* })
|
|
20
20
|
*
|
|
21
21
|
* // Open database
|
|
22
|
-
* const db = await ray('./my.
|
|
22
|
+
* const db = await ray('./my.kitedb', {
|
|
23
23
|
* nodes: [User],
|
|
24
24
|
* edges: [knows],
|
|
25
25
|
* })
|
|
@@ -67,7 +67,7 @@ export interface RayOptions {
|
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* ```typescript
|
|
70
|
-
* const db = await ray('./my.
|
|
70
|
+
* const db = await ray('./my.kitedb', {
|
|
71
71
|
* nodes: [User, Post],
|
|
72
72
|
* edges: [follows, authored],
|
|
73
73
|
* })
|
|
@@ -86,7 +86,7 @@ export declare function ray(path: string, options: RayOptions): Promise<NativeRa
|
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```typescript
|
|
89
|
-
* const db = raySync('./my.
|
|
89
|
+
* const db = raySync('./my.kitedb', {
|
|
90
90
|
* nodes: [User],
|
|
91
91
|
* edges: [knows],
|
|
92
92
|
* })
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* KiteDB - A fast, lightweight, embedded graph database for Node.js
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```typescript
|
|
7
|
-
* import { ray, defineNode, defineEdge, prop, optional } from '
|
|
7
|
+
* import { ray, defineNode, defineEdge, prop, optional } from 'kitedb-core'
|
|
8
8
|
*
|
|
9
9
|
* // Define schema
|
|
10
10
|
* const User = defineNode('user', {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* })
|
|
21
21
|
*
|
|
22
22
|
* // Open database
|
|
23
|
-
* const db = await ray('./my.
|
|
23
|
+
* const db = await ray('./my.kitedb', {
|
|
24
24
|
* nodes: [User],
|
|
25
25
|
* edges: [knows],
|
|
26
26
|
* })
|
|
@@ -154,7 +154,7 @@ function optionsToNative(options) {
|
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
156
|
* ```typescript
|
|
157
|
-
* const db = await ray('./my.
|
|
157
|
+
* const db = await ray('./my.kitedb', {
|
|
158
158
|
* nodes: [User, Post],
|
|
159
159
|
* edges: [follows, authored],
|
|
160
160
|
* })
|
|
@@ -177,7 +177,7 @@ async function ray(path, options) {
|
|
|
177
177
|
*
|
|
178
178
|
* @example
|
|
179
179
|
* ```typescript
|
|
180
|
-
* const db = raySync('./my.
|
|
180
|
+
* const db = raySync('./my.kitedb', {
|
|
181
181
|
* nodes: [User],
|
|
182
182
|
* edges: [knows],
|
|
183
183
|
* })
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Schema Definition API for
|
|
2
|
+
* Schema Definition API for KiteDB
|
|
3
3
|
*
|
|
4
4
|
* Provides type-safe schema builders for defining graph nodes and edges.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* import { node, edge, prop, optional } from '
|
|
8
|
+
* import { node, edge, prop, optional } from 'kitedb-core'
|
|
9
9
|
*
|
|
10
10
|
* const User = node('user', {
|
|
11
11
|
* key: (id: string) => `user:${id}`,
|
package/dist/schema.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Schema Definition API for
|
|
3
|
+
* Schema Definition API for KiteDB
|
|
4
4
|
*
|
|
5
5
|
* Provides type-safe schema builders for defining graph nodes and edges.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
|
-
* import { node, edge, prop, optional } from '
|
|
9
|
+
* import { node, edge, prop, optional } from 'kitedb-core'
|
|
10
10
|
*
|
|
11
11
|
* const User = node('user', {
|
|
12
12
|
* key: (id: string) => `user:${id}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitedb/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "KiteDB - High-performance embedded graph database with vector search",
|
|
5
5
|
"author": "mask <mask@mask.dev>",
|
|
6
6
|
"homepage": "https://ray-kwaf.vercel.app/",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
23
|
+
"url": "git+https://github.com/mask-software/kitedb.git"
|
|
24
24
|
},
|
|
25
25
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/
|
|
26
|
+
"url": "https://github.com/mask-software/kitedb/issues"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"browser": "browser.js",
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"packageManager": "bun@1.2.4",
|
|
138
138
|
"optionalDependencies": {
|
|
139
|
-
"@kitedb/core-win32-x64-msvc": "0.2.
|
|
140
|
-
"@kitedb/core-darwin-x64": "0.2.
|
|
141
|
-
"@kitedb/core-linux-x64-gnu": "0.2.
|
|
142
|
-
"@kitedb/core-darwin-arm64": "0.2.
|
|
139
|
+
"@kitedb/core-win32-x64-msvc": "0.2.5",
|
|
140
|
+
"@kitedb/core-darwin-x64": "0.2.5",
|
|
141
|
+
"@kitedb/core-linux-x64-gnu": "0.2.5",
|
|
142
|
+
"@kitedb/core-darwin-arm64": "0.2.5"
|
|
143
143
|
}
|
|
144
144
|
}
|