-
Notifications
You must be signed in to change notification settings - Fork 804
Update CHANGES.md to reflect #2513 #2541
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the CHANGES.md documentation to reflect the implementation of issue #2513, which relates to handling CommonJS exports initialized to undefined. The changes primarily reorganize and update documentation about implemented features and behavior changes.
Changes:
- Removed "Features yet to be implemented" section for
Object.definePropertyon CommonJS exports (now implemented) - Updated @typedef/@callback behavior description to reflect hoisting semantics
- Replaced removed CommonJS limitations with documentation about the new
undefinedinitialization pattern support
CHANGES.md
Outdated
| #### Initializing exports to `undefined`: | ||
|
|
||
| If you can't configure your package to use ESM syntax, you can use destructuring instead: | ||
| To accomodate the pattern of initializing CommonJS exports to `undefined` (sometimes written as `void 0`) and then subseqently assigning their intended values, when CommonJS exports have multiple assignments and an initial assignment of `undefined`, the `undefined` is ignored when determining the type of the export. |
Copilot
AI
Jan 18, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling error: "subseqently" should be spelled "subsequently".
| To accomodate the pattern of initializing CommonJS exports to `undefined` (sometimes written as `void 0`) and then subseqently assigning their intended values, when CommonJS exports have multiple assignments and an initial assignment of `undefined`, the `undefined` is ignored when determining the type of the export. | |
| To accomodate the pattern of initializing CommonJS exports to `undefined` (sometimes written as `void 0`) and then subsequently assigning their intended values, when CommonJS exports have multiple assignments and an initial assignment of `undefined`, the `undefined` is ignored when determining the type of the export. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.