-
Notifications
You must be signed in to change notification settings - Fork 36
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(shared-metrics): removed fs-extra dependency from production #1362
Conversation
c2dc0e6
to
dcd6beb
Compare
01e8f54
to
59ccf7d
Compare
59ccf7d
to
dec3388
Compare
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.
Now that we're deprecating support for versions below 18
Suggestion: Now that we're dropping support for versions below 18 in v4.
Suggestion for commit:
fix(shared-metrics): replaced fs-extra with fs promises
@@ -882,10 +877,10 @@ mochaSuiteFn('tracing/db2', function () { | |||
.then(() => | |||
testUtils.retry(() => | |||
verifySpans(agentControls, controls, { | |||
numberOfSpans: 14, | |||
numberOfSpans: 15, |
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.
I noticed there are now 15 spans, likely because I’m using the native fs
, which may have caused the span count to increase. If the test continues to fail again, so I will investigate further.
8e99db6
to
f1a3d4e
Compare
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
- Native `fs.promises.cp` available in Node.js 18+. - See: https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options - refs INSTA-786
The external dependency
fs-extra
has been removed from the production dependencies. Previously, we couldn't use the nativefs.cp
module due to its unavailability in earlier versions of Node.js 16. Now that we're deprecating support for versions below 18, we're switching to the native fs module See https://nodejs.org/api/fs.html#fspromisescpsrc-dest-optionsrefs #1265