Skip to content

feat: vue/vue-router: support vue-router 5 #31133

Description

@kleinfreund

Prerequisites

Describe the Feature Request

Update @ionic/vue-router and @ionic/vue to support vue-router@^5.0.0.

Describe the Use Case

@ionic/vue-router depends on vue-router@^4.0.16.

@ionic/vue depends on @stencil/vue-output-target@0.10.7 which itself has a peer dependency on vue-router@^4.5.0. @stencil/vue-output-target@0.13.1 supports both v4 and v5 (see https://github.com/stenciljs/output-targets/blob/ed5281177542933ebe573e6f3846ff78fa69b652/packages/vue/package.json#L51).

As a consequence, a project depending on either package can't currently upgrade to vue-router@^5.0.0 without overriding transitive dependencies.

Describe Preferred Solution

Ideally, both vue-router v4 and v5 are supported to simplify the upgrade process.

Describe Alternatives

Alternatively, only vue-router v5 is supported. The breaking changes in v5 are minimal and a seamless upgrade should be possible for most dependents.

Related Code

No response

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions