Commit 1 of 1:
2be5996173
chore: drop imports nothing uses
whole branch
Review threads live on the whole diff, not on one commit, so
none are shown here - a thread's line means something in the
branch's final form, and painting it into an intermediate
step would put it on code it is not about.
packages/bun-query-builder/src/actions/db-optimize.ts modified +0 -1 Changes to packages/bun-query-builder/src/actions/db-optimize.ts @@ -1,6 +1,5 @@ 1 1 import type { SupportedDialect } from '@/types' 2 2 import { isMysqlLike , resolveDialect } from '@/config' 3 - import process from 'node:process' 4 3 import { bunSql , resolveDatabaseName } from '@/db' 5 4 6 5 export interface OptimizeOptions {
packages/bun-query-builder/src/actions/db-wipe.ts modified +0 -1 Changes to packages/bun-query-builder/src/actions/db-wipe.ts @@ -1,6 +1,5 @@ 1 1 import type { SupportedDialect } from '@/types' 2 2 import { isMysqlLike , resolveDialect } from '@/config' 3 - import process from 'node:process' 4 3 import { bunSql , resolveDatabaseName } from '@/db' 5 4 6 5 export interface WipeOptions {
packages/bun-query-builder/src/actions/migrate-rollback.ts modified +1 -2 Changes to packages/bun-query-builder/src/actions/migrate-rollback.ts @@ -1,6 +1,5 @@ 1 1 import { existsSync , readFileSync , unlinkSync } from 'node:fs' 2 - import { dirname , join } from 'node:path' 3 - import process from 'node:process' 2 + import { join } from 'node:path' 4 3 import type { SupportedDialect } from '../types' 5 4 import { config , getPlaceholder , isMysqlLike } from '../config' 6 5 import { createQueryBuilder } from '../index'
packages/bun-query-builder/src/actions/migrate-status.ts modified +0 -2 Changes to packages/bun-query-builder/src/actions/migrate-status.ts @@ -1,7 +1,5 @@ 1 1 import type { SupportedDialect } from '@/types' 2 2 import { existsSync , readdirSync } from 'node:fs' 3 - import { dirname , join } from 'node:path' 4 - import process from 'node:process' 5 3 import { config } from '@/config' 6 4 import { getDialectDriver } from '@/drivers' 7 5 import { createQueryBuilder } from '../index'
packages/bun-query-builder/src/client.ts modified +1 -1 Changes to packages/bun-query-builder/src/client.ts ⋯ 4 lines Show the 4 lines above this hunk @@ -5,7 +5,7 @@ import { Buffer } from 'node:buffer' 5 5 import { serialize } from 'node:v8' 6 6 import type { SchemaMeta } from './meta' 7 7 import type { ResolvedPivot } from './pivot' 8 - import type { DatabaseSchema , AnyDatabaseSchema } from './schema' 8 + import type { AnyDatabaseSchema } from './schema' 9 9 import type { QueryBuilderOptions , QueryHooks , SupportedDialect } from './types' 10 10 import { config , getPlaceholder , getPlaceholders , isMysqlLike , setConfig } from './config' 11 11 import type { DriverConnection , DriverQuery } from './db'
packages/bun-query-builder/src/dynamodb-client.ts modified +0 -5 Changes to packages/bun-query-builder/src/dynamodb-client.ts ⋯ 5 lines Show the 5 lines above this hunk @@ -6,18 +6,13 @@6 6 * / 7 7 8 8 import type { 9 - DynamoDBBatchGetItemParams , 10 - DynamoDBBatchWriteItemParams , 11 9 DynamoDBComparisonOperator , 12 10 DynamoDBCondition , 13 11 DynamoDBConfig , 14 - DynamoDBDeleteItemParams , 15 12 DynamoDBDriver , 16 - DynamoDBGetItemParams , 17 13 DynamoDBPutItemParams , 18 14 DynamoDBQueryParams , 19 15 DynamoDBScanParams , 20 - DynamoDBTransactWriteParams , 21 16 DynamoDBUpdateItemParams , 22 17 SingleTableEntityMapping , 23 18 } from './drivers/dynamodb'
packages/bun-query-builder/src/dynamodb-single-table.ts modified +0 -4 Changes to packages/bun-query-builder/src/dynamodb-single-table.ts ⋯ 12 lines Show the 12 lines above this hunk @@ -13,13 +13,9 @@13 13 * / 14 14 15 15 import type { 16 - DynamoDBConfig , 17 - DynamoDBDriver , 18 16 DynamoDBGlobalSecondaryIndex , 19 17 DynamoDBTableDefinition , 20 - SingleTableEntityMapping , 21 18 } from './drivers/dynamodb' 22 - import { createDynamoDBDriver } from './drivers/dynamodb' 23 19 import type { DynamoDBFilterOperator , DynamoDBQueryBuilderOptions , DynamoDBValue } from './dynamodb-client' 24 20 import { DynamoDBItemBuilder , DynamoDBQueryBuilder } from './dynamodb-client' 25 21
packages/bun-query-builder/src/dynamodb/migration-driver.ts modified +1 -1 Changes to packages/bun-query-builder/src/dynamodb/migration-driver.ts ⋯ 22 lines Show the 22 lines above this hunk @@ -23,7 +23,7 @@ import type { DynamoDBMigrationPlan, DynamoDBMigrationOperation, DynamoDBMigrati 23 23 import { DynamoDBClient , createClient } from './client' 24 24 import type { DynamoDBClientConfig } from './client' 25 25 import { DynamoDBMigrationTracker } from './migration-tracker' 26 - import { buildMigrationPlan , extractTableDefinition , hashTableDefinition } from './migrations' 26 + import { buildMigrationPlan , extractTableDefinition } from './migrations' 27 27 28 28 29 29
packages/bun-query-builder/src/model.ts modified +1 -1 Changes to packages/bun-query-builder/src/model.ts ⋯ 39 lines Show the 39 lines above this hunk @@ -40,7 +40,7 @@40 40 * `` ` 41 41 * / 42 42 43 - import { createBrowserModel , isBrowser , type BrowserModelDefinition } from './browser' 43 + import { createBrowserModel , type BrowserModelDefinition } from './browser' 44 44 import { clearLocalModels , createModel , type ModelStatic , type ModelDefinition as OrmModelDefinition } from './orm' 45 45 46 46