@ohos-ports/level-js 0.0.0-stage → 6.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +513 -0
- package/LICENSE +21 -0
- package/README.md +158 -2
- package/UPGRADING.md +183 -0
- package/index.js +336 -0
- package/iterator.js +144 -0
- package/package.json +54 -4
- package/sauce-labs.svg +81 -0
- package/util/clear.js +34 -0
- package/util/deserialize.js +44 -0
- package/util/ensure-indexeddb.js +60 -0
- package/util/key-range.js +23 -0
- package/util/serialize.js +21 -0
- package/util/support.js +17 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [6.1.0] - 2021-09-28
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add `db.getMany(keys)` ([#214](https://github.com/Level/level-js/issues/214)) ([`f5a3ca3`](https://github.com/Level/level-js/commit/f5a3ca3)) (Vincent Weevers).
|
|
8
|
+
|
|
9
|
+
## [6.0.0] - 2021-04-09
|
|
10
|
+
|
|
11
|
+
_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **Breaking:** bump `abstract-leveldown` ([`720aced`](https://github.com/Level/level-js/commit/720aced)) (Vincent Weevers)
|
|
16
|
+
- **Breaking:** bump `buffer` from 5.x to 6.x ([#210](https://github.com/Level/level-js/issues/210)) ([`cc68b21`](https://github.com/Level/level-js/commit/cc68b21)) (Alex Potsides)
|
|
17
|
+
- Modernize syntax and bump `standard` ([Level/community#98](https://github.com/Level/community/issues/98)) ([`0ce815f`](https://github.com/Level/level-js/commit/0ce815f)) (Vincent Weevers)
|
|
18
|
+
- Every browser in our test matrix now supports binary keys ([`2c20127`](https://github.com/Level/level-js/commit/2c20127)) (Vincent Weevers)
|
|
19
|
+
|
|
20
|
+
## [5.0.2] - 2020-04-03
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Use `nextTick` of `abstract-leveldown` ([#195](https://github.com/Level/level-js/issues/195)) ([**@vweevers**](https://github.com/vweevers)) (same underlying code)
|
|
25
|
+
- Upgrade `nyc` devDependency from `^14.0.0` to `^15.0.0` ([#187](https://github.com/Level/level-js/issues/187)) ([**@vweevers**](https://github.com/vweevers))
|
|
26
|
+
- Upgrade `airtap` devDependency from `^2.0.0` to `^3.0.0` ([#189](https://github.com/Level/level-js/issues/189)) ([**@vweevers**](https://github.com/vweevers))
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Add `buffer` for browsers ([#191](https://github.com/Level/level-js/issues/191)) ([**@hugomrdias**](https://github.com/hugomrdias))
|
|
31
|
+
|
|
32
|
+
## [5.0.1] - 2019-11-29
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- Restore support of empty prefix option ([#184](https://github.com/Level/level-js/issues/184)) ([**@achingbrain**](https://github.com/achingbrain)). This restores a previous behavior (of `level-js` < 3) that unknown to us, was provided by the since-removed `IDBWrapper`.
|
|
37
|
+
|
|
38
|
+
## [5.0.0] - 2019-10-04
|
|
39
|
+
|
|
40
|
+
_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- **Breaking**: Drop support of key & value types other than string and Buffer ([#179](https://github.com/Level/level-js/issues/179)) ([**@vweevers**](https://github.com/vweevers))
|
|
45
|
+
- Replace mentions of `level-browserify` with `level` ([`58b3e07`](https://github.com/Level/level-js/commit/58b3e07)) ([**@vweevers**](https://github.com/vweevers))
|
|
46
|
+
- Upgrade `hallmark` devDependency from `^0.1.0` to `^2.0.0` ([#172](https://github.com/Level/level-js/issues/172), [#177](https://github.com/Level/level-js/issues/177)) ([**@vweevers**](https://github.com/vweevers))
|
|
47
|
+
- Upgrade `nyc` devDependency from `^13.1.0` to `^14.0.0` ([#169](https://github.com/Level/level-js/issues/169)) ([**@vweevers**](https://github.com/vweevers))
|
|
48
|
+
- Upgrade `standard` devDependency from `^12.0.1` to `^14.0.2` ([#171](https://github.com/Level/level-js/issues/171), [`aacb0ea`](https://github.com/Level/level-js/commit/aacb0ea)) ([**@vweevers**](https://github.com/vweevers), [**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- Add manifest ([Level/community#83](https://github.com/Level/community/issues/83)) ([#183](https://github.com/Level/level-js/issues/183)) ([**@vweevers**](https://github.com/vweevers))
|
|
53
|
+
- Support `clear()` ([Level/community#79](https://github.com/Level/community/issues/79)) ([#182](https://github.com/Level/level-js/issues/182)) ([**@vweevers**](https://github.com/vweevers))
|
|
54
|
+
|
|
55
|
+
## [4.0.1] - 2019-03-31
|
|
56
|
+
|
|
57
|
+
### Changed
|
|
58
|
+
|
|
59
|
+
- Apply common project tweaks ([#164](https://github.com/Level/level-js/issues/164), [#165](https://github.com/Level/level-js/issues/165)) ([**@vweevers**](https://github.com/vweevers))
|
|
60
|
+
|
|
61
|
+
### Removed
|
|
62
|
+
|
|
63
|
+
- Remove outdated sentence about nullish values from README ([#166](https://github.com/Level/level-js/issues/166)) ([**@vweevers**](https://github.com/vweevers))
|
|
64
|
+
|
|
65
|
+
## [4.0.0] - 2018-12-30
|
|
66
|
+
|
|
67
|
+
_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._
|
|
68
|
+
|
|
69
|
+
### Changed
|
|
70
|
+
|
|
71
|
+
- Upgrade `abstract-leveldown` from `~5.0.0` to `~6.0.1` ([#155](https://github.com/Level/level-js/issues/155), [#157](https://github.com/Level/level-js/issues/157)) ([**@vweevers**](https://github.com/vweevers))
|
|
72
|
+
- Don't serialize boolean or `NaN` keys, have IDB reject them ([#155](https://github.com/Level/level-js/issues/155)) ([**@vweevers**](https://github.com/vweevers))
|
|
73
|
+
- Update test of `key cannot be an empty Array` error ([#155](https://github.com/Level/level-js/issues/155)) ([**@vweevers**](https://github.com/vweevers))
|
|
74
|
+
- Change `iterator.db` to reference `level-js` instance, not IDB ([#155](https://github.com/Level/level-js/issues/155)) ([**@vweevers**](https://github.com/vweevers))
|
|
75
|
+
- Handle `location` in constructor, as it was removed from `abstract-leveldown` ([#155](https://github.com/Level/level-js/issues/155)) ([**@vweevers**](https://github.com/vweevers))
|
|
76
|
+
- Use `level-concat-iterator` and `testCommon.factory()` in custom tests ([#155](https://github.com/Level/level-js/issues/155)) ([**@vweevers**](https://github.com/vweevers))
|
|
77
|
+
- Invoke abstract tests from single function ([#155](https://github.com/Level/level-js/issues/155)) ([**@vweevers**](https://github.com/vweevers))
|
|
78
|
+
- Upgrade `airtap` devDependency from `0.0.7` to `^2.0.0` ([`2b71337`](https://github.com/Level/level-js/commit/2b71337), [#161](https://github.com/Level/level-js/issues/161)) ([**@ralphtheninja**](https://github.com/ralphtheninja), [**@vweevers**](https://github.com/vweevers))
|
|
79
|
+
- Upgrade `standard` devDependency from `^11.0.1` to `^12.0.1` ([#153](https://github.com/Level/level-js/issues/153)) ([**@vweevers**](https://github.com/vweevers), [**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
80
|
+
- Replace `remark-cli` devDependency with `hallmark` ([#151](https://github.com/Level/level-js/issues/151), [#153](https://github.com/Level/level-js/issues/153)) ([**@vweevers**](https://github.com/vweevers))
|
|
81
|
+
|
|
82
|
+
### Added
|
|
83
|
+
|
|
84
|
+
- Test and document native sort order ([#157](https://github.com/Level/level-js/issues/157)) ([**@vweevers**](https://github.com/vweevers))
|
|
85
|
+
- Add iPhone and Android `latest` to test matrix ([#162](https://github.com/Level/level-js/issues/162)) ([**@vweevers**](https://github.com/vweevers))
|
|
86
|
+
- Add `nyc` and `coveralls` devDependencies ([#150](https://github.com/Level/level-js/issues/150), [#153](https://github.com/Level/level-js/issues/153)) ([`eb1aead`](https://github.com/Level/level-js/commit/eb1aead)) ([**@ralphtheninja**](https://github.com/ralphtheninja), [**@vweevers**](https://github.com/vweevers))
|
|
87
|
+
- Add Contributing section to README ([`c94a9a4`](https://github.com/Level/level-js/commit/c94a9a4)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
88
|
+
|
|
89
|
+
### Removed
|
|
90
|
+
|
|
91
|
+
- Remove now irrelevant serialization of nullish values ([#155](https://github.com/Level/level-js/issues/155)) ([**@vweevers**](https://github.com/vweevers))
|
|
92
|
+
- Remove unused `IndexedDBShim` from tests ([#162](https://github.com/Level/level-js/issues/162)) ([**@vweevers**](https://github.com/vweevers))
|
|
93
|
+
|
|
94
|
+
## [3.0.0] - 2018-06-17
|
|
95
|
+
|
|
96
|
+
_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._
|
|
97
|
+
|
|
98
|
+
### Changed
|
|
99
|
+
|
|
100
|
+
- Destroy with `location` and `prefix` only ([#116](https://github.com/Level/level-js/issues/116)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
101
|
+
- Replace `util.inherits` with `inherits` module ([`8db16c1`](https://github.com/Level/level-js/commit/8db16c1)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
102
|
+
- Change copyright years to "2012-present" ([`7017edd`](https://github.com/Level/level-js/commit/7017edd)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
103
|
+
- Simplify license description ([#141](https://github.com/Level/level-js/issues/141)) ([**@vweevers**](https://github.com/vweevers))
|
|
104
|
+
- Update `package.json` description and keywords ([#141](https://github.com/Level/level-js/issues/141)) ([**@vweevers**](https://github.com/vweevers))
|
|
105
|
+
|
|
106
|
+
### Added
|
|
107
|
+
|
|
108
|
+
- Add `CHANGELOG.md` ([#107](https://github.com/Level/level-js/issues/107), [#115](https://github.com/Level/level-js/issues/115)) ([**@ralphtheninja**](https://github.com/ralphtheninja), [**@vweevers**](https://github.com/vweevers))
|
|
109
|
+
- Add `UPGRADING.md` ([#143](https://github.com/Level/level-js/issues/143)) ([**@vweevers**](https://github.com/vweevers))
|
|
110
|
+
- Add `CONTRIBUTORS.md` (replaces `COLLABORATORS.md`) ([#141](https://github.com/Level/level-js/issues/141)) ([**@vweevers**](https://github.com/vweevers))
|
|
111
|
+
- Add `standard` ([#112](https://github.com/Level/level-js/issues/112)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
112
|
+
- Document constructor ([#119](https://github.com/Level/level-js/issues/119)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
113
|
+
- Document type support ([#125](https://github.com/Level/level-js/issues/125), [#143](https://github.com/Level/level-js/issues/143)) ([**@vweevers**](https://github.com/vweevers))
|
|
114
|
+
- Add `remark` tooling ([#141](https://github.com/Level/level-js/issues/141), [#143](https://github.com/Level/level-js/issues/143), [#147](https://github.com/Level/level-js/issues/147)) ([**@vweevers**](https://github.com/vweevers))
|
|
115
|
+
- Test default and custom prefix ([#124](https://github.com/Level/level-js/issues/124)) ([**@vweevers**](https://github.com/vweevers))
|
|
116
|
+
- Test all key types of IndexedDB Second Edition ([#130](https://github.com/Level/level-js/issues/130)) ([**@vweevers**](https://github.com/vweevers))
|
|
117
|
+
- Test illegal value types ([#118](https://github.com/Level/level-js/issues/118)) ([**@vweevers**](https://github.com/vweevers))
|
|
118
|
+
- Test illegal and stringified key types ([#139](https://github.com/Level/level-js/issues/139)) ([**@vweevers**](https://github.com/vweevers))
|
|
119
|
+
- Test `Buffer`, `ArrayBuffer` and `Uint8Array` values with `asBuffer` option ([#146](https://github.com/Level/level-js/issues/146)) ([**@vweevers**](https://github.com/vweevers))
|
|
120
|
+
|
|
121
|
+
### Fixed
|
|
122
|
+
|
|
123
|
+
- Add original copyright owner (Max Ogden) ([#141](https://github.com/Level/level-js/issues/141)) ([**@vweevers**](https://github.com/vweevers))
|
|
124
|
+
- Replace `level.js` in documentation to match npm name `level-js` ([#121](https://github.com/Level/level-js/issues/121)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
125
|
+
- Force airtap's browserify to use latest `buffer@5` ([#122](https://github.com/Level/level-js/issues/122)) ([**@vweevers**](https://github.com/vweevers))
|
|
126
|
+
- Don't stringify keys (except fallbacks, booleans and `NaN`) ([#130](https://github.com/Level/level-js/issues/130)) ([**@vweevers**](https://github.com/vweevers))
|
|
127
|
+
- Fix conversion of `ArrayBuffer` cursor key to `Buffer` ([#130](https://github.com/Level/level-js/issues/130)) ([**@vweevers**](https://github.com/vweevers))
|
|
128
|
+
- Catch IndexedDB key and value errors ([#139](https://github.com/Level/level-js/issues/139)) ([**@vweevers**](https://github.com/vweevers))
|
|
129
|
+
- Use `setImmediate` with callback in `_close()` ([#111](https://github.com/Level/level-js/issues/111)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
130
|
+
- Whitelist npm package files ([#126](https://github.com/Level/level-js/issues/126)) ([**@vweevers**](https://github.com/vweevers))
|
|
131
|
+
- Avoid `instanceof Date` for cross-realm support ([#129](https://github.com/Level/level-js/issues/129)) ([**@vweevers**](https://github.com/vweevers))
|
|
132
|
+
- Fix wrong release date for `3.0.0-rc1` ([`43a702b`](https://github.com/Level/level-js/commit/43a702b)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
133
|
+
|
|
134
|
+
### Removed
|
|
135
|
+
|
|
136
|
+
- Remove `test/levelup-test.js` ([#134](https://github.com/Level/level-js/issues/134)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
137
|
+
- Remove `levelup` from destroy tests ([#136](https://github.com/Level/level-js/issues/136)) ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
138
|
+
|
|
139
|
+
## [3.0.0-rc1] - 2018-05-26
|
|
140
|
+
|
|
141
|
+
### Changed
|
|
142
|
+
|
|
143
|
+
- Upgrade `abstract-leveldown` from `0.12.0` to `5.0.0` ([**@vweevers**](https://github.com/vweevers))
|
|
144
|
+
- Upgrade `typedarray-to-buffer` from `1.0.0` to `3.1.5` ([**@vweevers**](https://github.com/vweevers))
|
|
145
|
+
- Upgrade `levelup` devDependency from `0.18.2` to `3.0.0` ([**@vweevers**](https://github.com/vweevers))
|
|
146
|
+
- Upgrade `browserify` devDependency from `4.1.2` to `16.2.2` ([**@vweevers**](https://github.com/vweevers))
|
|
147
|
+
- Switch license from BSD to MIT ([**@ralphtheninja**](https://github.com/ralphtheninja))
|
|
148
|
+
- Replace `IDBWrapper` with straight IndexedDB code ([**@vweevers**](https://github.com/vweevers))
|
|
149
|
+
- Change default database prefix from `IDBWrapper-` to `level-js-` ([**@vweevers**](https://github.com/vweevers))
|
|
150
|
+
- Implement abstract `#_serializeKey` with support of all IndexedDB Second Edition types including binary keys (as Buffers) ([**@vweevers**](https://github.com/vweevers))
|
|
151
|
+
- Implement abstract `#_serializeValue` with support of all types of the structured clone algorithm except for `null` and `undefined` ([**@vweevers**](https://github.com/vweevers))
|
|
152
|
+
- Use `immediate` module for consistent microtask behavior ([**@vweevers**](https://github.com/vweevers))
|
|
153
|
+
- Replace `Buffer()` with `Buffer.from()` ([**@vweevers**](https://github.com/vweevers))
|
|
154
|
+
- Rename `Iterator#iterator` to `#transaction` ([**@vweevers**](https://github.com/vweevers))
|
|
155
|
+
- Replace `beefy` with `airtap --local` for local testing ([**@vweevers**](https://github.com/vweevers))
|
|
156
|
+
- Homogenize README title, description and headers ([**@vweevers**](https://github.com/vweevers))
|
|
157
|
+
- Make real `tape` tests out of `test-levelup.js` ([**@vweevers**](https://github.com/vweevers))
|
|
158
|
+
- Restructure custom tests to follow abstract test suite format ([**@vweevers**](https://github.com/vweevers))
|
|
159
|
+
|
|
160
|
+
### Added
|
|
161
|
+
|
|
162
|
+
- Add continuous browser tests with `airtap` and Sauce Labs ([**@vweevers**](https://github.com/vweevers))
|
|
163
|
+
- Add `prefix` and `version` options to constructor ([**@vweevers**](https://github.com/vweevers))
|
|
164
|
+
- Detect binary key support and fallback to `String(buffer)` ([**@vweevers**](https://github.com/vweevers))
|
|
165
|
+
- Detect array key support and fallback to `String(array)` ([**@vweevers**](https://github.com/vweevers))
|
|
166
|
+
- Test all value types of the structured clone algorithm ([**@vweevers**](https://github.com/vweevers))
|
|
167
|
+
- Catch `DataCloneError` if the environment does not support serializing the type of a key or value ([**@vweevers**](https://github.com/vweevers))
|
|
168
|
+
- Include Promise polyfill for `levelup` integration tests ([**@vweevers**](https://github.com/vweevers))
|
|
169
|
+
- Test that `Iterator` stringifies `Buffer.from()` argument ([**@vweevers**](https://github.com/vweevers))
|
|
170
|
+
- Add README badges, new goals and a code example with `levelup` ([**@vweevers**](https://github.com/vweevers))
|
|
171
|
+
- Add npm files to `.gitignore` ([**@vweevers**](https://github.com/vweevers))
|
|
172
|
+
|
|
173
|
+
### Fixed
|
|
174
|
+
|
|
175
|
+
- Start `Iterator` cursor immediately and fill an in-memory cache to fulfill `abstract-leveldown` snapshot guarantees ([**@vweevers**](https://github.com/vweevers))
|
|
176
|
+
- Stop advancing `Iterator` cursor when `options.limit` is reached ([**@vweevers**](https://github.com/vweevers))
|
|
177
|
+
- Rename public `#iterator` to private `#_iterator` ([**@vweevers**](https://github.com/vweevers))
|
|
178
|
+
- Fix `#_iterator({ limit: 0 })` to yield 0 entries ([**@vweevers**](https://github.com/vweevers))
|
|
179
|
+
- Handle transaction errors in `Iterator` ([**@vweevers**](https://github.com/vweevers))
|
|
180
|
+
- Fix constructor to call super ([**@vweevers**](https://github.com/vweevers))
|
|
181
|
+
- Make one request at a time in a batch transaction, saving CPU time ([**@vweevers**](https://github.com/vweevers))
|
|
182
|
+
- Properly close and destroy db's in custom tests ([**@vweevers**](https://github.com/vweevers))
|
|
183
|
+
- Update README links ([**@vweevers**](https://github.com/vweevers))
|
|
184
|
+
|
|
185
|
+
### Removed
|
|
186
|
+
|
|
187
|
+
- Remove support of `ArrayBuffer` values in favor of `Buffer` ([**@vweevers**](https://github.com/vweevers))
|
|
188
|
+
- Remove now unneeded `raw` option from `#_get()` and `#_iterator()` ([**@vweevers**](https://github.com/vweevers))
|
|
189
|
+
- Run tests without `IndexedDBShim` ([**@vweevers**](https://github.com/vweevers))
|
|
190
|
+
- Remove `Buffer` to `Uint8Array` conversion in `#_put()` and `#_batch()` ([**@vweevers**](https://github.com/vweevers))
|
|
191
|
+
- Remove obsolete `#_approximateSize` ([**@vweevers**](https://github.com/vweevers))
|
|
192
|
+
- Remove obsolete `#_isBuffer` ([**@vweevers**](https://github.com/vweevers))
|
|
193
|
+
- Remove obsolete `testBuffer` from abstract tests ([**@vweevers**](https://github.com/vweevers))
|
|
194
|
+
- Remove obsolete writestream test from `test-levelup.js` ([**@vweevers**](https://github.com/vweevers))
|
|
195
|
+
- Rely on `abstract-leveldown` defaults in `Iterator` constructor ([**@vweevers**](https://github.com/vweevers))
|
|
196
|
+
- Rely on `abstract-leveldown` callback defaults ([**@vweevers**](https://github.com/vweevers))
|
|
197
|
+
- Remove testling from `package.json` ([**@vweevers**](https://github.com/vweevers))
|
|
198
|
+
- Remove `level.js` logo ([**@vweevers**](https://github.com/vweevers))
|
|
199
|
+
|
|
200
|
+
## [2.2.4] - 2016-05-09
|
|
201
|
+
|
|
202
|
+
### Changed
|
|
203
|
+
|
|
204
|
+
- Use `toArrayBuffer()` only when present ([**@substack**](https://github.com/substack))
|
|
205
|
+
|
|
206
|
+
## [2.2.3] - 2015-12-10
|
|
207
|
+
|
|
208
|
+
### Changed
|
|
209
|
+
|
|
210
|
+
- Update `ltgt` to `^2.1.2` ([**@ryanramage**](https://github.com/ryanramage))
|
|
211
|
+
|
|
212
|
+
## [2.2.2] - 2015-09-12
|
|
213
|
+
|
|
214
|
+
_This release introduced `this._keyRangeError`._
|
|
215
|
+
|
|
216
|
+
### Added
|
|
217
|
+
|
|
218
|
+
- Add [**@nolanlawson**](https://github.com/nolanlawson) to collaborators ([**@maxogden**](https://github.com/maxogden))
|
|
219
|
+
|
|
220
|
+
### Fixed
|
|
221
|
+
|
|
222
|
+
- Fix iterator when start > end ([**@nolanlawson**](https://github.com/nolanlawson))
|
|
223
|
+
|
|
224
|
+
## [2.2.1] - 2015-07-05
|
|
225
|
+
|
|
226
|
+
### Changed
|
|
227
|
+
|
|
228
|
+
- Update collaborators ([**@maxogden**](https://github.com/maxogden))
|
|
229
|
+
- Roll back `abstract-leveldown` to `~0.12.0` ([**@maxogden**](https://github.com/maxogden))
|
|
230
|
+
|
|
231
|
+
## [2.2.0] - 2015-07-03
|
|
232
|
+
|
|
233
|
+
### Added
|
|
234
|
+
|
|
235
|
+
- Add `Collaborators` section to README ([**@maxogden**](https://github.com/maxogden))
|
|
236
|
+
|
|
237
|
+
### Changed
|
|
238
|
+
|
|
239
|
+
- Update syntax highlighting in README ([**@yoshuawuyts**](https://github.com/yoshuawuyts))
|
|
240
|
+
- Update `idb-wrapper` to `^1.5.0` ([**@JamesKyburz**](https://github.com/JamesKyburz))
|
|
241
|
+
- Update `abstract-leveldown` to `^2.4.0` ([**@maxogden**](https://github.com/maxogden))
|
|
242
|
+
- Update `tape` to `^4.0.0` ([**@maxogden**](https://github.com/maxogden))
|
|
243
|
+
- Move `tape` to devDependencies ([**@maxogden**](https://github.com/maxogden))
|
|
244
|
+
- Change license from BSD to BSD-2-Clause ([**@maxogden**](https://github.com/maxogden))
|
|
245
|
+
|
|
246
|
+
### Removed
|
|
247
|
+
|
|
248
|
+
- Remove Testling badge ([**@maxogden**](https://github.com/maxogden))
|
|
249
|
+
|
|
250
|
+
## [2.1.6] - 2014-06-15
|
|
251
|
+
|
|
252
|
+
### Fixed
|
|
253
|
+
|
|
254
|
+
- Avoid using keyword in `cursor.continue()` ([**@nolanlawson**](https://github.com/nolanlawson))
|
|
255
|
+
|
|
256
|
+
## [2.1.5] - 2014-05-29
|
|
257
|
+
|
|
258
|
+
### Changed
|
|
259
|
+
|
|
260
|
+
- Use `ltgt` module to handle ranges ([**@dominictarr**](https://github.com/dominictarr))
|
|
261
|
+
|
|
262
|
+
## [2.1.4] - 2014-05-13
|
|
263
|
+
|
|
264
|
+
### Changed
|
|
265
|
+
|
|
266
|
+
- Update `browserify` to `^4.1.2` ([**@maxogden**](https://github.com/maxogden))
|
|
267
|
+
- Move `browserify` to devDependencies ([**@maxogden**](https://github.com/maxogden))
|
|
268
|
+
|
|
269
|
+
## [2.1.3] - 2014-04-09
|
|
270
|
+
|
|
271
|
+
### Added
|
|
272
|
+
|
|
273
|
+
- Use `typedarray-to-buffer` to avoid copying to Buffer ([**@mafintosh**](https://github.com/mafintosh))
|
|
274
|
+
|
|
275
|
+
## [2.1.2] - 2014-04-05
|
|
276
|
+
|
|
277
|
+
### Added
|
|
278
|
+
|
|
279
|
+
- Add link to [**@brycebaril**](https://github.com/brycebaril)'s presentation to README ([**@maxogden**](https://github.com/maxogden))
|
|
280
|
+
|
|
281
|
+
### Changed
|
|
282
|
+
|
|
283
|
+
- Update browser configuration for Testling ([**@maxogden**](https://github.com/maxogden))
|
|
284
|
+
|
|
285
|
+
## [2.1.1] - 2014-03-12
|
|
286
|
+
|
|
287
|
+
_This was not published to npm. There's also a gap between `2.1.1` and `2.0.0` that is inconsistent. The `options.raw` property was introduced in this release._
|
|
288
|
+
|
|
289
|
+
### Changed
|
|
290
|
+
|
|
291
|
+
- Update browser configuration for Testling ([**@maxogden**](https://github.com/maxogden))
|
|
292
|
+
- Update `abstract-leveldown` to `~0.12.0` ([**@maxogden**](https://github.com/maxogden))
|
|
293
|
+
- Update `levelup` to `~0.18.2` ([**@maxogden**](https://github.com/maxogden))
|
|
294
|
+
- Make sure to store `Uint8Array` ([**@maxogden**](https://github.com/maxogden))
|
|
295
|
+
- Test storing native JS types with raw = true ([**@maxogden**](https://github.com/maxogden))
|
|
296
|
+
|
|
297
|
+
## [2.0.0] - 2014-03-09
|
|
298
|
+
|
|
299
|
+
_For some reason both `tape` and `browserify` were moved from devDependencies to dependencies. This release only had one commit._
|
|
300
|
+
|
|
301
|
+
### Changed
|
|
302
|
+
|
|
303
|
+
- Update `browserify` to `~3.32.0` ([**@maxogden**](https://github.com/maxogden))
|
|
304
|
+
- Update `tape` to `~2.10.2` ([**@maxogden**](https://github.com/maxogden))
|
|
305
|
+
- Change default encoding of values to strings to more closely match `leveldown` ([**@maxogden**](https://github.com/maxogden))
|
|
306
|
+
|
|
307
|
+
### Fixed
|
|
308
|
+
|
|
309
|
+
- Add missing `xtend` dependency ([**@maxogden**](https://github.com/maxogden))
|
|
310
|
+
|
|
311
|
+
## [1.2.0] - 2014-03-09
|
|
312
|
+
|
|
313
|
+
### Added
|
|
314
|
+
|
|
315
|
+
- Add `IndexedDBShim` to tests ([**@maxogden**](https://github.com/maxogden))
|
|
316
|
+
- Add `Level.destroy()` ([**@qs44**](https://github.com/qs44))
|
|
317
|
+
- Add prefix to pass `PouchDB` tests ([**@qs44**](https://github.com/qs44))
|
|
318
|
+
- Test `Level.destroy()` ([**@calvinmetcalf**](https://github.com/calvinmetcalf))
|
|
319
|
+
|
|
320
|
+
### Changed
|
|
321
|
+
|
|
322
|
+
- Update browser configuration for Testling ([**@maxogden**](https://github.com/maxogden))
|
|
323
|
+
- Pass through open options to idbwrapper ([**@maxogden**](https://github.com/maxogden))
|
|
324
|
+
|
|
325
|
+
### Fixed
|
|
326
|
+
|
|
327
|
+
- Don't use `indexedDB.webkitGetDatabasesNames()` in tests ([**@maxogden**](https://github.com/maxogden))
|
|
328
|
+
|
|
329
|
+
## [1.1.2] - 2014-02-02
|
|
330
|
+
|
|
331
|
+
### Removed
|
|
332
|
+
|
|
333
|
+
- Remove global leaks ([**@mcollina**](https://github.com/mcollina))
|
|
334
|
+
|
|
335
|
+
## [1.1.1] - 2014-02-02
|
|
336
|
+
|
|
337
|
+
### Changed
|
|
338
|
+
|
|
339
|
+
- Modify a copy of the batch array, not the original ([**@nrw**](https://github.com/nrw))
|
|
340
|
+
|
|
341
|
+
### Fixed
|
|
342
|
+
|
|
343
|
+
- Fix broken `package.json` ([**@maxogden**](https://github.com/maxogden))
|
|
344
|
+
- Fix testling path ([**@maxogden**](https://github.com/maxogden))
|
|
345
|
+
|
|
346
|
+
## [1.1.0] - 2014-01-30
|
|
347
|
+
|
|
348
|
+
_In this time period `bops` shows up and gets removed. Also, `._isBuffer()` uses `Buffer.isBuffer()` in favor of `is-buffer` module._
|
|
349
|
+
|
|
350
|
+
### Added
|
|
351
|
+
|
|
352
|
+
- Add Testling ([**@maxogden**](https://github.com/maxogden))
|
|
353
|
+
- Add npm badge ([**@maxogden**](https://github.com/maxogden))
|
|
354
|
+
- Test ranges ([**@rvagg**](https://github.com/rvagg), [**@maxogden**](https://github.com/maxogden))
|
|
355
|
+
|
|
356
|
+
### Changed
|
|
357
|
+
|
|
358
|
+
- Update README ([**@maxogden**](https://github.com/maxogden))
|
|
359
|
+
- Update `abstract-leveldown` to `~0.11.0` ([**@rvagg**](https://github.com/rvagg), [**@maxogden**](https://github.com/maxogden))
|
|
360
|
+
- Update to work with `abstract-leveldown@0.11.2` ([**@shama**](https://github.com/shama), [**@maxogden**](https://github.com/maxogden))
|
|
361
|
+
- Update iterator to pass all range tests ([**@shama**](https://github.com/shama), [**@maxogden**](https://github.com/maxogden))
|
|
362
|
+
|
|
363
|
+
### Fixed
|
|
364
|
+
|
|
365
|
+
- Fix incorrect version of `abstract-leveldown` ([**@maxogden**](https://github.com/maxogden))
|
|
366
|
+
- Pass error to callback in `approximateSize()` ([**@mcollina**](https://github.com/mcollina))
|
|
367
|
+
|
|
368
|
+
### Removed
|
|
369
|
+
|
|
370
|
+
- Remove unnecessary factor in tests ([**@rvagg**](https://github.com/rvagg), [**@maxogden**](https://github.com/maxogden))
|
|
371
|
+
|
|
372
|
+
## [1.0.8] - 2013-08-12
|
|
373
|
+
|
|
374
|
+
### Changed
|
|
375
|
+
|
|
376
|
+
- Move `levelup` to devDependencies ([**@juliangruber**](https://github.com/juliangruber))
|
|
377
|
+
|
|
378
|
+
### Removed
|
|
379
|
+
|
|
380
|
+
- Remove fn#bind from iterator ([**@juliangruber**](https://github.com/juliangruber))
|
|
381
|
+
|
|
382
|
+
## [1.0.7] - 2013-07-02
|
|
383
|
+
|
|
384
|
+
### Changed
|
|
385
|
+
|
|
386
|
+
- Implement full batch support ([**@mcollina**](https://github.com/mcollina))
|
|
387
|
+
|
|
388
|
+
### Fixed
|
|
389
|
+
|
|
390
|
+
- Fix git url to `abstract-leveldown` ([**@maxogden**](https://github.com/maxogden))
|
|
391
|
+
|
|
392
|
+
## [1.0.6] - 2013-05-31
|
|
393
|
+
|
|
394
|
+
### Changed
|
|
395
|
+
|
|
396
|
+
- Update `idb-wrapper` to `1.2.0` ([**@maxogden**](https://github.com/maxogden))
|
|
397
|
+
- Switch `abstract-leveldown#master` ([**@maxogden**](https://github.com/maxogden))
|
|
398
|
+
- Disable batch and chainable batch tests ([**@maxogden**](https://github.com/maxogden))
|
|
399
|
+
|
|
400
|
+
## [1.0.5] - 2013-05-30
|
|
401
|
+
|
|
402
|
+
### Changed
|
|
403
|
+
|
|
404
|
+
- Use upstream `idb-wrapper` ([**@maxogden**](https://github.com/maxogden))
|
|
405
|
+
|
|
406
|
+
## [1.0.4] - 2013-05-30
|
|
407
|
+
|
|
408
|
+
### Added
|
|
409
|
+
|
|
410
|
+
- Test batch and chainable batch ([**@rvagg**](https://github.com/rvagg))
|
|
411
|
+
|
|
412
|
+
### Changed
|
|
413
|
+
|
|
414
|
+
- Update `abstract-leveldown` to `~0.7.1` ([**@rvagg**](https://github.com/rvagg))
|
|
415
|
+
- Update `levelup` to `~0.9.0` ([**@brycebaril**](https://github.com/brycebaril))
|
|
416
|
+
|
|
417
|
+
## [1.0.3] - 2013-05-14
|
|
418
|
+
|
|
419
|
+
### Changed
|
|
420
|
+
|
|
421
|
+
- Use `is-buffer` ([**@juliangruber**](https://github.com/juliangruber))
|
|
422
|
+
|
|
423
|
+
## [1.0.2] - 2013-05-04
|
|
424
|
+
|
|
425
|
+
### Fixed
|
|
426
|
+
|
|
427
|
+
- Don't convert `ArrayBuffer` and typed arrays to strings ([**@maxogden**](https://github.com/maxogden))
|
|
428
|
+
|
|
429
|
+
## [1.0.1] - 2013-05-03
|
|
430
|
+
|
|
431
|
+
### Added
|
|
432
|
+
|
|
433
|
+
- Add optional options argument to `.open()` ([**@rvagg**](https://github.com/rvagg))
|
|
434
|
+
- Add `test-levelup.js` ([**@maxogden**](https://github.com/maxogden))
|
|
435
|
+
|
|
436
|
+
### Changed
|
|
437
|
+
|
|
438
|
+
- Update README ([**@maxogden**](https://github.com/maxogden))
|
|
439
|
+
- Use `npm test` instead of `npm start` ([**@shama**](https://github.com/shama))
|
|
440
|
+
- Properly delete test dbs ([**@maxogden**](https://github.com/maxogden))
|
|
441
|
+
- Inherit from `abstract-leveldown` ([**@rvagg**](https://github.com/rvagg))
|
|
442
|
+
|
|
443
|
+
## [1.0.0] - 2013-05-03
|
|
444
|
+
|
|
445
|
+
:seedling: Initial release.
|
|
446
|
+
|
|
447
|
+
[6.1.0]: https://github.com/Level/level-js/releases/tag/v6.1.0
|
|
448
|
+
|
|
449
|
+
[6.0.0]: https://github.com/Level/level-js/releases/tag/v6.0.0
|
|
450
|
+
|
|
451
|
+
[5.0.2]: https://github.com/Level/level-js/releases/tag/v5.0.2
|
|
452
|
+
|
|
453
|
+
[5.0.1]: https://github.com/Level/level-js/releases/tag/v5.0.1
|
|
454
|
+
|
|
455
|
+
[5.0.0]: https://github.com/Level/level-js/releases/tag/v5.0.0
|
|
456
|
+
|
|
457
|
+
[4.0.1]: https://github.com/Level/level-js/releases/tag/v4.0.1
|
|
458
|
+
|
|
459
|
+
[4.0.0]: https://github.com/Level/level-js/releases/tag/v4.0.0
|
|
460
|
+
|
|
461
|
+
[3.0.0]: https://github.com/Level/level-js/releases/tag/v3.0.0
|
|
462
|
+
|
|
463
|
+
[3.0.0-rc1]: https://github.com/Level/level-js/releases/tag/v3.0.0-rc1
|
|
464
|
+
|
|
465
|
+
[2.2.4]: https://github.com/Level/level-js/releases/tag/v2.2.4
|
|
466
|
+
|
|
467
|
+
[2.2.3]: https://github.com/Level/level-js/releases/tag/v2.2.3
|
|
468
|
+
|
|
469
|
+
[2.2.2]: https://github.com/Level/level-js/releases/tag/v2.2.2
|
|
470
|
+
|
|
471
|
+
[2.2.1]: https://github.com/Level/level-js/releases/tag/v2.2.1
|
|
472
|
+
|
|
473
|
+
[2.2.0]: https://github.com/Level/level-js/releases/tag/v2.2.0
|
|
474
|
+
|
|
475
|
+
[2.1.6]: https://github.com/Level/level-js/releases/tag/v2.1.6
|
|
476
|
+
|
|
477
|
+
[2.1.5]: https://github.com/Level/level-js/releases/tag/v2.1.5
|
|
478
|
+
|
|
479
|
+
[2.1.4]: https://github.com/Level/level-js/releases/tag/v2.1.4
|
|
480
|
+
|
|
481
|
+
[2.1.3]: https://github.com/Level/level-js/releases/tag/v2.1.3
|
|
482
|
+
|
|
483
|
+
[2.1.2]: https://github.com/Level/level-js/releases/tag/v2.1.2
|
|
484
|
+
|
|
485
|
+
[2.1.1]: https://github.com/Level/level-js/releases/tag/v2.1.1
|
|
486
|
+
|
|
487
|
+
[2.0.0]: https://github.com/Level/level-js/releases/tag/v2.0.0
|
|
488
|
+
|
|
489
|
+
[1.2.0]: https://github.com/Level/level-js/releases/tag/v1.2.0
|
|
490
|
+
|
|
491
|
+
[1.1.2]: https://github.com/Level/level-js/releases/tag/v1.1.2
|
|
492
|
+
|
|
493
|
+
[1.1.1]: https://github.com/Level/level-js/releases/tag/v1.1.1
|
|
494
|
+
|
|
495
|
+
[1.1.0]: https://github.com/Level/level-js/releases/tag/v1.1.0
|
|
496
|
+
|
|
497
|
+
[1.0.8]: https://github.com/Level/level-js/releases/tag/v1.0.8
|
|
498
|
+
|
|
499
|
+
[1.0.7]: https://github.com/Level/level-js/releases/tag/v1.0.7
|
|
500
|
+
|
|
501
|
+
[1.0.6]: https://github.com/Level/level-js/releases/tag/v1.0.6
|
|
502
|
+
|
|
503
|
+
[1.0.5]: https://github.com/Level/level-js/releases/tag/v1.0.5
|
|
504
|
+
|
|
505
|
+
[1.0.4]: https://github.com/Level/level-js/releases/tag/v1.0.4
|
|
506
|
+
|
|
507
|
+
[1.0.3]: https://github.com/Level/level-js/releases/tag/v1.0.3
|
|
508
|
+
|
|
509
|
+
[1.0.2]: https://github.com/Level/level-js/releases/tag/v1.0.2
|
|
510
|
+
|
|
511
|
+
[1.0.1]: https://github.com/Level/level-js/releases/tag/v1.0.1
|
|
512
|
+
|
|
513
|
+
[1.0.0]: https://github.com/Level/level-js/releases/tag/v1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2012 Max Ogden and the contributors to level-js.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|