Remove hard dependency on Jason

未关闭
#83 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
冷清
技术栈
elixir
领域
backend

调研方向

Start with the Jason call in lib/esbuild/npm_registry.ex identified in the issue, then read how Phoenix and LiveView select a JSON library via :json_library. Decide whether to support configurable JSON modules with an optional Jason dependency or require Elixir 1.18+ and remove Jason. Done means esbuild handles JSON through the chosen approach and Phoenix apps can be generated without an unconditional Jason dependency.

由索引模型根据 Issue 内容生成。

描述

Support custom JSON module implementation via config :json_library as in Phoenix and LiveView, make the :jason dependency optional.
Alternatively, require Elixir 1.18+ and drop the dependency on Jason entirely.

See https://github.com/phoenixframework/phoenix/pull/6815.

This would enable future Phoenix apps to be generated without depending on Jason.

There is only a single call to Jason in the entire code base:

https://github.com/phoenixframework/esbuild/blob/86f43046c069df68702082f8376be3be38e89652/lib/esbuild/npm_registry.ex#L47

主要语言
Elixir
星标
276
派生
42
平均合并
1 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

phoenixframework/esbuild 的其他 Issue

查看 phoenixframework/esbuild 的全部 Issue

相似的 Issue

更多 Elixir Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。