Repository navigation
1.19.0
Improvements
- Re-exported the
ResponseHeaderstype from@clickhouse/clientand@clickhouse/client-web. Previously this type was only available from@clickhouse/client-common; it is now part of the public re-export surface of both flavored packages, alongside the other commonly used types. This is part of an ongoing effort to make@clickhouse/client-commonan internal-only package so downstream consumers can depend solely on@clickhouse/clientor@clickhouse/client-web. (#758)
Bug Fixes
- Enum type parsing now correctly unescapes backslash escape sequences in enum names. Previously,
parseEnumTypereturned enum names with raw escape sequences (e.g.,f\'instead off'). Now it properly decodes escape sequences including\'(single quote),\\(backslash),\n(newline),\t(tab), and\r(carriage return). This matches the behavior of ClickHouse string literals and ensures consistency with how the client encodes strings when sending data to the server. If you were relying on the previous incorrect behavior where backslash escape sequences were preserved in enum names, you will need to update your code to handle properly unescaped values.
Example:
// Before (incorrect):
parseEnumType({
columnType: "Enum8('f\\'' = 1)",
sourceType: "Enum8('f\\'' = 1)",
})
// returned: { values: { 1: "f\\'" } } // with backslash
// After (correct):
parseEnumType({
columnType: "Enum8('f\\'' = 1)",
sourceType: "Enum8('f\\'' = 1)",
})
// returns: { values: { 1: "f'" } } // unescaped