From 899b34a411069b4bc6d0c6c666eec51d44ca18e2 Mon Sep 17 00:00:00 2001 From: Mathieu Bour Date: Wed, 7 Aug 2024 14:07:56 +0200 Subject: [PATCH] Export NodeClickHouseClient and WebClickHouseClient as a value (#295) --- CHANGELOG.md | 6 ++++++ packages/client-node/src/index.ts | 4 ++-- packages/client-web/src/index.ts | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index edc4d6d8..0133f30e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.5.0 (Node.js, Web) + +## New features + +- `ClickHouseClient` is now exported as a value from packages, allowing to a better integration in dependency injection frameworks which rely on IoC. + # 1.4.0 (Node.js) ## New features diff --git a/packages/client-node/src/index.ts b/packages/client-node/src/index.ts index d577b6f0..787a0397 100644 --- a/packages/client-node/src/index.ts +++ b/packages/client-node/src/index.ts @@ -1,6 +1,6 @@ -export type { +export { NodeClickHouseClient as ClickHouseClient, - QueryResult, + type QueryResult, } from './client' export { createClient } from './client' export { type NodeClickHouseClientConfigOptions as ClickHouseClientConfigOptions } from './config' diff --git a/packages/client-web/src/index.ts b/packages/client-web/src/index.ts index 25d687b3..090df9ee 100644 --- a/packages/client-web/src/index.ts +++ b/packages/client-web/src/index.ts @@ -1,6 +1,6 @@ -export type { +export { WebClickHouseClient as ClickHouseClient, - QueryResult, + type QueryResult, } from './client' export { createClient } from './client' export { type WebClickHouseClientConfigOptions as ClickHouseClientConfigOptions } from './config'