Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency vue to v3, @vue/test-utils to v2, and vuex to v4 #203

Merged
merged 9 commits into from May 15, 2023

Conversation

winniehell
Copy link
Contributor

@winniehell winniehell commented Apr 28, 2023

supersedes #194, #197, and #201

@winniehell winniehell force-pushed the winniehell-major-vue-monorepo branch from d28a352 to 659b938 Compare April 28, 2023 22:34
package.json Outdated
Comment on lines 68 to 73
"testEnvironmentOptions": {
"customExportConditions": ["node", "node-addons"]
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@winniehell
Copy link
Contributor Author

@posva can you please review?

@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #203 (61842cc) into master (c394b0d) will not change coverage.
The diff coverage is n/a.

❗ Current head 61842cc differs from pull request most recent head b986036. Consider uploading reports for the commit b986036 to get more accurate results

@@            Coverage Diff            @@
##            master      #203   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           54        54           
  Branches         5         5           
=========================================
  Hits            54        54           

Copy link
Owner

posva commented Apr 29, 2023

I will but please don’t ping me each time you open a pull request because I already have the notification without the ping 😉

@winniehell
Copy link
Contributor Author

sure, sorry about that 👍

that is a habit I have developed at GitLab where merge requests or issues are generally not looked at if you don't ping people 🤷

@winniehell
Copy link
Contributor Author

winniehell commented Apr 29, 2023

- Coverage   100.00%   98.14%   -1.86%     

this probably deserves to fixed prior to merging

@winniehell
Copy link
Contributor Author

- Coverage   100.00%   98.14%   -1.86%     

this probably deserves to fixed prior to merging

it looks like the corresponding code, namely

// for Symbols
if (typeof key !== 'string') return Reflect.get(target, key)
const modules = key.split('/')
// modules always have a trailing /
if (modules.length <= 1) {
return Reflect.get(target, key)
}
, was only tested accidentally and not explicitly on master. I am not sure how to test it because I can't find a use case for either of the conditions.

@posva
Copy link
Owner

posva commented May 1, 2023

This would require to migrate vuex as well but it's impontant to keep the version working with Vue 2 so it's not something I can just merge. I will take a look when I have time

@winniehell
Copy link
Contributor Author

I have cherry-picked the Vuex update and added a GitHub Actions workflow for the Vue 2 compatibilty.

@winniehell winniehell changed the title chore(deps): update dependency vue to v3 and @vue/test-utils to v2 chore(deps): update dependency vue to v3, @vue/test-utils to v2, and vuex to v4 May 1, 2023
@winniehell winniehell force-pushed the winniehell-major-vue-monorepo branch from 46f7147 to 770b4f2 Compare May 2, 2023 20:57
)
expect(() => {
// eslint-disable-next-line no-unused-expressions
wrapper.vm.a
}).toThrow(/module "nonExistent" not defined in state/)
})
})

onlyVue3('supports composition API', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verifies that #185 is fixed

@winniehell
Copy link
Contributor Author

I will take a look when I have time

@posva do you have a rough estimate when that will be?

I'm considering to release a temporary version from my fork to unblock https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117107#note_1362089457 (which itself blocks a bugfix)

.github/workflows/vue-2.yml Outdated Show resolved Hide resolved
@posva
Copy link
Owner

posva commented May 15, 2023

Are you telling me the plugin already working with Vuex 4 and Vue 3? 😅 That's quite the surprise

@winniehell
Copy link
Contributor Author

yes, looks like it does—and it was a surprise for me, too. 😃 I guess you did a great job on implementing this. 💪

@posva posva force-pushed the winniehell-major-vue-monorepo branch from 0c0dd9a to b986036 Compare May 15, 2023 13:49
@posva posva merged commit 3898fe9 into posva:master May 15, 2023
2 checks passed
@winniehell
Copy link
Contributor Author

@posva thank you for merging this! ❤️ can I ask you to release a new version, too?

you would do me a favor, if you choose to make it a 1.x release (because of the concern in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117107#note_1362056820). if you think that is not justified, can you please let me know what is missing?

@winniehell
Copy link
Contributor Author

ah, I see, you have already released 0.1.0 🚀

@winniehell winniehell deleted the winniehell-major-vue-monorepo branch May 15, 2023 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants