You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove newtonsoft, make the library native aot compatible #195
Bring supabase-csharp (and the sub-packages we use) up to .NET Native AOT so a dotnet publish -c Release -p:PublishAot=true build succeeds, and there are no runtime errors.
Acceptance criteria
AOT publish finishes without linker errors or reflection warnings.
App boots and runs basic Supabase flows (auth, simple CRUD) in the published binary.
remove the 'new()' requirement in the 'where' statements of TModel to allow using the 'required' keyword in model class definitions like
[Table("my_table")]
public class MyTable : BaseModel
{
[PrimaryKey("id")]
[Column("id")]
public Guid Id { get; init; }
[Column("category")]
public required string Category { get; init; }
[Column("display_name")]
public required string DisplayName { get; init; }
[Column("description")]
public string? Description { get; init; }
}
This would reduce errors when creating new model instances.
remove the requirement that model classes need to derive from 'BaseModel'. All methods of 'BaseModel' can be provided e.g. as extension methods with the required parameters as method parameters ('BaseUrl' and so on). By this, model class definitions would become leaner.
@idan-h I'm the new maintainer for the Supabase C# SDK.
I noticed removing newtonsoft has been a recurrent topic, and it's part of my roadmap. Now, it will require substantial (breaking) changes in postgrest-csharp so it will land in the next major version.
I can't commit to a timeline yet, but I guarantee it will happen.
I'll keep you posted. Thanks!
Activity
EricRichterAtAmcopia commentedon Sep 25, 2025
Also, I would like to suggest to
This would reduce errors when creating new model instances.
Tr00d commentedon Jul 1, 2026
@idan-h I'm the new maintainer for the Supabase C# SDK.
I noticed removing newtonsoft has been a recurrent topic, and it's part of my roadmap. Now, it will require substantial (breaking) changes in postgrest-csharp so it will land in the next major version.
I can't commit to a timeline yet, but I guarantee it will happen.
I'll keep you posted. Thanks!