Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions packages/client-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

- Fixed `Array(Date)` / `Array(Date32)` query-parameter binding (and other temporal element types nested in arrays, tuples, and maps). A JS `Date` inside a container was serialized as a bare Unix timestamp (e.g. `[1683244800]`), which the server's `Array(Date)` element parser rejects (`CANNOT_PARSE_INPUT_ASSERTION_FAILED`). Container-nested `Date` values are now emitted as a quoted UTC date string (e.g. `['2023-05-05']`), the one encoding every temporal element type accepts. Note: a `Date` used inside `Array(DateTime)` / `Array(DateTime64)` is now bound at day precision (the time-of-day is dropped), since date-only is the only form `Array(Date)` accepts; scalar `Date` / `DateTime` binding is unchanged. ([#947])

- Re-export ten types from `@clickhouse/client`. All of them are used in the client's own public signatures and were part of the (now deprecated) `@clickhouse/client-common` public API, but were missed when its surface was bundled into and re-exported from the client packages in 1.23.0 ([#845]): `QueryParamsWithFormat` (the `query()` parameter), `PingParams` / `PingParamsWithEndpoint` / `PingParamsWithSelectQuery` (the `ping()` parameter and both members of the union), `ResultJSONType` and `RowJSONType` (returned by `ResultSet.json()` and `Row.json()`), `ResultStream` (returned by `ResultSet.stream()`), and `ClickHouseSummary` / `WithClickHouseSummary` / `WithResponseHeaders` (parts of `InsertResult`, `CommandResult`, and `ExecResult`). ([#997], [#998])

[#947]: https://github.com/ClickHouse/clickhouse-js/pull/947
[#997]: https://github.com/ClickHouse/clickhouse-js/issues/997
[#998]: https://github.com/ClickHouse/clickhouse-js/pull/998

# 1.23.1

Expand Down
10 changes: 10 additions & 0 deletions packages/client-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export {
type BaseClickHouseClientConfigOptions,
type BaseQueryParams,
type QueryParams,
type QueryParamsWithFormat,
type ExecParams,
Comment on lines 12 to 16
type InsertParams,
type InsertValues,
Expand All @@ -37,8 +38,17 @@ export {
type InputJSON,
type InputJSONObjectEachRow,
type BaseResultSet,
type ResultJSONType,
type RowJSONType,
type ResultStream,
type PingResult,
type PingParams,
type PingParamsWithEndpoint,
type PingParamsWithSelectQuery,
type ResponseHeaders,
type ClickHouseSummary,
type WithClickHouseSummary,
type WithResponseHeaders,
type SimpleColumnType,
type ParsedColumnSimple,
type ParsedColumnEnum,
Expand Down
4 changes: 4 additions & 0 deletions packages/client-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

- Fixed `Array(Date)` / `Array(Date32)` query-parameter binding (and other temporal element types nested in arrays, tuples, and maps). A JS `Date` inside a container was serialized as a bare Unix timestamp (e.g. `[1683244800]`), which the server's `Array(Date)` element parser rejects (`CANNOT_PARSE_INPUT_ASSERTION_FAILED`). Container-nested `Date` values are now emitted as a quoted UTC date string (e.g. `['2023-05-05']`), the one encoding every temporal element type accepts. Note: a `Date` used inside `Array(DateTime)` / `Array(DateTime64)` is now bound at day precision (the time-of-day is dropped), since date-only is the only form `Array(Date)` accepts; scalar `Date` / `DateTime` binding is unchanged. ([#947])

- Re-export ten types from `@clickhouse/client-web`. All of them are used in the client's own public signatures and were part of the (now deprecated) `@clickhouse/client-common` public API, but were missed when its surface was bundled into and re-exported from the client packages in 1.23.0 ([#845]): `QueryParamsWithFormat` (the `query()` parameter), `PingParams` / `PingParamsWithEndpoint` / `PingParamsWithSelectQuery` (the `ping()` parameter and both members of the union), `ResultJSONType` and `RowJSONType` (returned by `ResultSet.json()` and `Row.json()`), `ResultStream` (returned by `ResultSet.stream()`), and `ClickHouseSummary` / `WithClickHouseSummary` / `WithResponseHeaders` (parts of `InsertResult`, `CommandResult`, and `ExecResult`). ([#997], [#998])

[#947]: https://github.com/ClickHouse/clickhouse-js/pull/947
[#997]: https://github.com/ClickHouse/clickhouse-js/issues/997
[#998]: https://github.com/ClickHouse/clickhouse-js/pull/998

# 1.23.1

Expand Down
10 changes: 10 additions & 0 deletions packages/client-web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export {
type BaseClickHouseClientConfigOptions,
type BaseQueryParams,
type QueryParams,
type QueryParamsWithFormat,
type ExecParams,
Comment on lines 11 to 15
type InsertParams,
type InsertValues,
Expand All @@ -36,8 +37,17 @@ export {
type InputJSON,
type InputJSONObjectEachRow,
type BaseResultSet,
type ResultJSONType,
type RowJSONType,
type ResultStream,
type PingResult,
type PingParams,
type PingParamsWithEndpoint,
type PingParamsWithSelectQuery,
type ResponseHeaders,
type ClickHouseSummary,
type WithClickHouseSummary,
type WithResponseHeaders,
type SimpleColumnType,
type ParsedColumnSimple,
type ParsedColumnEnum,
Expand Down