@objectstack/core 3.3.0 → 4.0.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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +29 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/contracts/data-engine.ts +16 -12
- package/tsconfig.json +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/core@
|
|
2
|
+
> @objectstack/core@4.0.0 build /home/runner/work/spec/spec/packages/core
|
|
3
3
|
> tsup --config ../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[32mESM[39m [1mdist/index.js [22m[32m150.14 KB[39m
|
|
14
14
|
[32mESM[39m [1mdist/index.js.map [22m[32m318.23 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 96ms
|
|
16
16
|
[32mCJS[39m [1mdist/index.cjs [22m[32m153.26 KB[39m
|
|
17
17
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m319.94 KB[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 95ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 3210ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m63.13 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m63.13 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @objectstack/core
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e0b0a78: Deprecate DataEngineQueryOptions in favor of QueryAST-aligned EngineQueryOptions.
|
|
8
|
+
|
|
9
|
+
Engine, Protocol, and Client now use standard QueryAST parameter names:
|
|
10
|
+
|
|
11
|
+
- `filter` → `where`
|
|
12
|
+
- `select` → `fields`
|
|
13
|
+
- `sort` → `orderBy`
|
|
14
|
+
- `skip` → `offset`
|
|
15
|
+
- `populate` → `expand`
|
|
16
|
+
- `top` → `limit`
|
|
17
|
+
|
|
18
|
+
The old DataEngine\* schemas and types are preserved with `@deprecated` markers for backward compatibility.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [f08ffc3]
|
|
23
|
+
- Updated dependencies [e0b0a78]
|
|
24
|
+
- @objectstack/spec@4.0.0
|
|
25
|
+
|
|
26
|
+
## 3.3.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- @objectstack/spec@3.3.1
|
|
31
|
+
|
|
3
32
|
## 3.3.0
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { DriverInterface, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse,
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { ConflictResolutionStrategy, ApiRegistryEntryInput, ApiRegistryEntry, ApiDiscoveryQuery, ApiDiscoveryResponse, ApiEndpointRegistration, ApiRegistry as ApiRegistry$1 } from '@objectstack/spec/api';
|
|
6
6
|
import { QA } from '@objectstack/spec';
|
|
7
|
-
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig, KernelSecurityScanResult, KernelSecurityVulnerability, PluginHealthCheck, PluginHealthStatus as PluginHealthStatus$1, PluginHealthReport, HotReloadConfig,
|
|
7
|
+
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig, KernelSecurityScanResult, KernelSecurityVulnerability, PluginHealthCheck, PluginHealthStatus as PluginHealthStatus$1, PluginHealthReport, HotReloadConfig, VersionConstraint, DependencyConflict, SemanticVersion, CompatibilityLevel } from '@objectstack/spec/kernel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Service Lifecycle Types
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { DriverInterface, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse,
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { ConflictResolutionStrategy, ApiRegistryEntryInput, ApiRegistryEntry, ApiDiscoveryQuery, ApiDiscoveryResponse, ApiEndpointRegistration, ApiRegistry as ApiRegistry$1 } from '@objectstack/spec/api';
|
|
6
6
|
import { QA } from '@objectstack/spec';
|
|
7
|
-
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig, KernelSecurityScanResult, KernelSecurityVulnerability, PluginHealthCheck, PluginHealthStatus as PluginHealthStatus$1, PluginHealthReport, HotReloadConfig,
|
|
7
|
+
import { PluginCapability, PermissionSet, ResourceType, PermissionAction, Permission, SandboxConfig, KernelSecurityScanResult, KernelSecurityVulnerability, PluginHealthCheck, PluginHealthStatus as PluginHealthStatus$1, PluginHealthReport, HotReloadConfig, VersionConstraint, DependencyConflict, SemanticVersion, CompatibilityLevel } from '@objectstack/spec/kernel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Service Lifecycle Types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Microkernel Core for ObjectStack",
|
|
6
6
|
"type": "module",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
17
|
+
"@types/node": "^25.5.0",
|
|
18
|
+
"typescript": "^6.0.2",
|
|
19
|
+
"vitest": "^4.1.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"pino": "^10.3.1",
|
|
23
23
|
"pino-pretty": "^13.1.3",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@objectstack/spec": "
|
|
25
|
+
"@objectstack/spec": "4.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"pino": "^8.0.0"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
EngineQueryOptions,
|
|
5
5
|
DataEngineInsertOptions,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
EngineUpdateOptions,
|
|
7
|
+
EngineDeleteOptions,
|
|
8
|
+
EngineAggregateOptions,
|
|
9
|
+
EngineCountOptions,
|
|
10
10
|
DataEngineRequest,
|
|
11
11
|
} from '@objectstack/spec/data';
|
|
12
12
|
|
|
@@ -17,22 +17,26 @@ import {
|
|
|
17
17
|
* Following the Dependency Inversion Principle - plugins depend on this interface,
|
|
18
18
|
* not on concrete database implementations.
|
|
19
19
|
*
|
|
20
|
+
* All query methods use standard QueryAST parameter names
|
|
21
|
+
* (where/fields/orderBy/limit/offset/expand) to eliminate mechanical translation
|
|
22
|
+
* between the Engine and Driver layers.
|
|
23
|
+
*
|
|
20
24
|
* Aligned with 'src/data/data-engine.zod.ts' in @objectstack/spec.
|
|
21
25
|
*/
|
|
22
26
|
|
|
23
27
|
export interface IDataEngine {
|
|
24
|
-
find(objectName: string, query?:
|
|
25
|
-
findOne(objectName: string, query?:
|
|
28
|
+
find(objectName: string, query?: EngineQueryOptions): Promise<any[]>;
|
|
29
|
+
findOne(objectName: string, query?: EngineQueryOptions): Promise<any>;
|
|
26
30
|
insert(objectName: string, data: any | any[], options?: DataEngineInsertOptions): Promise<any>;
|
|
27
|
-
update(objectName: string, data: any, options?:
|
|
28
|
-
delete(objectName: string, options?:
|
|
29
|
-
count(objectName: string, query?:
|
|
30
|
-
aggregate(objectName: string, query:
|
|
31
|
+
update(objectName: string, data: any, options?: EngineUpdateOptions): Promise<any>;
|
|
32
|
+
delete(objectName: string, options?: EngineDeleteOptions): Promise<any>;
|
|
33
|
+
count(objectName: string, query?: EngineCountOptions): Promise<number>;
|
|
34
|
+
aggregate(objectName: string, query: EngineAggregateOptions): Promise<any[]>;
|
|
31
35
|
|
|
32
36
|
/**
|
|
33
37
|
* Vector Search (AI/RAG)
|
|
34
38
|
*/
|
|
35
|
-
vectorFind?(objectName: string, vector: number[], options?: {
|
|
39
|
+
vectorFind?(objectName: string, vector: number[], options?: { where?: any, limit?: number, fields?: string[], threshold?: number }): Promise<any[]>;
|
|
36
40
|
|
|
37
41
|
/**
|
|
38
42
|
* Batch Operations (Transactional)
|