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

Disable the loading of node types in the type tests #19531

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

stof
Copy link
Contributor

@stof stof commented Feb 21, 2025

Those type tests are performing type checking on a project using DOM APIs, intended to reflect the usage in a non-node project. Not loading the node types in that project ensures that the library type declarations don't force a dependency on the node types. See my comment in #19000 (comment)

The changes in #19341 already removed the relying on the type import("@napi-rs/canvas").Canvas (which depends on the node types) in the types of the public API, solving the actual issue for the next release.

Those type tests are performing type checking on a project using DOM APIs, intended to reflect the usage in a non-node project.
Not loading the node types in that project ensures that the library type declarations don't force a dependency on the node types.
@timvandermeij timvandermeij merged commit 23d7398 into mozilla:master Feb 22, 2025
7 checks passed
@timvandermeij
Copy link
Contributor

Thanks for the fix!

@stof stof deleted the patch-1 branch February 22, 2025 15:50
@stof
Copy link
Contributor Author

stof commented Feb 22, 2025

do you know when the next release (containing the change of Mid-January that fixed types for web projects) will happen ? Looking at the release history, it looked like a montly release happened at the beginning of each month but there was no release at the beginning of Febrary.

@timvandermeij
Copy link
Contributor

Yes, that's because we're currently preparing a new major release; see #19536. This change will be part of that release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants