Skip to content

Commit c129bb0

Browse files
committed
Update size test and docs
1 parent b3a45b2 commit c129bb0

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

‎README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This is a super-simple promise-based keyval store implemented with IndexedDB, originally based on [async-storage by Mozilla](https://github.com/mozilla-b2g/gaia/blob/master/shared/js/async_storage.js).
66

7-
It's small and tree-shakeable. If you only use get/set, the library is ~370 bytes (brotli'd), if you use all methods it's ~560 bytes.
7+
It's small and tree-shakeable. If you only use get/set, the library is ~370 bytes (brotli'd), if you use all methods it's ~570 bytes.
88

99
Although this is tiny, it's a little larger than previous versions due to a [massive bug in Safari](https://bugs.webkit.org/show_bug.cgi?id=226547). Hopefully this fix can be removed in the not-too-distant future, when a version of Safari without the bug reaches enough users.
1010

@@ -183,9 +183,7 @@ Promise.all([del(123), del('hello')])
183183
.catch((err) => console.log('It failed!', err));
184184

185185
// It's faster to do:
186-
delMany([
187-
123, 'hello'
188-
])
186+
delMany([123, 'hello'])
189187
.then(() => console.log('It worked!'))
190188
.catch((err) => console.log('It failed!', err));
191189
```

‎size-tests/all.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,18 @@ import {
99
setMany,
1010
update,
1111
getMany,
12+
delMany,
1213
} from '../dist';
13-
a(get, set, del, clear, keys, values, entries, setMany, update, getMany);
14+
a(
15+
get,
16+
set,
17+
del,
18+
clear,
19+
keys,
20+
values,
21+
entries,
22+
setMany,
23+
update,
24+
getMany,
25+
delMany,
26+
);

0 commit comments

Comments
 (0)