Skip to content

Commit 8c16b71

Browse files
committed
Version bump to 3.0.0
1 parent 1860afe commit 8c16b71

File tree

5 files changed

+39
-5
lines changed

5 files changed

+39
-5
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 3.0.0 - 2022-11-08
4+
5+
- Re: [#54](https://github.com/supabase-community/postgrest-csharp/pull/54) Restructure Project to support DI and enable Nullity
6+
- `Client` is no longer a singleton class.
7+
- `StatelessClient` has been removed as `Client` performs the same essential functions.
8+
- `Table` default constructor requires reference to `JsonSerializerSettings`
9+
- `BaseModel` now keeps track of `BaseUrl` and `RequestClientOptions`. These are now used in the default (and overridable) `BaseModel.Update` and `BaseModel.Delete` methods (as they previously referenced the singleton).
10+
- All publicly facing classes (that offer functionality) now include an Interface.
11+
- `RequestException` is no longer thrown for attempting to update a record that does not exist, instead an empty `ModeledResponse` is returned.
12+
313
## 2.1.1 - 2022-10-19
414

515
- Re: [#50](https://github.com/supabase-community/postgrest-csharp/issues/50) & [#51](https://github.com/supabase-community/postgrest-csharp/pull/51) Adds `shouldFilterTopRows` as constructor parameter for `ReferenceAttribute` which defaults to `true` to match current API expectations.

Postgrest/Postgrest.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
</Description>
2020
<PackageIconUrl>https://avatars.githubusercontent.com/u/54469796?s=200&amp;v=4</PackageIconUrl>
2121
<PackageTags>supabase,postgrest</PackageTags>
22-
<ReleaseVersion>2.1.1</ReleaseVersion>
23-
<PackageVersion>2.1.1</PackageVersion>
22+
<ReleaseVersion>3.0.0</ReleaseVersion>
23+
<PackageVersion>3.0.0</PackageVersion>
2424
</PropertyGroup>
2525
<PropertyGroup>
2626
<Nullable>enable</Nullable>
2727
<LangVersion>8.0</LangVersion>
2828
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
2929
</PropertyGroup>
3030
<PropertyGroup Condition=" '$(Version)' == '' ">
31-
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">2.1.1</VersionPrefix>
31+
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">3.0.0</VersionPrefix>
3232
<VersionSuffix Condition=" '$(VersionSuffix)' == '' ">
3333
</VersionSuffix>
3434
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>

PostgrestExample/PostgrestExample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp3.1</TargetFramework>
6-
<ReleaseVersion>2.1.1</ReleaseVersion>
6+
<ReleaseVersion>3.0.0</ReleaseVersion>
77
</PropertyGroup>
88

99
<ItemGroup>

PostgrestTests/PostgrestTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<IsPackable>false</IsPackable>
6-
<ReleaseVersion>2.1.1</ReleaseVersion>
6+
<ReleaseVersion>3.0.0</ReleaseVersion>
77
</PropertyGroup>
88

99
<ItemGroup>

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@
99
</a>
1010
</p>
1111

12+
---
13+
14+
## BREAKING CHANGES MOVING FROM v2.x.x to v3.x.x
15+
16+
- `Client` is no longer a singleton class.
17+
- `StatelessClient` has been removed as `Client` performs the same essential functions.
18+
- `Table` default constructor requires reference to `JsonSerializerSettings`
19+
- `BaseModel` now keeps track of `BaseUrl` and `RequestClientOptions`. These are now used in the default (and overridable) `BaseModel.Update` and `BaseModel.Delete` methods (as they previously referenced the singleton).
20+
- All publicly facing classes (that offer functionality) now include an Interface.
21+
- `RequestException` is no longer thrown for attempting to update a record that does not exist, instead an empty `ModeledResponse` is returned.
22+
23+
In Short:
24+
```c#
25+
// What was:
26+
var client = Client.Initialize(baseUrl, options);
27+
var query = await client.Table<User>.Single();
28+
29+
// Becomes:
30+
var client = new Client(baseUrl, options);
31+
var query = await client.Table<User>.Single();
32+
```
33+
34+
---
35+
1236
Documentation can be found [here](https://supabase-community.github.io/postgrest-csharp/api/Postgrest.html).
1337

1438
Postgrest-csharp is written primarily as a helper library for [supabase/supabase-csharp](https://github.com/supabase/supabase-csharp), however, it should be easy enough to use outside of the supabase ecosystem.

0 commit comments

Comments
 (0)