sindresorhus / del

Delete files and directories
MIT License
1.33k stars 66 forks source link

Release Notes for version 7 are incorrect #145

Closed stefanobartoletti closed 2 years ago

stefanobartoletti commented 2 years ago

Hi, thank you for the new updated release! I've just updated this package in one of my projects, in the release notes it is stated that the exports are

require('del') → import {delAsync} from 'del'
require('del').sync → import {delSync} from 'del'

but I get an error if I use these names.

Looking in the source, I've seen that the actual exports are named deleteAsync and deleteSync, so in my project I had to use, i.e., import {deleteAsync} from 'del' instead of import {delAsync} from 'del'.

If you could correct the release notes it would help other users when updating to the new version. Thanks!

sindresorhus commented 2 years ago

Fixed