andyrichardson / andyrichardson/netlify-plugin-ttl-cache
Recursive `rmdir()` is deprecated
- Langage dominant
- JavaScript
- Étoiles
- 16
- Forks
- 3
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
`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)?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.