Skip to content

Commit

Permalink
Remove the deprecated .del() method
Browse files Browse the repository at this point in the history
It was renamed to `.delete()`
  • Loading branch information
sindresorhus committed Feb 13, 2017
1 parent 9ed0378 commit 383b09f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ class Configstore {
clear() {
this.all = {};
}
// DEPRECATED
del(key) {
this.delete(key);
}
}

module.exports = Configstore;
6 changes: 0 additions & 6 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ test('.has()', t => {
t.false(t.context.conf.has('missing'));
});

test('.del() - SOFT-DEPRECATED', t => {
t.context.conf.set('foo', 'bar');
t.context.conf.del('foo');
t.not(t.context.conf.get('foo'), 'bar');
});

test('.delete()', t => {
t.context.conf.set('foo', 'bar');
t.context.conf.set('baz.boo', true);
Expand Down

0 comments on commit 383b09f

Please sign in to comment.