andyrichardson / andyrichardson/netlify-plugin-ttl-cache
Recursive `rmdir()` is deprecated
- Ngôn ngữ chính
- JavaScript
- Star
- 16
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
`rmdir()` with `recursive: true` [has been deprecated](https://nodejs.org/api/deprecations.html#DEP0147) by Node.js.
https://github.com/andyrichardson/netlify-plugin-ttl-cache/blob/54127d8050d92f1335d37c7666c3161aafa82f11/src/index.js#L41
Would it be possible to either:
- Use [`rm()` instead with `recusive: true`](https://nodejs.org/api/fs.html#fs_fs_rm_path_options_callback)? This would require setting the `package.json` `engines.node` to `>=14.14.0`.
- Use a library like [`del`](https://github.com/sindresorhus/del) or [`rimraf`](https://github.com/isaacs/rimraf)?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.