@objectstack/core 3.2.9 → 3.3.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/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LoggerConfig } from '@objectstack/spec/system';
2
2
  import { Logger, IServiceRegistry } from '@objectstack/spec/contracts';
3
- export { DriverInterface, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
3
+ export { DriverInterface, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
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';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LoggerConfig } from '@objectstack/spec/system';
2
2
  import { Logger, IServiceRegistry } from '@objectstack/spec/contracts';
3
- export { DriverInterface, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
3
+ export { DriverInterface, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/core",
3
- "version": "3.2.9",
3
+ "version": "3.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Microkernel Core for ObjectStack",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "pino": "^10.3.1",
23
23
  "pino-pretty": "^13.1.3",
24
24
  "zod": "^4.3.6",
25
- "@objectstack/spec": "3.2.9"
25
+ "@objectstack/spec": "3.3.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "pino": "^8.0.0"
@@ -7,9 +7,7 @@ import {
7
7
  DataEngineDeleteOptions,
8
8
  DataEngineAggregateOptions,
9
9
  DataEngineCountOptions,
10
- DataEngineRequest, // Added Request type for batch
11
- QueryAST,
12
- DriverOptions
10
+ DataEngineRequest,
13
11
  } from '@objectstack/spec/data';
14
12
 
15
13
  /**
@@ -47,30 +45,9 @@ export interface IDataEngine {
47
45
  execute?(command: any, options?: Record<string, any>): Promise<any>;
48
46
  }
49
47
 
50
- export interface DriverInterface {
51
- name: string;
52
- version: string;
53
- connect(): Promise<void>;
54
- disconnect(): Promise<void>;
55
-
56
- find(object: string, query: QueryAST, options?: DriverOptions): Promise<any[]>;
57
- findOne(object: string, query: QueryAST, options?: DriverOptions): Promise<any>;
58
- create(object: string, data: any, options?: DriverOptions): Promise<any>;
59
- update(object: string, id: any, data: any, options?: DriverOptions): Promise<any>;
60
- delete(object: string, id: any, options?: DriverOptions): Promise<any>;
61
-
62
- /**
63
- * Bulk & Batch Operations
64
- */
65
- bulkCreate?(object: string, data: any[], options?: DriverOptions): Promise<any>;
66
- updateMany?(object: string, query: QueryAST, data: any, options?: DriverOptions): Promise<any>;
67
- deleteMany?(object: string, query: QueryAST, options?: DriverOptions): Promise<any>;
68
-
69
- count?(object: string, query: QueryAST, options?: DriverOptions): Promise<number>;
70
-
71
- /**
72
- * Raw Execution
73
- */
74
- execute?(command: any, params?: any, options?: DriverOptions): Promise<any>;
75
- }
48
+ /**
49
+ * @deprecated Use `IDataDriver` from `@objectstack/spec/contracts` instead.
50
+ * This type is re-exported from `@objectstack/spec/contracts` for backward compatibility only.
51
+ */
52
+ export type { DriverInterface } from '@objectstack/spec/contracts';
76
53
 
package/src/index.ts CHANGED
@@ -44,5 +44,7 @@ export type {
44
44
  RouteHandler,
45
45
  Middleware,
46
46
  IDataEngine,
47
+ IDataDriver,
48
+ /** @deprecated Use `IDataDriver` instead */
47
49
  DriverInterface
48
50
  } from '@objectstack/spec/contracts';