From 59f6d11859d7d5b306a67845863ee2b18395ca45 Mon Sep 17 00:00:00 2001 From: Vedant Koditkar Date: Sat, 16 Jul 2022 21:39:55 +0530 Subject: [PATCH 1/3] Set default Notion-Version to 2022-02-22 --- Src/Notion.Client/Constants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Notion.Client/Constants.cs b/Src/Notion.Client/Constants.cs index 5844bd6e..579e3db4 100644 --- a/Src/Notion.Client/Constants.cs +++ b/Src/Notion.Client/Constants.cs @@ -6,6 +6,6 @@ namespace Notion.Client internal class Constants { internal static string BASE_URL = "https://api.notion.com/"; - internal static string DEFAULT_NOTION_VERSION = "2021-08-16"; + internal static string DEFAULT_NOTION_VERSION = "2022-02-22"; } } From 85a8a6fa2f388431793e5d5088fd7a1a0f241b00 Mon Sep 17 00:00:00 2001 From: Vedant Koditkar Date: Sat, 16 Jul 2022 21:41:22 +0530 Subject: [PATCH 2/3] =?UTF-8?q?Update=20readme=20to=20show=20default=20not?= =?UTF-8?q?ion-version=20by=20NuGet=20package=20version=20=F0=9F=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 ++++++--- docs/README.md | 7 ++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7e552e88..c3cf6c95 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,12 @@ Provides the following packages: dotnet add package Notion.Net ``` -> Note: From Nuget 2.0.0 notion client sdk default sets the Notion-Version header to 2021-08-16. - - +> Note: default Notion-Version used by NuGet package versions +> | Package version | Notion-Version | +> | --- | --- | +> | 3.0.0+ | 2022-02-22 | +> | 2.0.0+ | 2021-08-16 | +> | 1.0.0+ | 2021-05-13 | ## Usage diff --git a/docs/README.md b/docs/README.md index 14a21997..a662d6f3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,7 +10,12 @@ A simple and easy to use client for the [Notion API](https://developers.notion.c dotnet add package Notion.Net ``` -> Note: From Nuget 2.0.0 notion client sdk default sets the Notion-Version header to 2021-08-16. +> Note: default Notion-Version used by NuGet package versions +> | Package version | Notion-Version | +> | --- | --- | +> | 3.0.0+ | 2022-02-22 | +> | 2.0.0+ | 2021-08-16 | +> | 1.0.0+ | 2021-05-13 | ## Usage From 01b5ed55869017ffc9c3c0faf354087a910ceb6a Mon Sep 17 00:00:00 2001 From: Vedant Koditkar Date: Sat, 16 Jul 2022 22:52:47 +0530 Subject: [PATCH 3/3] set version prefix to 3.0.0 --- Src/Notion.Client/Notion.Client.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Notion.Client/Notion.Client.csproj b/Src/Notion.Client/Notion.Client.csproj index c1b237d1..541e191b 100644 --- a/Src/Notion.Client/Notion.Client.csproj +++ b/Src/Notion.Client/Notion.Client.csproj @@ -1,7 +1,7 @@  - 2.2.3-preview + 3.0.0-preview netstandard2.0 7.3