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: bump to vue v3.2.16 and fix devtools #971

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

cexbrayat
Copy link
Member

There is a breaking change in the devtools API as setDevtoolsHook now needs a second parameter.
vuejs/core@2476eaa#diff-56930a63772d2e89f19432918b9d6ed851ede4159b0d32404e0c1d8c159fec99R346

There is a breaking change in the devtool API as `setDevtoolsHook` now needs a second parameter.
vuejs/core@2476eaa#diff-56930a63772d2e89f19432918b9d6ed851ede4159b0d32404e0c1d8c159fec99R346
@@ -30,7 +30,7 @@ export function emitted<T = unknown>(
export const attachEmitListener = () => {
events = {}
// use devtools to capture this "emit"
setDevtoolsHook(createDevTools(events))
setDevtoolsHook(createDevTools(events), this)
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this is the proper value to pass here

Copy link
Member

Choose a reason for hiding this comment

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

Not sure this is actually - when we do yarn build we get a warning:

src/index.ts → dist/vue-test-utils.esm-browser.js...
(!) Error when using sourcemap for reporting an error: Can't resolve original location of error.
src/emit.ts (1:12)
(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
src/emit.ts
1: var _this = this;
               ^
2: import { setDevtoolsHook } from 'vue';
3: var events;

I wonder if this is a false positive. I'll release the next RC and see what happens.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ho right, sorry I missed that. Opened a PR to fix it #1011

@cexbrayat
Copy link
Member Author

Merging this one even if not reviewed as it unblocks dependabot

@cexbrayat cexbrayat merged commit 8b81cc1 into vuejs:master Sep 27, 2021
@cexbrayat cexbrayat deleted the chore/vue-v3.2.16 branch September 27, 2021 19:19
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.

2 participants