Skip to content

Update default notion version to 2022-02-22 #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Src/Notion.Client/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
2 changes: 1 addition & 1 deletion Src/Notion.Client/Notion.Client.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>2.2.3-preview</VersionPrefix>
<VersionPrefix>3.0.0-preview</VersionPrefix>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>7.3</LangVersion>

Expand Down
7 changes: 6 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down