Page MenuHomePhabricator

Remove compatConfig from DST hosted extensions
Closed, ResolvedPublic2 Estimated Story Points

Description

Overview

As part of the Vue 2 to Vue 3 migration, we'd like to remove the Vue compact "migration build" from DST-hosted Media Wiki extensions. DST extensions include VueTest and CodexExample. Removing the migration build from these extensions switches the dependency to Vue 3 proper.

The compatConfig option can be used on components to opt-in to Vue 3 behavior. The global method configureCompat() will default the entire application to Vue 3 behavior. Both approaches take in the option { MODE: 3 }.

Resources

Acceptance Criteria

  • Remove the Vue 3 migration build from VueTest, CodexExample (already completed), and the wrapper files in MW core for Codex.
    • Uninstall NPM vue/compat from devDependencies
    • Remove the Vue compat migration build code that tells the application or component to opt in to Vue 3 behavior
      • Examples: compatConfig: { MODE: 3 } and Vue.configureCompat( { MODE: 3 } )

Event Timeline

AnneT triaged this task as Medium priority.Jan 8 2024, 6:15 PM
AnneT set the point value for this task to 2.
CCiufo-WMF renamed this task from Remove compatConfig from Codex components to Remove compatConfig from DST hosted extensions.Jan 8 2024, 6:17 PM
lwatson changed the task status from Open to In Progress.Jan 11 2024, 12:35 AM
lwatson updated the task description. (Show Details)

Change 989959 had a related patch set uploaded (by LWatson; author: LWatson):

[mediawiki/extensions/VueTest@master] build: Remove compatConfig from DST hosted extensions

https://gerrit.wikimedia.org/r/989959

Change 989959 merged by jenkins-bot:

[mediawiki/extensions/VueTest@master] build: Remove compatConfig from DST hosted extensions

https://gerrit.wikimedia.org/r/989959

Change 991036 had a related patch set uploaded (by LWatson; author: LWatson):

[mediawiki/core@master] build: Remove compatConfig from Codex wrapper files in MW core

https://gerrit.wikimedia.org/r/991036

Change 991036 merged by jenkins-bot:

[mediawiki/core@master] build: Remove compatConfig from Codex wrapper files in MW core

https://gerrit.wikimedia.org/r/991036