Skip to content

Conversation

@scagood
Copy link

@scagood scagood commented Jan 29, 2024

Here I am aiming to improve the generating of the node: module definitions. I have done this by normalising the properties to experimental, supported, deprecated.

image

name: "module.builtinModules",
supported:
"9.3.0 (backported: ^6.13.0, ^8.10.0)",
"9.3.0 (backported: ^8.10.0, ^6.13.0)",
Copy link
Author

Choose a reason for hiding this comment

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

This will now always be sorted highest -> lowest for everything!

// Core js builtins
AggregateError: {
[READ]: { supported: "15.0.0" },
[READ]: { supported: ["15.0.0"] },
Copy link
Author

Choose a reason for hiding this comment

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

There is only one supported version in this entire file, dispite that I converted them all to a range!

doesNotReject: { [READ]: { supported: "10.0.0" } },
notDeepStrictEqual: { [READ]: { supported: "4.0.0" } },
rejects: { [READ]: { supported: "10.0.0" } },
[READ]: { supported: ["9.9.0", "8.13.0"] },
Copy link
Author

Choose a reason for hiding this comment

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

This is just a little simpler to generate :)

@scagood scagood marked this pull request as ready for review January 29, 2024 07:42
@scagood scagood requested a review from aladdin-add January 29, 2024 07:42
Copy link

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM, hopefully it will help us to automate this information.

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