Important Changes
- The return type of
query
is nowstring | T
. - The return type of
queryPromise
is nowstring | T[]
. - Queries will now return
T
orT[]
for JSON formats, andstring
for non-JSON formats. - The library won't allow queries with unsupported formats anymore.
- Axios HTTP configuration and ClickHouse HTTP Interface Settings are now separate options.
Features
- Added Parametrized Query Capabilities. Thanks to @antoniovizuete.
- Added
maxBodyLength
andmaxContentLength
HTTP configurations, both defaults toInfinity
- Added support for formats:
- TabSeparated
- TabSeparatedRaw
- TabSeparatedWithNames
- TabSeparatedWithNamesAndTypes
- TabSeparatedRawWithNames
- TabSeparatedRawWithNamesAndTypes
- CSV
- CSVWithNames
- CSVWithNamesAndTypes
- CustomSeparated
- CustomSeparatedWithNames
- CustomSeparatedWithNamesAndTypes
- Values
- Vertical
- TSV
- JSON
- JSONStrings
- JSONCompact
- JSONCompactStrings
- TSKV
- Pretty
- PrettyNoEscapes
- PrettyCompact
- PrettyCompactNoEscapes
- PrettyCompactMonoBlock
- PrettySpace
- PrettySpaceNoEscapes
- Null
- LineAsString
Fixes
AxiosError
<unknown>
typing error.queryPromise
memory consumption.
Security
- Update
@nestjs/nest-cli
to avoid CVE-2022-25858
Special thanks to @vgorkavenko.