Skip to content

[Break Change] upgrate path-to-regexp V6 to V8, or not ? #97

@pengzhanbo

Description

@pengzhanbo

path-to-regexp has undergone significant changes recently, with two major version updates in a short period, both of which include breaking changes. Upgrading hastily could have a really bad impact on users of the plugin.

The current plugin has been using the v6 version of the API, and the dynamic route matching rules are vastly different from those in v8, which would render existing url configurations with dynamic parameters completely ineffective. This might be unacceptable for current users.

So, I'm not sure whether to proceed with the update. I'd appreciate your thoughts and suggestions.


path-to-regexp 在近期发生了重大的变更,在短期内进行了两次重大版本变更,且都带有破坏性更新。贸然升级,这可能给插件的用户们带来非常糟糕的影响。

当前插件一直使用的是 v6 版本的 API,在动态路由匹配规则上,和 v8 的规则差别非常大,这会导致 现有的 带动态参数的 url 配置 完全失效。这对于当前的用户来说可能是不可接受的。

因此我不确定是否进行更新,希望您发表您的看法和建议。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions