Skip to content

Commit

Permalink
chore: tsconfig - target es2022 (Node.js 18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Sep 12, 2024
1 parent 678a13a commit 8432069
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
4 changes: 1 addition & 3 deletions packages/cubejs-firebolt-driver/src/FireboltQuery.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseFilter, BaseQuery, ParamAllocator } from '@cubejs-backend/schema-compiler';
import { BaseFilter, BaseQuery } from '@cubejs-backend/schema-compiler';

const GRANULARITY_TO_INTERVAL: Record<string, string> = {
day: 'DAY',
Expand All @@ -22,8 +22,6 @@ class FireboltFilter extends BaseFilter {
}

export class FireboltQuery extends BaseQuery {
public paramAllocator!: ParamAllocator;

public convertTz(field: string) {
return `${field} AT TIME ZONE '${this.timezone}'`;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { BaseQueueEventsBus } from './BaseQueueEventsBus';

export class LocalQueueEventsBus extends BaseQueueEventsBus {
protected readonly subscribers: Record<string, any>;

public emit(event) {
Promise.all(Object.values(this.subscribers).map(({ callback }) => callback(event)))
.catch(err => console.error(err));
Expand Down
8 changes: 4 additions & 4 deletions packages/cubejs-server-core/test/unit/OptsHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import { CubejsServerCore } from '../../src/core/server';
import { CreateOptions, SystemOptions } from '../../src/core/types';

class CubejsServerCoreExposed extends CubejsServerCore {
public options: ServerCoreInitializedOptions;
public options: ServerCoreInitializedOptions = super.options;

public optsHandler: OptsHandler;
public optsHandler: OptsHandler = super.optsHandler;

public contextToDbType: DbTypeAsyncFn;
public contextToDbType: DbTypeAsyncFn = super.contextToDbType;

public contextToExternalDbType: ExternalDbTypeFn;
public contextToExternalDbType: ExternalDbTypeFn = super.contextToExternalDbType;

public apiGateway = super.apiGateway;

Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-server-core/test/unit/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import { OrchestratorApiOptions } from '../../src/core/OrchestratorApi';

// It's just a mock to open protected methods
class CubejsServerCoreOpen extends CubejsServerCore {
public readonly optsHandler: OptsHandler;
public readonly optsHandler: OptsHandler = super.optsHandler;

public readonly options: ServerCoreInitializedOptions;
public readonly options: ServerCoreInitializedOptions = super.options;

public getRefreshScheduler = super.getRefreshScheduler;

Expand Down
5 changes: 3 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"_version": "18.2.0",
"exclude": [
"node_modules",
"dist",
],
"files": [],
"compilerOptions": {
"incremental": true,
"lib": ["es2021"],
"target": "es2021",
"lib": ["es2023"],
"target": "es2022",
"module": "commonjs",
"baseUrl": ".",
"paths": {
Expand Down

0 comments on commit 8432069

Please sign in to comment.