From 6dbce6f54202c9586eef8cf4429bd0fe5c94c4c8 Mon Sep 17 00:00:00 2001 From: Rohit Kadhe Date: Wed, 3 Apr 2024 08:43:27 -0600 Subject: [PATCH 1/2] release v2.0.4 --- .changeset/clever-hotels-cheer.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/clever-hotels-cheer.md diff --git a/.changeset/clever-hotels-cheer.md b/.changeset/clever-hotels-cheer.md new file mode 100644 index 0000000..d688abc --- /dev/null +++ b/.changeset/clever-hotels-cheer.md @@ -0,0 +1,8 @@ +--- +"clickhouse-schema": major +--- +# 2.0.0 + +- Added support for default value checking at compile time. This also means all datatypes are now functions so they need to be called unlike before. So `ClickhouseTypes.CHBoolean` becomes `ClickhouseTypes.CHBoolean()` and this is the same for all data types. +- Refactored type inference to reduce LOC and make it more modular +- Improved validation for `order_by` and `primary_key` options by checking for only compatible keys at compile time From 6f09d55e69308fa46eaaca3dfdf5d8b39facd21f Mon Sep 17 00:00:00 2001 From: Rohit Kadhe Date: Wed, 3 Apr 2024 08:46:38 -0600 Subject: [PATCH 2/2] release v2.0.0 --- .changeset/clever-hotels-cheer.md | 8 -------- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) delete mode 100644 .changeset/clever-hotels-cheer.md diff --git a/.changeset/clever-hotels-cheer.md b/.changeset/clever-hotels-cheer.md deleted file mode 100644 index d688abc..0000000 --- a/.changeset/clever-hotels-cheer.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"clickhouse-schema": major ---- -# 2.0.0 - -- Added support for default value checking at compile time. This also means all datatypes are now functions so they need to be called unlike before. So `ClickhouseTypes.CHBoolean` becomes `ClickhouseTypes.CHBoolean()` and this is the same for all data types. -- Refactored type inference to reduce LOC and make it more modular -- Improved validation for `order_by` and `primary_key` options by checking for only compatible keys at compile time diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bf0066..106dcc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # clickhouse-schema +## 2.0.0 + +### Major Changes + +- 6dbce6f: # 2.0.0 + + - Added support for default value checking at compile time. This also means all datatypes are now functions so they need to be called unlike before. So `ClickhouseTypes.CHBoolean` becomes `ClickhouseTypes.CHBoolean()` and this is the true for all data types. + - Refactored type inference to reduce LOC and make it more modular + - Improved validation for `order_by` and `primary_key` options by checking for only compatible keys at compile time + ## 1.0.4 ### Patch Changes diff --git a/package.json b/package.json index fb39f67..d49ff1a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "license": "MIT", "name": "clickhouse-schema", "description": "Clickhouse-Schema is a TypeScript library that simplifies working with ClickHouse databases by allowing developers to effortlessly define table schemas in TypeScript. This approach not only ensures robust type safety but also significantly reduces development time by automating the generation of TypeScript types that mirror your ClickHouse schemas.", - "version": "1.0.4", + "version": "2.0.0", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [