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

Fix Vue 2.7 compatibility #83

Merged
merged 5 commits into from
Nov 12, 2022
Merged

Fix Vue 2.7 compatibility #83

merged 5 commits into from
Nov 12, 2022

Conversation

Hawxy
Copy link
Contributor

@Hawxy Hawxy commented Oct 24, 2022

Removes the scope from the reactive object, fixing the RangeError: Maximum call stack size exceeded exception.

Note: I'm running the latest version of npm resulting in the package-lock being rebuilt, apologies for the diff size.

Fixes #82

@MartinMalinda
Copy link
Owner

Thanks! This looks promising. Good catch 👏

No need to fix tests here btw. Once we know it's working in 2.7, we can remove support for Vue < 2.7 remove the separate builds for Vue 2 and Vue 3 and even the separate test runs.

@Hawxy
Copy link
Contributor Author

Hawxy commented Oct 24, 2022

No worries. Travis appears unhappy with the new package-lock format & Vuepress with the composition-api removal so you may want to cherry pick this into whichever branch you want to test this in :)

@Hawxy Hawxy changed the base branch from master to vue3 October 24, 2022 12:06
@Hawxy
Copy link
Contributor Author

Hawxy commented Oct 24, 2022

@MartinMalinda I've pushed up a new version that tests against the v4 branch, is passing for myself locally. Just used vue-demi so I didn't need to change the test infrastructure.

@MartinMalinda
Copy link
Owner

@Hawxy that's probably the optimal path forward here, thanks a lot. I've tried vue-demi once before and I couldn't make somthing work with it, maybe the test suite, I'm not sure anymore.

I'll check more in detail soon, but it seems with this it will be possible to finally fully release v4.

@Hawxy Hawxy marked this pull request as ready for review October 24, 2022 12:51
@dschmidt
Copy link
Contributor

dschmidt commented Nov 6, 2022

Hey @MartinMalinda,

is there any chance to have at least another prerelease with this anytime soon?

@Hawxy
Copy link
Contributor Author

Hawxy commented Nov 7, 2022

This is also a blocker for my team so getting this in as soon as possible would be ideal :)

@MartinMalinda
Copy link
Owner

MartinMalinda commented Nov 7, 2022 via email

@dschmidt
Copy link
Contributor

I've played around with the PR and it works fine for me with Vue 2.7. Thanks a lot, @Hawxy!

Just a little heads up for anyone coming accross this: Although vue-demi (in general) can work with Vue < 2.7, this PR does not - so you need to switch to Vue 2.7 and the new vue-concurrency version at the same time.

@Hawxy
Copy link
Contributor Author

Hawxy commented Nov 12, 2022

it works fine for me with Vue 2.7.

Awesome 👍

Although vue-demi (in general) can work with Vue < 2.7, this PR does not

Because I didn't change any library internals to use vue-demi, I just used it so I could reuse the test infrastructure created for Vue 3. I'm aware it didn't used to work for this project, but someone might want to try again.

@dschmidt
Copy link
Contributor

Yep, I understand - just wanted to point it out for anyone trying this or the new release :)

@MartinMalinda MartinMalinda merged commit 93b9fbb into MartinMalinda:vue3 Nov 12, 2022
@MartinMalinda
Copy link
Owner

I've also tested this in a Vue 2.7 app and it works well. It's released in 4.0.0. Thanks @Hawxy and all others testing it!

@Hawxy Hawxy deleted the Vue27 branch November 13, 2022 02:56
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.

Incompatibility with vue 2.7
3 participants