Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9da86a2
chore(deps): migrate to TypeScript 6.0.3
ovr Sep 4, 2026
e8684ea
refactor: trim the comments added by the TypeScript 6 migration
ovr Sep 4, 2026
34c9724
build: declare project references between packages
ovr Sep 4, 2026
c08babd
refactor: drop a comment copied onto the wrong option
ovr Sep 4, 2026
1fc6dca
docs: record why schema-compiler cannot use nodenext
ovr Sep 4, 2026
8e08aec
Update packages/cubejs-schema-compiler/tsconfig.json
ovr Sep 4, 2026
4b0a6f5
fix: do not reference packages the Docker images build without
ovr Sep 4, 2026
a88baa6
refactor: drop the comment on the omitted templates reference
ovr Sep 4, 2026
321634c
fix(testing-drivers): construct drivers through the right export
ovr Sep 4, 2026
0413c1e
refactor(base-driver): keep the lazy cloud SDK loads on await import()
ovr Sep 7, 2026
e3f87e5
fix(testing): upgrade Cypress to a version that supports TypeScript 6
ovr Sep 7, 2026
0fe3e19
fix(testing): type-check the Cypress project in yarn tsc
ovr Sep 7, 2026
2e89077
fix(server): load cube.js through await import() again
ovr Sep 7, 2026
b444e30
refactor(server): drop the comments added to the config loader
ovr Sep 7, 2026
8de5e61
refactor(build): enumerate tsconfig types per package
ovr Sep 7, 2026
19cca98
fix(testing): swap cypress-image-snapshot for the maintained fork
ovr Sep 7, 2026
aa77c8a
refactor(build): declare the types each project actually uses
ovr Sep 7, 2026
ebd8f3c
refactor(build): make the declared project graph match the imports
ovr Sep 7, 2026
389b650
fix(build): run driver jest suites with --experimental-vm-modules
ovr Sep 7, 2026
1c7e929
fix(build): run the databricks jest suite with --experimental-vm-modules
ovr Sep 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jest.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
'^uuid$': require.resolve('uuid'),
'^yaml$': require.resolve('yaml'),
'^antlr4$': require.resolve('antlr4'),
'^(\\.{1,2}/.*)\\.js$': '$1',
},
setupFiles: ['../../jest.setup.js'],
snapshotFormat: {
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lint:fix": "lerna run lint:fix",
"tsc": "tsc --build",
"tsc:watch": "tsc --build --watch",
"clean": "rimraf packages/*/{tsconfig.tsbuildinfo,lib,dist}"
"clean": "rimraf packages/*/{tsconfig.tsbuildinfo,lib,dist} packages/cubejs-testing/cypress/{tsconfig.tsbuildinfo,dist}"
},
"author": "Cube Dev, Inc.",
"dependencies": {
Expand All @@ -46,7 +46,9 @@
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/eslint-plugin": "^8.46.0",
"@typescript-eslint/parser": "^8.46.0",
"eslint": "^8.57.1",
"@types/fs-extra": "^9.0.1",
"@types/jest": "^29",
"husky": "^5.0.4",
Expand All @@ -59,7 +61,7 @@
"rollup": "2.80.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-tsconfig-paths": "^1.5.2",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/cubejs-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@
"@types/jsonwebtoken": "^9.0.2",
"@types/jwk-to-pem": "^2.0.0",
"@types/mysql": "^2.15.19",
"@types/node": "^22",
"@types/node-fetch": "^2.5.8",
"@types/ramda": "^0.27.32",
"@types/supertest": "^2.0.10",
"jest": "^29",
"mysql": "^2.18.1",
"should": "^13.2.3",
"supertest": "^4.0.2",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"license": "Apache-2.0",
"eslintConfig": {
Expand Down
7 changes: 6 additions & 1 deletion packages/cubejs-api-gateway/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
"test/**/*"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
"allowJs": true,
"noImplicitAny": false,
},
"references": [
{ "path": "../cubejs-backend-native" },
{ "path": "../cubejs-backend-shared" },
{ "path": "../cubejs-query-orchestrator" }
]
}
8 changes: 5 additions & 3 deletions packages/cubejs-athena-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"tsc": "tsc",
"watch": "tsc -w",
"test": "yarn integration",
"unit": "jest --verbose dist/test/unit",
"unit": "NODE_OPTIONS=--experimental-vm-modules jest --verbose dist/test/unit",
"integration": "npm run integration:athena",
"integration:athena": "jest --verbose dist/test",
"integration:athena": "NODE_OPTIONS=--experimental-vm-modules jest --verbose dist/test",
"lint": "eslint src/* --ext .ts",
"lint:fix": "eslint --fix src/* --ext .ts"
},
Expand All @@ -37,8 +37,10 @@
"devDependencies": {
"@cubejs-backend/linter": "1.7.35",
"@cubejs-backend/testing-shared": "1.7.35",
"@types/jest": "^29",
"@types/node": "^22",
"@types/ramda": "^0.27.40",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"publishConfig": {
"access": "public"
Expand Down
9 changes: 7 additions & 2 deletions packages/cubejs-athena-driver/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
"test"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
}
},
"references": [
{ "path": "../cubejs-backend-shared" },
{ "path": "../cubejs-base-driver" },
{ "path": "../cubejs-testing-shared" }
]
}
3 changes: 2 additions & 1 deletion packages/cubejs-backend-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
"@cubejs-backend/linter": "1.7.35",
"@types/fs-extra": "^9.0.8",
"@types/jest": "^29",
"@types/node": "^22",
"jest": "^29",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"dependencies": {
"@cubejs-backend/dotenv": "^9.0.2",
Expand Down
7 changes: 5 additions & 2 deletions packages/cubejs-backend-cloud/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
"test"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"strictPropertyInitialization": true,
}
},
"references": [
{ "path": "../cubejs-backend-shared" }
]
}
2 changes: 1 addition & 1 deletion packages/cubejs-backend-maven/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/jest": "^29",
"@types/node": "^22",
"jest": "^29",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 5 additions & 2 deletions packages/cubejs-backend-maven/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
"test"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
}
},
"references": [
{ "path": "../cubejs-backend-shared" }
]
}
2 changes: 1 addition & 1 deletion packages/cubejs-backend-native/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export const buildSqlAndParams = (cubeEvaluator: any): any[] => {

export type ResultRow = Record<string, string>;

export const parseCubestoreResultMessage = async (message: ArrayBuffer): Promise<ResultWrapper> => {
export const parseCubestoreResultMessage = async (message: Buffer): Promise<ResultWrapper> => {
const native = loadNative();

const msg = await native.parseCubestoreResultMessage(message) as NativeQueryResultRef;
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-backend-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"jest": "^29",
"jest-bench": "^29",
"pg": "^8.11.3",
"typescript": "~5.2.2",
"typescript": "~6.0.3",
"uuid": "^11.1.1"
},
"dependencies": {
Expand Down
7 changes: 5 additions & 2 deletions packages/cubejs-backend-native/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
"test/snapshotResolver.js"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
"allowJs": true,
}
},
"references": [
{ "path": "../cubejs-backend-shared" }
]
}
4 changes: 2 additions & 2 deletions packages/cubejs-backend-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@types/shelljs": "^0.8.5",
"@types/throttle-debounce": "^2.1.0",
"jest": "^29",
"ts-jest": "^29",
"typescript": "~5.2.2"
"ts-jest": "^29.4.12",
"typescript": "~6.0.3"
},
"dependencies": {
"@oclif/color": "^0.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-backend-shared/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ const variables: Record<string, (...args: any) => any> = {

type Vars = typeof variables;

export function getEnv<T extends keyof Vars>(key: T, opts?: Parameters<Vars[T]>): ReturnType<Vars[T]> {
export function getEnv<T extends keyof Vars>(key: T, opts?: Parameters<Vars[T]>[0]): ReturnType<Vars[T]> {
if (key in variables) {
return variables[key](opts);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-backend-shared/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"test"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
}
}
6 changes: 3 additions & 3 deletions packages/cubejs-base-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"tsc": "tsc",
"watch": "tsc -w",
"test": "npm run unit && npm run integration",
"unit": "jest --runInBand --coverage --verbose test/unit",
"unit": "NODE_OPTIONS=--experimental-vm-modules jest --runInBand --coverage --verbose test/unit",
Comment thread
claude[bot] marked this conversation as resolved.
"lint": "eslint src/* test/* --ext .ts,.js",
"lint:fix": "eslint --fix src/* test/* --ext .ts,.js"
},
Expand All @@ -41,8 +41,8 @@
"@types/jest": "^29",
"@types/node": "^22",
"jest": "^29",
"ts-jest": "^29",
"typescript": "~5.2.2"
"ts-jest": "^29.4.12",
"typescript": "~6.0.3"
},
"license": "Apache-2.0",
"eslintConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/cubejs-base-driver/src/BaseDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ export abstract class BaseDriver implements DriverInterface {
prefix: string
): Promise<string[]> {
// Lazy loading, because it's using azure SDK, which is quite heavy.
return (await import('./storage-fs/aws.fs')).extractUnloadedFilesFromS3(clientOptions, bucketName, prefix);
return (await import('./storage-fs/aws.fs.js')).extractUnloadedFilesFromS3(clientOptions, bucketName, prefix);
}

/**
Expand All @@ -698,7 +698,7 @@ export abstract class BaseDriver implements DriverInterface {
tableName: string
): Promise<string[]> {
// Lazy loading, because it's using azure SDK, which is quite heavy.
return (await import('./storage-fs/gcs.fs')).extractFilesFromGCS(gcsConfig, bucketName, tableName);
return (await import('./storage-fs/gcs.fs.js')).extractFilesFromGCS(gcsConfig, bucketName, tableName);
}

protected async extractFilesFromAzure(
Expand All @@ -707,6 +707,6 @@ export abstract class BaseDriver implements DriverInterface {
tableName: string
): Promise<string[]> {
// Lazy loading, because it's using azure SDK, which is quite (extremely) heavy.
return (await import('./storage-fs/azure.fs')).extractFilesFromAzure(azureConfig, bucketName, tableName);
return (await import('./storage-fs/azure.fs.js')).extractFilesFromAzure(azureConfig, bucketName, tableName);
}
}
1 change: 0 additions & 1 deletion packages/cubejs-base-driver/tsconfig.jest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"paths": {
"@cubejs-backend/shared": ["../cubejs-backend-shared/src"]
}
Expand Down
5 changes: 4 additions & 1 deletion packages/cubejs-base-driver/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
"test"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
"allowJs": true
},
"references": [
{ "path": "../cubejs-backend-shared" }
]
}
3 changes: 2 additions & 1 deletion packages/cubejs-bigquery-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
"@types/big.js": "^6.2.2",
"@types/dedent": "^0.7.0",
"@types/jest": "^29",
"@types/node": "^22",
"@types/ramda": "^0.27.40",
"jest": "^29",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"license": "Apache-2.0",
"publishConfig": {
Expand Down
9 changes: 7 additions & 2 deletions packages/cubejs-bigquery-driver/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
"package.json"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
"resolveJsonModule": true
}
},
"references": [
{ "path": "../cubejs-backend-shared" },
{ "path": "../cubejs-base-driver" },
{ "path": "../cubejs-testing-shared" }
]
}
2 changes: 1 addition & 1 deletion packages/cubejs-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@types/semver": "^7.5.8",
"husky": "^4.2.3",
"jest": "^29",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"license": "Apache-2.0",
"eslintConfig": {
Expand Down
10 changes: 8 additions & 2 deletions packages/cubejs-cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@
"test"
],
"compilerOptions": {
"types": ["node", "jest"],
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
"allowJs": true,
"checkJs": true,
"noImplicitAny": false,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"strictPropertyInitialization": true,
}
},
"references": [
{ "path": "../cubejs-backend-cloud" },
{ "path": "../cubejs-backend-shared" },
{ "path": "../cubejs-schema-compiler" },
{ "path": "../cubejs-server" }
]
}
9 changes: 5 additions & 4 deletions packages/cubejs-clickhouse-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"watch": "tsc -w",
"lint": "eslint src/* test/* --ext .ts",
"lint:fix": "eslint --fix src/* test/* --ext .ts",
"unit": "jest dist/test/unit",
"integration": "jest dist/test/integration",
"integration:clickhouse": "jest dist/test/integration"
"unit": "NODE_OPTIONS=--experimental-vm-modules jest dist/test/unit",
"integration": "NODE_OPTIONS=--experimental-vm-modules jest dist/test/integration",
"integration:clickhouse": "NODE_OPTIONS=--experimental-vm-modules jest dist/test/integration"
},
"dependencies": {
"@clickhouse/client": "^1.23.1",
Expand All @@ -39,8 +39,9 @@
"@cubejs-backend/linter": "1.7.35",
"@cubejs-backend/testing-shared": "1.7.35",
"@types/jest": "^29",
"@types/node": "^22",
"jest": "^29",
"typescript": "~5.2.2"
"typescript": "~6.0.3"
},
"publishConfig": {
"access": "public"
Expand Down
9 changes: 7 additions & 2 deletions packages/cubejs-clickhouse-driver/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
"test"
],
"compilerOptions": {
"types": ["node", "jest"],
"allowJs": true,
"outDir": "dist",
"rootDir": ".",
"baseUrl": ".",
}
},
"references": [
{ "path": "../cubejs-backend-shared" },
{ "path": "../cubejs-base-driver" },
{ "path": "../cubejs-testing-shared" }
]
}
Loading
Loading