Skip to content

Commit

Permalink
Merge pull request #275 from notion-dotnet/241-update-default-notion-…
Browse files Browse the repository at this point in the history
…version-to-2022-02-22

Update default notion version to 2022-02-22 ⬆️
  • Loading branch information
KoditkarVedant authored Jul 16, 2022
2 parents c934d05 + 01b5ed5 commit c9d5103
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
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

0 comments on commit c9d5103

Please sign in to comment.