Skip to content

Releases: hyperf-plus/route

v4.0.2

06 Dec 06:55

Choose a tag to compare

HPlus Route v4.0.0-beta

06 Dec 05:39

Choose a tag to compare

Pre-release

⚠️ Beta 版本:包含破坏性变更,不建议生产环境使用

📦 安装

composer require hyperf-plus/route:^4.0@beta

✨ 核心新特性

  • 🎯 kebab-case URL - 符合现代 RESTful 规范 (user-profile 而非 user_profile)
  • 路由优先级排序 - 静态路由优先,避免动态路由覆盖
  • 🔧 精简映射 - 移除冗余规则,保留 13 条核心 RESTful 方法
  • 🚀 Hyperf 3.1+ - 完整支持 PriorityMiddleware

⚠️ 破坏性变更

  1. URL 风格变更snake_casekebab-case

    /api/user_profile → /api/user-profile
    
  2. 版本要求:PHP 8.1+, Hyperf 3.1+

  3. 移除映射all, find, first, save, put 需显式指定路径

🔄 快速迁移

# 1. 升级依赖
composer require hyperf-plus/route:^4.0@beta

# 2. 修改前端 API 调用
# /api/user_profile → /api/user-profile

# 3. 检查自定义方法
# 如使用 all/find 等,需显式指定 path

📝 详细文档


注意: Beta 版本可能存在未知问题,欢迎反馈!

v3.1.3

28 Jul 06:32

Choose a tag to compare

修复添加多中间件错误bug

v3.1.2

29 Jun 08:18

Choose a tag to compare

Update DispatcherFactory.php

v3.1.1

08 Mar 13:56

Choose a tag to compare

Full Changelog: v3.1.0...v3.1.1

v3.1.0

27 Feb 06:23

Choose a tag to compare

Full Changelog: v3.0.4...v3.1.0

v3.0.4

19 Aug 04:38

Choose a tag to compare

更新注解query key 非必填

v3.0.3

11 Aug 02:40

Choose a tag to compare

fix delete/post/patch api Bug

v3.0.1

10 Aug 09:33

Choose a tag to compare

Upgrade to 3.0.0

v2.1.4

30 Jan 16:03

Choose a tag to compare

更改依赖