Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

MutationObserver feature support for node module's global object or specific objects. #46849

Closed
ganeshkbhat opened this issue Feb 26, 2023 · 2 comments
Labels
feature request Issues that request new features to be added to Node.js.

Comments

@ganeshkbhat
Copy link

What is the problem this feature will solve?

Compatibility with Nodejs? MutationObserver will support Observers on global object or specific objects.

What is the feature you are proposing to solve the problem?

Can I use this MutationObserver for node module's objects declaration tracking and observing declared objects on current nodejs version 18.14.2 LTS, and 19.7.0 Current? Any polyfill also should do.

https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver

What alternatives have you considered?

None. Recommendation for support of similar feature; alternatively.

@ganeshkbhat ganeshkbhat added the feature request Issues that request new features to be added to Node.js. label Feb 26, 2023
@meixg
Copy link
Member

meixg commented Feb 27, 2023

I think the MutationObserver is used to observe DOM, what you want is probably Proxy or defineProperty.

@bnoordhuis
Copy link
Member

@meixg is right. I'll convert this to a discussion.

@nodejs nodejs locked and limited conversation to collaborators Feb 27, 2023
@bnoordhuis bnoordhuis converted this issue into discussion #46858 Feb 27, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
feature request Issues that request new features to be added to Node.js.
Projects
None yet
Development

No branches or pull requests

3 participants