Skip to content

Commit 75c3479

Browse files
authored
Merge pull request #178 from objectstack-ai/copilot/migrate-objectstack-spec-version
2 parents 193062b + 9f51864 commit 75c3479

File tree

39 files changed

+144
-482
lines changed

39 files changed

+144
-482
lines changed

examples/showcase/enterprise-erp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@objectql/cli": "workspace:*",
4444
"@objectql/driver-sql": "workspace:*",
4545
"@objectql/platform-node": "workspace:*",
46-
"@objectstack/spec": "^0.2.0",
46+
"@objectstack/spec": "^0.3.1",
4747
"@types/jest": "^30.0.0",
4848
"@types/node": "^20.0.0",
4949
"jest": "^30.2.0",

packages/drivers/excel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@objectql/types": "workspace:*",
24-
"@objectstack/spec": "^0.2.0",
24+
"@objectstack/spec": "^0.3.1",
2525
"exceljs": "^4.4.0"
2626
},
2727
"devDependencies": {

packages/drivers/excel/src/index.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { Data, System } from '@objectstack/spec';
2+
type QueryAST = Data.QueryAST;
3+
type FilterNode = Data.FilterNode;
4+
type SortNode = Data.SortNode;
5+
type DriverInterface = System.DriverInterface;
16
/**
27
* ObjectQL
38
* Copyright (c) 2026-present ObjectStack Inc.
@@ -30,7 +35,6 @@
3035
*/
3136

3237
import { Driver, ObjectQLError } from '@objectql/types';
33-
import { DriverInterface, QueryAST, FilterNode, SortNode } from '@objectstack/spec';
3438
import * as ExcelJS from 'exceljs';
3539
import * as fs from 'fs';
3640
import * as path from 'path';
@@ -102,7 +106,7 @@ export interface ExcelDriverConfig {
102106
* the standard DriverInterface from @objectstack/spec for compatibility
103107
* with the new kernel-based plugin system.
104108
*/
105-
export class ExcelDriver implements Driver, DriverInterface {
109+
export class ExcelDriver implements Driver {
106110
// Driver metadata (ObjectStack-compatible)
107111
public readonly name = 'ExcelDriver';
108112
public readonly version = '4.0.0';
@@ -111,7 +115,13 @@ export class ExcelDriver implements Driver, DriverInterface {
111115
joins: false,
112116
fullTextSearch: false,
113117
jsonFields: true,
114-
arrayFields: true
118+
arrayFields: true,
119+
queryFilters: true,
120+
queryAggregations: false,
121+
querySorting: true,
122+
queryPagination: true,
123+
queryWindowFunctions: false,
124+
querySubqueries: false
115125
};
116126

117127
private config: ExcelDriverConfig;

packages/drivers/fs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"dependencies": {
2828
"@objectql/types": "workspace:*",
29-
"@objectstack/spec": "^0.2.0"
29+
"@objectstack/spec": "^0.3.1"
3030
},
3131
"devDependencies": {
3232
"@types/jest": "^29.0.0",

packages/drivers/fs/src/index.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { Data, System } from '@objectstack/spec';
2+
type QueryAST = Data.QueryAST;
3+
type FilterNode = Data.FilterNode;
4+
type SortNode = Data.SortNode;
5+
type DriverInterface = System.DriverInterface;
16
/**
27
* ObjectQL
38
* Copyright (c) 2026-present ObjectStack Inc.
@@ -35,7 +40,6 @@
3540
import * as fs from 'fs';
3641
import * as path from 'path';
3742
import { Driver, ObjectQLError } from '@objectql/types';
38-
import { DriverInterface, QueryAST, FilterNode, SortNode } from '@objectstack/spec';
3943

4044
/**
4145
* Command interface for executeCommand method
@@ -84,7 +88,7 @@ export interface FileSystemDriverConfig {
8488
* - File: `{dataDir}/{objectName}.json`
8589
* - Content: Array of records `[{id: "1", ...}, {id: "2", ...}]`
8690
*/
87-
export class FileSystemDriver implements Driver, DriverInterface {
91+
export class FileSystemDriver implements Driver {
8892
// Driver metadata (ObjectStack-compatible)
8993
public readonly name = 'FileSystemDriver';
9094
public readonly version = '4.0.0';
@@ -93,7 +97,13 @@ export class FileSystemDriver implements Driver, DriverInterface {
9397
joins: false,
9498
fullTextSearch: false,
9599
jsonFields: true,
96-
arrayFields: true
100+
arrayFields: true,
101+
queryFilters: true,
102+
queryAggregations: false,
103+
querySorting: true,
104+
queryPagination: true,
105+
queryWindowFunctions: false,
106+
querySubqueries: false
97107
};
98108

99109
private config: FileSystemDriverConfig;

packages/drivers/localstorage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@objectql/types": "workspace:*",
24-
"@objectstack/spec": "^0.2.0"
24+
"@objectstack/spec": "^0.3.1"
2525
},
2626
"devDependencies": {
2727
"@types/jest": "^29.0.0",

packages/drivers/localstorage/src/index.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { Data, System } from '@objectstack/spec';
2+
type QueryAST = Data.QueryAST;
3+
type FilterNode = Data.FilterNode;
4+
type SortNode = Data.SortNode;
5+
type DriverInterface = System.DriverInterface;
16
/**
27
* ObjectQL
38
* Copyright (c) 2026-present ObjectStack Inc.
@@ -32,7 +37,6 @@
3237
*/
3338

3439
import { Driver, ObjectQLError } from '@objectql/types';
35-
import { DriverInterface, QueryAST, FilterNode, SortNode } from '@objectstack/spec';
3640

3741
/**
3842
* Command interface for executeCommand method
@@ -80,7 +84,7 @@ export interface LocalStorageDriverConfig {
8084
*
8185
* Example: `objectql:users:user-123` → `{"id":"user-123","name":"Alice",...}`
8286
*/
83-
export class LocalStorageDriver implements Driver, DriverInterface {
87+
export class LocalStorageDriver implements Driver {
8488
// Driver metadata (ObjectStack-compatible)
8589
public readonly name = 'LocalStorageDriver';
8690
public readonly version = '4.0.0';
@@ -89,7 +93,13 @@ export class LocalStorageDriver implements Driver, DriverInterface {
8993
joins: false,
9094
fullTextSearch: false,
9195
jsonFields: true,
92-
arrayFields: true
96+
arrayFields: true,
97+
queryFilters: true,
98+
queryAggregations: false,
99+
querySorting: true,
100+
queryPagination: true,
101+
queryWindowFunctions: false,
102+
querySubqueries: false
93103
};
94104

95105
private config: LocalStorageDriverConfig;

packages/drivers/memory/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@objectql/types": "workspace:*",
24-
"@objectstack/spec": "^0.2.0",
24+
"@objectstack/spec": "^0.3.1",
2525
"mingo": "^7.1.1"
2626
},
2727
"devDependencies": {

packages/drivers/memory/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { Data, System } from '@objectstack/spec';
2+
type QueryAST = Data.QueryAST;
3+
type FilterNode = Data.FilterNode;
4+
type SortNode = Data.SortNode;
5+
type DriverInterface = System.DriverInterface;
16
/**
27
* ObjectQL
38
* Copyright (c) 2026-present ObjectStack Inc.
@@ -34,7 +39,6 @@
3439
*/
3540

3641
import { Driver, ObjectQLError } from '@objectql/types';
37-
import { DriverInterface, QueryAST, FilterNode, SortNode } from '@objectstack/spec';
3842
import { Query } from 'mingo';
3943

4044
/**

packages/drivers/mongo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@objectql/types": "workspace:*",
24-
"@objectstack/spec": "^0.2.0",
24+
"@objectstack/spec": "^0.3.1",
2525
"mongodb": "^5.9.2"
2626
},
2727
"devDependencies": {

0 commit comments

Comments
 (0)