Skip to content

2.0.0

Compare
Choose a tag to compare
@depyronick depyronick released this 24 Nov 13:34
· 16 commits to main since this release

Important Changes

  • The return type of query is now string | T.
  • The return type of queryPromise is now string | T[].
  • Queries will now return T or T[] for JSON formats, and string 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 and maxContentLength HTTP configurations, both defaults to Infinity
  • 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

Special thanks to @vgorkavenko.