Skip to content

Commit 899b34a

Browse files
authored
Export NodeClickHouseClient and WebClickHouseClient as a value (#295)
1 parent a332672 commit 899b34a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.5.0 (Node.js, Web)
2+
3+
## New features
4+
5+
- `ClickHouseClient` is now exported as a value from packages, allowing to a better integration in dependency injection frameworks which rely on IoC.
6+
17
# 1.4.0 (Node.js)
28

39
## New features

packages/client-node/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export type {
1+
export {
22
NodeClickHouseClient as ClickHouseClient,
3-
QueryResult,
3+
type QueryResult,
44
} from './client'
55
export { createClient } from './client'
66
export { type NodeClickHouseClientConfigOptions as ClickHouseClientConfigOptions } from './config'

packages/client-web/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export type {
1+
export {
22
WebClickHouseClient as ClickHouseClient,
3-
QueryResult,
3+
type QueryResult,
44
} from './client'
55
export { createClient } from './client'
66
export { type WebClickHouseClientConfigOptions as ClickHouseClientConfigOptions } from './config'

0 commit comments

Comments
 (0)