Skip to content

Commit

Permalink
Re: [#135](supabase-community/supabase-csharp#135) Update nuget packa…
Browse files Browse the repository at this point in the history
…ge name `postgrest-csharp` to `Supabase.Postgrest`
  • Loading branch information
acupofjose committed Apr 21, 2024
1 parent a14aac0 commit f630594
Show file tree
Hide file tree
Showing 65 changed files with 487 additions and 470 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 4.0.0 - 2024-04-21

- [MAJOR] Moves namespaces from `Postgrest` to `Supabase.Postgrest`
- Re: [#135](https://github.com/supabase-community/supabase-csharp/issues/135) Update nuget package
name `postgrest-csharp` to `Supabase.Postgrest`

## 3.5.1 - 2024-03-15

- Re: [#147](https://github.com/supabase-community/supabase-csharp/issues/147) - Supports `Rpc` specifying a generic
Expand All @@ -9,7 +15,7 @@

- Re: [#78](https://github.com/supabase-community/postgrest-csharp/issues/78), Generalize query filtering creation
in `Table` so that it matches new generic signatures.
- Move from `QueryFilter` parameters to a more generic `IPosgrestQueryFilter` to support constructing new QueryFilters
- Move from `QueryFilter` parameters to a more generic `IPostgrestQueryFilter` to support constructing new QueryFilters
from a LINQ expression.
- Note: Lists of `QueryFilter`s will now need to be defined
as: `new List<IPostgrestQueryFilter> { new QueryFilter(), ... }`
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Attributes/ColumnAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using Newtonsoft.Json;
namespace Postgrest.Attributes
namespace Supabase.Postgrest.Attributes
{

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Attributes/PrimaryKeyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
#pragma warning disable CS1591

namespace Postgrest.Attributes
namespace Supabase.Postgrest.Attributes
{

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions Postgrest/Attributes/ReferenceAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using Postgrest.Exceptions;
using Postgrest.Extensions;
using Postgrest.Models;
using Supabase.Postgrest.Extensions;
using Supabase.Postgrest.Exceptions;
using Supabase.Postgrest.Models;

namespace Postgrest.Attributes
namespace Supabase.Postgrest.Attributes
{
/// <summary>
/// Used to specify that a foreign key relationship exists in PostgreSQL
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Attributes/TableAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
#pragma warning disable CS1591
namespace Postgrest.Attributes
namespace Supabase.Postgrest.Attributes
{

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions Postgrest/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Postgrest.Interfaces;
using Postgrest.Models;
using Postgrest.Responses;
using Supabase.Core.Extensions;
using Supabase.Postgrest.Interfaces;
using Supabase.Postgrest.Models;
using Supabase.Postgrest.Responses;

namespace Postgrest
namespace Supabase.Postgrest
{
/// <inheritdoc />
public class Client : IPostgrestClient
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/ClientOptions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Globalization;
#pragma warning disable CS1591
namespace Postgrest
namespace Supabase.Postgrest
{

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Supabase.Core.Attributes;
#pragma warning disable CS1591
namespace Postgrest
namespace Supabase.Postgrest
{

public static class Constants
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Converters/DateTimeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Postgrest.Converters
namespace Supabase.Postgrest.Converters
{

/// <inheritdoc />
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Converters/IntConverter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Postgrest.Converters
namespace Supabase.Postgrest.Converters
{

/// <inheritdoc />
Expand Down
7 changes: 4 additions & 3 deletions Postgrest/Converters/RangeConverter.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Postgrest.Exceptions;
using Postgrest.Extensions;
namespace Postgrest.Converters
using Supabase.Postgrest.Extensions;
using Supabase.Postgrest.Exceptions;

namespace Supabase.Postgrest.Converters
{

/// <summary>
Expand Down
7 changes: 4 additions & 3 deletions Postgrest/Debugger.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Collections.Generic;
using Postgrest.Exceptions;
using Postgrest.Interfaces;
namespace Postgrest
using Supabase.Postgrest.Exceptions;
using Supabase.Postgrest.Interfaces;

namespace Supabase.Postgrest
{

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Postgrest/Exceptions/FailureHint.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using static Postgrest.Exceptions.FailureHint.Reason;
using static Supabase.Postgrest.Exceptions.FailureHint.Reason;
#pragma warning disable CS1591

namespace Postgrest.Exceptions
namespace Supabase.Postgrest.Exceptions
{

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Exceptions/PostgrestException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Net.Http;
namespace Postgrest.Exceptions
namespace Supabase.Postgrest.Exceptions
{
/// <summary>
/// Errors from Postgrest are wrapped by this exception
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Extensions/EnumExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
namespace Postgrest.Extensions
namespace Supabase.Postgrest.Extensions
{

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Extensions/RangeExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Postgrest.Extensions
namespace Supabase.Postgrest.Extensions
{

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Extensions/TypeExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
namespace Postgrest.Extensions
namespace Supabase.Postgrest.Extensions
{
internal static class TypeExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Extensions/UriExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
namespace Postgrest.Extensions
namespace Supabase.Postgrest.Extensions
{
/// <summary>
/// Pull the instance info out of the Uri
Expand Down
9 changes: 5 additions & 4 deletions Postgrest/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
using System.Web;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Postgrest.Exceptions;
using Postgrest.Models;
using Postgrest.Responses;
using Supabase.Core;
using Supabase.Core.Extensions;
using Supabase.Postgrest.Exceptions;
using Supabase.Postgrest.Models;
using Supabase.Postgrest.Responses;

[assembly: InternalsVisibleTo("PostgrestTests")]

namespace Postgrest
namespace Supabase.Postgrest
{

internal static class Helpers
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Hooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Net.Http;
using Newtonsoft.Json;

namespace Postgrest
namespace Supabase.Postgrest
{
/// <summary>
/// Delegate representing the request to be sent to the remote server.
Expand Down
4 changes: 2 additions & 2 deletions Postgrest/IntRange.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.Runtime.CompilerServices;
using Postgrest;
using Supabase.Postgrest;

// https://github.com/dotnet/runtime/blob/419e949d258ecee4c40a460fb09c66d974229623/src/libraries/System.Private.CoreLib/src/System/Index.cs
// https://github.com/dotnet/runtime/blob/419e949d258ecee4c40a460fb09c66d974229623/src/libraries/System.Private.CoreLib/src/System/Range.cs
namespace Postgrest
namespace Supabase.Postgrest
{
/// <summary>Represent a type can be used to index a collection either from the start or the end.</summary>
/// <remarks>
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Interfaces/IPostgrestCacheProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading.Tasks;

namespace Postgrest.Interfaces
namespace Supabase.Postgrest.Interfaces
{
/// <summary>
/// A caching provider than can be used by postgrest to store requests.
Expand Down
6 changes: 3 additions & 3 deletions Postgrest/Interfaces/IPostgrestClient.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Threading.Tasks;
using Postgrest.Models;
using Postgrest.Responses;
using Supabase.Core.Interfaces;
using Supabase.Postgrest.Models;
using Supabase.Postgrest.Responses;

namespace Postgrest.Interfaces
namespace Supabase.Postgrest.Interfaces
{
/// <summary>
/// Client interface for Postgrest
Expand Down
5 changes: 3 additions & 2 deletions Postgrest/Interfaces/IPostgrestDebugger.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Postgrest.Exceptions;
namespace Postgrest.Interfaces
using Supabase.Postgrest.Exceptions;

namespace Supabase.Postgrest.Interfaces
{
/// <summary>
/// Interface for getting debug info from Postgrest
Expand Down
2 changes: 1 addition & 1 deletion Postgrest/Interfaces/IPostgrestQueryFilter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma warning disable CS1591
namespace Postgrest.Interfaces
namespace Supabase.Postgrest.Interfaces
{
public interface IPostgrestQueryFilter
{
Expand Down
6 changes: 3 additions & 3 deletions Postgrest/Interfaces/IPostgrestTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using Postgrest.Models;
using Postgrest.Responses;
using Supabase.Core.Interfaces;
using Supabase.Postgrest.Models;
using Supabase.Postgrest.Responses;

namespace Postgrest.Interfaces
namespace Supabase.Postgrest.Interfaces
{
/// <summary>
/// Client interface for Postgrest
Expand Down
6 changes: 3 additions & 3 deletions Postgrest/Interfaces/IPostgrestTableWithCache.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Threading;
using System.Threading.Tasks;
using Postgrest.Models;
using Postgrest.Requests;
using Supabase.Postgrest.Models;
using Supabase.Postgrest.Requests;

namespace Postgrest.Interfaces
namespace Supabase.Postgrest.Interfaces
{
/// <summary>
/// Client interface for Postgrest
Expand Down
5 changes: 3 additions & 2 deletions Postgrest/Linq/SelectExpressionVisitor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Postgrest.Attributes;
namespace Postgrest.Linq
using Supabase.Postgrest.Attributes;

namespace Supabase.Postgrest.Linq

{

Expand Down
Loading

0 comments on commit f630594

Please sign in to comment.