Skip to content

Commit

Permalink
Version bump 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
acupofjose committed Nov 26, 2021
1 parent 0424287 commit 824cbc5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

## 2.0.3 - 2021-11-26

- Add a `StatelessClient` static class (re: [#7](https://github.com/supabase-community/supabase-csharp/issues/7)) that enables API interactions through specifying `StatelessClientOptions`
- Fix for [#35](https://github.com/supabase-community/postgrest-csharp/issues/35) - Client now handles DateTime[] serialization and deserialization.
- Added tests for `StatelessClient`
- Added "Kitchen Sink" tests for roundtrip serialization and deserialization data coersion.
6 changes: 3 additions & 3 deletions Postgrest/Postgrest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
The bulk of this library is a translation and c-sharp-ification of the supabase/postgrest-js library.</Description>
<PackageIconUrl>https://avatars.githubusercontent.com/u/54469796?s=200&amp;v=4</PackageIconUrl>
<PackageTags>supabase,postgrest</PackageTags>
<ReleaseVersion>2.0.2</ReleaseVersion>
<PackageVersion>2.0.2</PackageVersion>
<ReleaseVersion>2.0.3</ReleaseVersion>
<PackageVersion>2.0.3</PackageVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Version)' == '' ">
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">2.0.2</VersionPrefix>
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">2.0.3</VersionPrefix>
<VersionSuffix Condition=" '$(VersionSuffix)' == '' ">
</VersionSuffix>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
Expand Down
2 changes: 1 addition & 1 deletion PostgrestExample/PostgrestExample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<ReleaseVersion>2.0.2</ReleaseVersion>
<ReleaseVersion>2.0.3</ReleaseVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion PostgrestTests/PostgrestTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netcoreapp3.1</TargetFramework>

<IsPackable>false</IsPackable>
<ReleaseVersion>2.0.2</ReleaseVersion>
<ReleaseVersion>2.0.3</ReleaseVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Utitilizing the client is then just a matter of instantiating it and specifying
```c#
void Initialize()
{
// The default client is a Singleton class that keeps options persisted through an instance
var client = Client.Initialize("http://localhost:3000");

// Get All Messages
Expand All @@ -77,6 +78,11 @@ void Initialize()

// Delete
await response.Models.Last().Delete();

// Alternatively, the StatelessClient can be used with Options passed into it.
var options = new StatelessClientOptions("http://localhost:3000") {};

var response1 = await StatelessClient.Table<Message>(options).Get();
}
```

Expand Down
3 changes: 2 additions & 1 deletion postgrest-csharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
README.md = README.md
docker-compose.yml = docker-compose.yml
CHANGELOG.md = CHANGELOG.md
EndProjectSection
EndProject
Global
Expand Down Expand Up @@ -38,6 +39,6 @@ Global
$1.DirectoryNamespaceAssociation = PrefixedHierarchical
$0.StandardHeader = $2
$0.VersionControlPolicy = $3
version = 2.0.2
version = 2.0.3
EndGlobalSection
EndGlobal

0 comments on commit 824cbc5

Please sign in to comment.