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

fix(node/util): reference error of 'process' #3037

Merged
merged 3 commits into from
Dec 23, 2022

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Dec 21, 2022

Current implementation of util.deprecate depends on global process object and it doesn't work with npm: feature. (For example, connect from npm:mongoose doesn't work. See denoland/examples#12 )

This PR fixes the above issue.

As a side effect of the fix, this PR moves the implementation of deprecate from node/internal/utils.mjs to node/util.ts. This was necessary for avoiding circular dependencies. (See also #1697 (comment)

@kt3k kt3k marked this pull request as ready for review December 21, 2022 13:58
@lino-levan
Copy link
Contributor

LGTM

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@kt3k kt3k merged commit 676e193 into denoland:main Dec 23, 2022
@kt3k kt3k deleted the move-util-deprecate branch December 23, 2022 05:31
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.

None yet

3 participants