Skip to content

Conversation

zoedsoupe
Copy link
Member

Problem

Some libraries from the elixir-supabase ecosystem are using JSON (native elixir module introduced on 1.18) and others are using Jason for JSON encoding, this creates a version mismatch for elixir version requirement since the supabase-ex supports from 1.16 to 1.18, so the rest of the libraries should do the same

Solution

For that to work, i've introduced the json_library app config for supabase, similar to what Phoenix does, defaulting to Jason since historically is the most used JSON encoding library in elixir.

Rationale

N/A

@zoedsoupe zoedsoupe requested a review from Ziinc July 20, 2025 14:26
@zoedsoupe
Copy link
Member Author

after launching a new release of this library, and after #68 i will update all other dependencies to use this function instead of json modules directly, so we can enforce the ~> 1.16 elixir version support for all the libraries consistently

@zoedsoupe zoedsoupe requested a review from filipecabaco July 20, 2025 18:47
@zoedsoupe zoedsoupe merged commit e290e05 into main Jul 20, 2025
3 checks passed
@zoedsoupe zoedsoupe deleted the fix/json-encoder branch July 20, 2025 18:49
@zoedsoupe zoedsoupe mentioned this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants