Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Silence potentially upcoming circular dependency warning#973

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nfischer merged 1 commit intoshelljs:masterfromaddaleax:no-circ-dep-warning
Oct 20, 2019

Conversation

@addaleax
Copy link
Contributor

Node.js is currently considering printing a warning when a non-existent
property ofmodule.exports is accessed while in a circularrequire()
dependency, in order to make it easier to catch issues with circular
dependencies.

In order to avoid printing these warnings for shelljs, checking for the
property’s existence rather than its truthiness suffices.

Refs:nodejs/node#29935

yan12125 and lideming reacted with thumbs up emojifriederbluemle reacted with hooray emoji
Node.js is currently considering printing a warning when a non-existentproperty of `module.exports` is accessed while in a circular `require()`dependency, in order to make it easier to catch issues with circulardependencies.In order to avoid printing these warnings for shelljs, checking for theproperty’s existence rather than its truthiness suffices.Refs:nodejs/node#29935
@addaleax
Copy link
ContributorAuthor

Also: I’d understand if you don’t like this PR, because the previous code was perfectly fine.

I’m trying to implement this warning in Node.js because I believe that, in the big picture, it helps debug hard problems more than it annoy people – I’d guess that circular dependencies might have tripped you up in the past, too. If you have any feedback about the Node.js PR in general, please feel free to voice it there.

@codecov-io
Copy link

codecov-io commentedOct 18, 2019
edited
Loading

Codecov Report

Merging#973 intomaster willnot change coverage.
The diff coverage is100%.

Impacted file tree graph

@@           Coverage Diff           @@##           master     #973   +/-   ##=======================================  Coverage   97.14%   97.14%           =======================================  Files          34       34             Lines        1298     1298           =======================================  Hits         1261     1261             Misses         37       37
Impacted FilesCoverage Δ
src/common.js98.46% <100%> (ø)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update9aef002...a6bb08e. Read thecomment docs.

Copy link
Member

@nfischernfischer left a comment

Choose a reason for hiding this comment

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

This change seems fine, I don't think we need to be worried about inheritance.

addaleax reacted with heart emoji
@nfischernfischer merged commit05374a7 intoshelljs:masterOct 20, 2019
@addaleaxaddaleax deleted the no-circ-dep-warning branchOctober 23, 2019 14:29
nfischer pushed a commit that referenced this pull requestApr 25, 2020
Node.js is currently considering printing a warning when a non-existentproperty of `module.exports` is accessed while in a circular `require()`dependency, in order to make it easier to catch issues with circulardependencies.In order to avoid printing these warnings for shelljs, checking for theproperty’s existence rather than its truthiness suffices.Refs:nodejs/node#29935
nfischer pushed a commit to shelljs/shx that referenced this pull requestAug 4, 2020
shelljs/shelljs#973 updated shelljs to preventNode 14 from emitting circular dependency warnings.
nfischer added a commit that referenced this pull requestOct 26, 2020
This adds testing for node v14. This removes testing for node v6 and v7because codecov breaks on these versions. This omits node v15 becauseappveyor doesn't seem to support this version. The nodejs org currentlysupports [10, 12, 14, 15].This makes a couple minor edits to the check-node-support script forconsistency withshelljs/shx#186.This bumps the shx dependency because it seems we're hitting issue#973on node v14.Test: npm run check-node-support
nfischer added a commit that referenced this pull requestOct 26, 2020
This adds testing for node v14. This removes testing for node v6 and v7because codecov breaks on these versions. This omits node v15 becauseappveyor doesn't seem to support this version. The nodejs org currentlysupports [10, 12, 14, 15].This makes a couple minor edits to the check-node-support script forconsistency withshelljs/shx#186.This bumps the shx dependency because it seems we're hitting issue#973on node v14.Test: npm run check-node-support
@nfischernfischer added this to thev0.8.4 milestoneApr 6, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nfischernfischernfischer approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

v0.8.4

Development

Successfully merging this pull request may close these issues.

3 participants

@addaleax@codecov-io@nfischer

[8]ページ先頭

©2009-2025 Movatter.jp