Skip to content

Allow the usage of JSON for Elixir 1.18+#146

Merged
AndrewDryga merged 10 commits intoNebo15:elixir-1.18from
altjohndev:use-json-elixir-1-18
Apr 6, 2025
Merged

Allow the usage of JSON for Elixir 1.18+#146
AndrewDryga merged 10 commits intoNebo15:elixir-1.18from
altjohndev:use-json-elixir-1-18

Conversation

@altjohndev
Copy link
Copy Markdown
Contributor

This PR preserves the current Jason encoder usage while allowing the custom configuration of the JSON encoder for Elixir 1.18+.

Both setups are set to be tested by the CI: If the Elixir version is less than 1.18, it will test with Jason. Otherwise, it will test with JSON.

@AndrewDryga
Copy link
Copy Markdown
Member

Thank you very much! ❤️ I'll take care of rebasing to the latest changes.

@AndrewDryga AndrewDryga changed the base branch from master to elixir-1.18 April 6, 2025 18:48
@AndrewDryga AndrewDryga merged commit abf5f86 into Nebo15:elixir-1.18 Apr 6, 2025
AndrewDryga pushed a commit that referenced this pull request Apr 6, 2025
* Allow the usage of JSON for Elixir 1.18+

* handle when plug is not defined

* Wrap Plug.Conn related functions

* require in function

* use guard clause

* require in function

* ensure Jason loaded when using macros

* wrap require in a macro

* Define macro to return based on encoder

* add missing require
AndrewDryga pushed a commit that referenced this pull request Apr 6, 2025
* Allow the usage of JSON for Elixir 1.18+

* handle when plug is not defined

* Wrap Plug.Conn related functions

* require in function

* use guard clause

* require in function

* ensure Jason loaded when using macros

* wrap require in a macro

* Define macro to return based on encoder

* add missing require
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