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

Core: Throw an error when hooks are added outside of their module #1578

Merged

Conversation

raycohen
Copy link
Member

@raycohen raycohen commented Apr 5, 2021

Ref: #1576

For QUnit version 3.0

Copy link
Member

@Krinkle Krinkle left a comment

Choose a reason for hiding this comment

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

LGTM. Naturally will land a bit later as we're not yet in the homestretch to QUnit 3.0.

But, we could land an alternate version in QUnit 2.x now, with a warning. That way, people can smoothly update to the last 2.x release, and there take their time to address any warnings whilst builds remain passing, and then move to 3.0 without no changes or other surprises.

test/main/modules.js Outdated Show resolved Hide resolved
@Krinkle Krinkle added this to the 3.0 release milestone Apr 10, 2021
@raycohen raycohen marked this pull request as ready for review April 10, 2021 20:24
@Krinkle Krinkle changed the title Core: Throw an error when hooks are invoked outside of their module Core: Throw an error when hooks are added outside of their module Jul 28, 2021
@Krinkle Krinkle force-pushed the error-when-hooks-referenced-in-wrong-module branch from 9549683 to fdcabba Compare June 7, 2024 22:15
Krinkle pushed a commit to raycohen/qunit that referenced this pull request Jun 7, 2024
Change deprecation warning into an error.

Ref qunitjs#1576
Closes qunitjs#1578
Krinkle pushed a commit to raycohen/qunit that referenced this pull request Jun 7, 2024
Change deprecation warning into an error.

Ref qunitjs#1576
Closes qunitjs#1578
@Krinkle Krinkle force-pushed the error-when-hooks-referenced-in-wrong-module branch from fdcabba to 35f0beb Compare June 7, 2024 22:16
@qunitjs qunitjs deleted a comment from linux-foundation-easycla bot Jun 7, 2024
Krinkle added a commit that referenced this pull request Jun 7, 2024
Change deprecation warning into an error.

Ref #1576
Closes #1578

Co-authored-by: Ray Cohen <[email protected]>
Krinkle pushed a commit to raycohen/qunit that referenced this pull request Jun 8, 2024
Change deprecation warning into an error.

Ref qunitjs#1576
Closes qunitjs#1578
@Krinkle Krinkle force-pushed the error-when-hooks-referenced-in-wrong-module branch from 35f0beb to ad8bab0 Compare June 8, 2024 00:58
Change deprecation warning into an error.

Ref qunitjs#1576
Closes qunitjs#1578
@Krinkle Krinkle force-pushed the error-when-hooks-referenced-in-wrong-module branch from ad8bab0 to c0e123b Compare June 8, 2024 01:02
@Krinkle Krinkle merged commit 6e0ead2 into qunitjs:main Jun 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants