@objectstack/core 3.3.1 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/core@3.3.1 build /home/runner/work/spec/spec/packages/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
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CJS Build start
13
13
  ESM dist/index.js 150.14 KB
14
14
  ESM dist/index.js.map 318.23 KB
15
- ESM ⚡️ Build success in 98ms
15
+ ESM ⚡️ Build success in 96ms
16
16
  CJS dist/index.cjs 153.26 KB
17
17
  CJS dist/index.cjs.map 319.94 KB
18
- CJS ⚡️ Build success in 98ms
18
+ CJS ⚡️ Build success in 95ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 3603ms
20
+ DTS ⚡️ Build success in 3210ms
21
21
  DTS dist/index.d.ts 63.13 KB
22
22
  DTS dist/index.d.cts 63.13 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
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
+
3
26
  ## 3.3.1
4
27
 
5
28
  ### 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, SemanticVersion, VersionConstraint, CompatibilityLevel, DependencyConflict } from '@objectstack/spec/kernel';
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, SemanticVersion, VersionConstraint, CompatibilityLevel, DependencyConflict } from '@objectstack/spec/kernel';
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.3.1",
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
- "typescript": "^5.0.0",
18
- "vitest": "^4.1.0",
19
- "@types/node": "^25.5.0"
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": "3.3.1"
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
- DataEngineQueryOptions,
4
+ EngineQueryOptions,
5
5
  DataEngineInsertOptions,
6
- DataEngineUpdateOptions,
7
- DataEngineDeleteOptions,
8
- DataEngineAggregateOptions,
9
- DataEngineCountOptions,
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?: DataEngineQueryOptions): Promise<any[]>;
25
- findOne(objectName: string, query?: DataEngineQueryOptions): Promise<any>;
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?: DataEngineUpdateOptions): Promise<any>;
28
- delete(objectName: string, options?: DataEngineDeleteOptions): Promise<any>;
29
- count(objectName: string, query?: DataEngineCountOptions): Promise<number>;
30
- aggregate(objectName: string, query: DataEngineAggregateOptions): Promise<any[]>;
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?: { filter?: any, limit?: number, select?: string[], threshold?: number }): Promise<any[]>;
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)
package/tsconfig.json CHANGED
@@ -2,7 +2,8 @@
2
2
  "extends": "../../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist",
5
- "rootDir": "./src"
5
+ "rootDir": "./src",
6
+ "types": ["node"]
6
7
  },
7
8
  "include": ["src/**/*"],
8
9
  "exclude": []