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 rmdirSync deprecation notice #260

Merged
merged 1 commit into from Jul 31, 2021
Merged

Fix rmdirSync deprecation notice #260

merged 1 commit into from Jul 31, 2021

Conversation

groenroos
Copy link
Member

The Uploads test suite triggers DEP0147 in Node, as recursive fs.rmdirSync will be removed in the future.

However, using the suggested alternative of fs.rmSync doesn't work for Node.js 12, so the fix requires calling the new method only if it is available, and using the current code as a fallback.

@groenroos groenroos added the maintenance Keep dependencies, code and conventions fresh label Jul 31, 2021
@groenroos groenroos self-assigned this Jul 31, 2021
@codecov
Copy link

codecov bot commented Jul 31, 2021

Codecov Report

Merging #260 (df4a611) into master (e6cded6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #260   +/-   ##
=======================================
  Coverage   94.54%   94.54%           
=======================================
  Files          35       35           
  Lines        1247     1247           
=======================================
  Hits         1179     1179           
  Misses         68       68           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6cded6...df4a611. Read the comment docs.

@groenroos groenroos merged commit eb36578 into master Jul 31, 2021
@groenroos groenroos deleted the test/fix-rmdir branch July 31, 2021 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Keep dependencies, code and conventions fresh
Development

Successfully merging this pull request may close these issues.

None yet

1 participant