Skip to content

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 14:43
· 90 commits to main since this release

0.16.0 (2023-11-02)

Bug Fixes

  • QueryBuilder: where(Closure) 生成的语句参数顺序错误 (9b743a1)
  • QueryBuilder: where(Closure) 生成的语句排除默认范围查询 (4255288)

Code Refactoring

  • Http: 改为每次调用都创建一个新的对象 (94add7a)

Features

  • Http: 允许通过 url 方法初始化服务,并通过 paramsjson 等方法链式调用 (b6d6c0a)
  • Http: 允许静态调用 getpostputdeletepatch 方法 (3e16dc6)
  • Http: 增加 params 用于向 URL 增加参数 (ccc5161)
  • Http: 如果返回内容是 application/json,则自动解析返回内容为 JSON 数组,而不是返回纯文本 (49adca1)
  • Http: 支持传入 json 来发送 json 数据 (8052cd6)
  • Str: 使用自定义的 pluralize 方法,移除 doctrine/inflector 依赖 (6188a93)
  • Str: 使用自定义的 singularize 方法,移除 doctrine/inflector 依赖 (63b8335)

BREAKING CHANGES

  • Http: Http 服务移除 global 选项
  • Http: Http 服务如果返回内容是 application/json,则自动解析返回内容为 JSON 数组,而不是返回纯文本
  • Http: getpostputdeletepatch 参数更新为 ($url = null, array $options = []): self
  • Str: 使用自定义的 singularize 方法,移除 doctrine/inflector 依赖