Skip to content

fix(deps): update dependency com.alibaba:fastjson to v2.0.58 #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 31, 2025

This PR contains the following updates:

Package Change Age Confidence
com.alibaba:fastjson 2.0.56 -> 2.0.58 age confidence

Release Notes

alibaba/fastjson2 (com.alibaba:fastjson)

v2.0.58: Fastjson 2.0.58版本发布

Compare Source

这又是一个定期维护的功能增强BUG FIX版本,大家按需升级。

  1. 修复序列化Enum子类结果不对的问题 #​3464
  2. 修复cglib代理对象序列化结果不对的问题 #​3445
  3. 修复graalvm native-image运行报错的问题 #​3274 #​3108 #​3587
  4. 支持LabelFilter,兼容fastjson 1.x #​2974
  5. 增强fastjson 1.x的兼容 #​2850
  6. 支持jax-rs #​2490
  7. 修复android在 Unsafe报错的问题 #​2263 #​3576 #​3636
  8. 支持SkipTransientField,兼容fastjson 1.x #​3368 #​3659
  9. 修复无法反序列化包含$ref的数组字符串的问题 #​3436
  10. 支持更多场景base64字符串反序列化 #​3497
  11. 修复Dubbo 使用 Fastjson2.0.57 版本时提示 not support none-Serializable #​3499
  12. 修复基本类型在Feature.NotWriteDefaultValue下表现不一致 #​3183 #​3518
  13. 修复JSONObject.toJavaObject在final List字段时会导致重复元素的问题 #​2944
  14. 修复JSONPath.set在某些数组场景无法替换的问题 #​3375
  15. 修复JSONPath有些场景无法解析数组数据的问题 #​3331
  16. 修复某些场景空字符串无法被当成空值处理的问题 #​3537
  17. 修复某些场景Boolean类型反序列化结果不对的问题 #​3539
  18. 修复某些场景JSONObject::from结果丢失泛型信息的问题 #​3569
  19. 修复JSON解析数值时未区分0.0和-0.0的问题 #​3613
  20. 修复某些场景不抛出JSONException的问题 #​3610
  21. 新增加JSONWriter.Feature.WriterUtilDateAsMillis 方便fastjson 1.x用户迁移
  22. 修复某些场景子类反序列化字段丢失的问题 #​3621
  23. 修复自定义List类型不支持自定义序列化的问题 #​3601
  24. 修复BigDecimal scale为负时序列化长度计算不对报越界的问题 #​3595
  25. 修复数组元素后面带有注释时反序列化失败 #​3547
  26. 修复@JSONField(defaultValue="") 和fastjson 1.x不兼容的问题
  27. 修复BigDecimal在前字段带多余空格时某些场景报错的问题 #​3665

MAVEN依赖配置

<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2</artifactId>
    <version>2.0.58</version>
</dependency>
  • android5针对优化版本
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2</artifactId>
    <version>2.0.58.android5</version>
</dependency>
  • android8针对优化版本
    这个版本支持java.time和Optional
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2</artifactId>
    <version>2.0.58.android8</version>
</dependency>
  • 1.x 兼容版本
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>2.0.58</version>
</dependency>
  • Spring 5 extension配置
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2-extension-spring5</artifactId>
    <version>2.0.58</version>
</dependency>
  • Spring 6 extension配置
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2-extension-spring6</artifactId>
    <version>2.0.58</version>
</dependency>

3. 相关链接

v2.0.57: Fastjson 2.0.57版本发布

Compare Source

这又是一个定期维护的功能增强BUG FIX版本,大家按需升级。

Issues

  1. 提升了序列化Double和忽略字段的性能
  2. 修复单引号反序列化时不支持忽略大小写匹配的问题 #​3381
  3. 修复UseBigDecimalForDoubles解析浮点数结果不对的问题 #​3382
  4. JSONArray/JSONObject增加getLocalDate/getLocalDateTime系列方法 #​3337
  5. 修复序列化Kotlin类忽略private field的问题 #​3287
  6. 修复某些场景toJSON/toJavaObject缺失字段的问题 #​2227
  7. 修复反序列化java.util.SubList报错的问题 #​3364
  8. 修复SeeAlso父类是接口反序列化报错的问题 #​3357 #​3440
  9. 修复反序列化record不支持alternateNames的问题 #​3351
  10. 修复2.0.56引入的字段多导致jit报错的问题 #​3367
  11. 修复无上海时区环境报错的问题 #​3450
  12. 修复2.0.56引入的非规范Double.NaN序列化报错的问题 #​3449
  13. 修复某些场景不支持注释的问题 #​3446
  14. 修复多层List字段序列化报错的问题 #​3444 #​3433
  15. 修复2.0.54引入的不匹配类型反序列化String结果不对的问题 #​3438
  16. 兼容fastjson 1.x,序列化忽略ClassLoader类型字段
  17. 修复非当前ClassLoader类型toJavaObject导致ClassNotFound的问题 #​3420
  18. 修复输入类型为Object.class时,reference解析不生效的问题 #​3452

MAVEN依赖配置

<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2</artifactId>
    <version>2.0.57</version>
</dependency>
  • android5针对优化版本
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2</artifactId>
    <version>2.0.57.android5</version>
</dependency>
  • android8针对优化版本
    这个版本支持java.time和Optional
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2</artifactId>
    <version>2.0.57.android8</version>
</dependency>
  • 1.x 兼容版本
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>2.0.57</version>
</dependency>
  • Spring 5 extension配置
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2-extension-spring5</artifactId>
    <version>2.0.57</version>
</dependency>
  • Spring 6 extension配置
<dependency>
    <groupId>com.alibaba.fastjson2</groupId>
    <artifactId>fastjson2-extension-spring6</artifactId>
    <version>2.0.57</version>
</dependency>

3. 相关链接


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/com.alibaba-fastjson-2.x branch from 18c8ff4 to 66455fb Compare July 30, 2025 03:02
@renovate renovate bot changed the title fix(deps): update dependency com.alibaba:fastjson to v2.0.57 fix(deps): update dependency com.alibaba:fastjson to v2.0.58 Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants