From 824cbc51fc793f41db6f6eaceab258cfb260ad69 Mon Sep 17 00:00:00 2001 From: Joseph Schultz Date: Fri, 26 Nov 2021 14:52:34 -0600 Subject: [PATCH] Version bump 2.0.3 --- CHANGELOG.md | 8 ++++++++ Postgrest/Postgrest.csproj | 6 +++--- PostgrestExample/PostgrestExample.csproj | 2 +- PostgrestTests/PostgrestTests.csproj | 2 +- README.md | 6 ++++++ postgrest-csharp.sln | 3 ++- 6 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..183c3c8 --- /dev/null +++ b/CHANGELOG.md @@ -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. \ No newline at end of file diff --git a/Postgrest/Postgrest.csproj b/Postgrest/Postgrest.csproj index de8b921..5e99870 100644 --- a/Postgrest/Postgrest.csproj +++ b/Postgrest/Postgrest.csproj @@ -17,11 +17,11 @@ The bulk of this library is a translation and c-sharp-ification of the supabase/postgrest-js library. https://avatars.githubusercontent.com/u/54469796?s=200&v=4 supabase,postgrest - 2.0.2 - 2.0.2 + 2.0.3 + 2.0.3 - 2.0.2 + 2.0.3 $(VersionPrefix)-$(VersionSuffix) diff --git a/PostgrestExample/PostgrestExample.csproj b/PostgrestExample/PostgrestExample.csproj index 230db40..ad45dee 100644 --- a/PostgrestExample/PostgrestExample.csproj +++ b/PostgrestExample/PostgrestExample.csproj @@ -3,7 +3,7 @@ Exe netcoreapp3.1 - 2.0.2 + 2.0.3 diff --git a/PostgrestTests/PostgrestTests.csproj b/PostgrestTests/PostgrestTests.csproj index 22dd5cb..1f0d284 100644 --- a/PostgrestTests/PostgrestTests.csproj +++ b/PostgrestTests/PostgrestTests.csproj @@ -4,7 +4,7 @@ netcoreapp3.1 false - 2.0.2 + 2.0.3 diff --git a/README.md b/README.md index fe05277..acdd138 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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(options).Get(); } ``` diff --git a/postgrest-csharp.sln b/postgrest-csharp.sln index 5d5fcf1..47eb2c9 100644 --- a/postgrest-csharp.sln +++ b/postgrest-csharp.sln @@ -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 @@ -38,6 +39,6 @@ Global $1.DirectoryNamespaceAssociation = PrefixedHierarchical $0.StandardHeader = $2 $0.VersionControlPolicy = $3 - version = 2.0.2 + version = 2.0.3 EndGlobalSection EndGlobal