Skip to content

Remove unused jason dependency#2115

Merged
Flo0807 merged 1 commit into
developfrom
feature/remove-jason
Jul 17, 2026
Merged

Remove unused jason dependency#2115
Flo0807 merged 1 commit into
developfrom
feature/remove-jason

Conversation

@Flo0807

@Flo0807 Flo0807 commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

What

{:jason, "~> 1.2"} is declared in mix.exs but never used.

Evidence

It appears nowhere outside its own declaration:

$ grep -rn "Jason\|jason" lib/ priv/templates/ mix.exs
mix.exs:54:      {:jason, "~> 1.2"},

Unlike number (#2113), there is no commit that removed a call site — git log -S"Jason." -- lib/ is empty across all branches. It appears to have been unused for as long as it has been declared.

Backpex does not serialize anything itself; host applications configure their own JSON library for Phoenix and Ecto.

Impact

mix.lock is unchanged: jason remains as a transitive dependency of credo, esbuild, igniter and mix_audit. This only removes the direct declaration, so nothing is dropped from the resolution — the point is that Backpex no longer constrains a package it does not use.

Verification

mix lint passes end to end (compile --warning-as-errors, deps.unlock --unused, format, credo, 100 doctests + 174 tests, 0 failures), and mix docs --warnings-as-errors builds.

Context

Found by a dependency check I am preparing separately, which reports dependencies that are declared but never referenced by the compiled code — the blind spot that let number sit unused for two years until it blocked decimal 3.x (#2113). mix deps.unlock --check-unused cannot see this class of problem, since it only compares mix.lock against mix.exs.

jason is declared in mix.exs but never used: it appears nowhere in lib/ or
priv/templates/, and git history shows no call site was ever removed — it has
been unused for as long as it has been declared.

mix.lock is unchanged, since jason stays as a transitive dependency of credo,
esbuild, igniter and mix_audit.
@Flo0807 Flo0807 added the bug Something isn't working label Jul 17, 2026
@Flo0807
Flo0807 added this pull request to the merge queue Jul 17, 2026
Merged via the queue into develop with commit 462c2c6 Jul 17, 2026
8 checks passed
@Flo0807
Flo0807 deleted the feature/remove-jason branch July 17, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant