Timothée Rebours
f9e4c525e4
WIP instead of having one function that can handle both async and callback signatures, let's implement a new Async suite of functions, and use callbackify to shim the old interface
3 years ago
Timothée Rebours
5a4859c3ba
WIP: Successfully replace a waterfall with native async/await
3 years ago
Arne Wendt
fde8d3f3c8
storage.js: check fsync capability from return code rather than using `process.platform` heuristics
...
- silently accept (in)capability to fsync directories based on actual storage backend/driver behavior and capabilities; evaluate error codes rather than `process.platform` heuristics
- make byline test run with windows line endings to validate storage behavior on windows
- add shebang in EMFILE exhaustion test
3 years ago
mehdi
d9c4619a87
jsdoc detail
3 years ago
mehdi
7ed4d994da
fix nodeWebkitAppName type
3 years ago
mehdi
fcd1546220
add typings
3 years ago
mehdi
2230f6c1e4
jsdoc details + timeout
3 years ago
mehdi
8b984f1274
extract writeFileLines into its own function
3 years ago
mehdi
148d7c8215
fix error callbacks
3 years ago
mehdi
8c4f56a04a
streaming write with `Readable.from`
3 years ago
eliot-akira
7404ee1bc2
Stream lines using setImmediate to ensure it doesn't block event loop
3 years ago
eliot-akira
437a841e72
Lint
3 years ago
eliot-akira
af1d64f6c2
Write new line separately, instead of adding to line string
3 years ago
eliot-akira
fc1d0e0aa3
Write file line by line when persisting cached database
3 years ago
eliot-akira
a610cf8cff
treatRawData and treatRawStream: Get values more efficiently with Object.values
3 years ago
eliot-akira
a826a9c3e0
Align behavior of treatRawData and treatRawStream in handling last blank line; On error, result is null
3 years ago
eliot-akira
6884f235dd
Lint byline: Use strict equal; const instead of var; arrow function for this; Buffer.from instead of new Buffer
3 years ago
eliot-akira
ec5f3ffb13
Include fork of byline library
3 years ago
eliot-akira
631d672af8
Return treated data even after corrupt threshold
3 years ago
eliot-akira
5b37cff1e9
Use template literals for string interpolation
3 years ago
eliot-akira
3729d4c86e
Use arrow functions to preserve this
3 years ago
eliot-akira
24dd632042
On error, result is null; on result, error is null
3 years ago
eliot-akira
842f3e9f2b
Lint: Formatting
3 years ago
eliot-akira
2a3afcb7d8
Do not stream on browser side, since localforage returns entire database file content; Passes all browser tests
3 years ago
eliot-akira
a67622dcf7
Stream files line by line when parsing to avoid memory limits
...
Based on https://github.com/louischatriot/nedb/pull/463
3 years ago
Timothée Rebours
f68464d5c4
switch back to an AVLTree instead of a BinarySearchTree like the original nedb & updated vulnerable dev dependency
3 years ago
Timothée Rebours
de162b0b16
stop using util
4 years ago
Timothée Rebours
e8cba5273a
cleanup code
4 years ago
Timothée Rebours
5c6561307d
remove underscore
4 years ago
Timothée Rebours
a4cd69f5c6
re-make the build process with webpack, swicth to Karma for the browser tests, bumps all dependencies except , remove bower.json, remove browser build from repo (will be published on npm though)
4 years ago
Timothée Rebours
185ae680b8
standard everything except browser-version
4 years ago
Louis Chatriot
cadf4ef434
Updated browser tests
9 years ago
Louis Chatriot
0eeca73bb0
Can pick type project on embedded documents
9 years ago
Louis Chatriot
e3f0078499
Do not create recursively nested objects for modifier
9 years ago
Louis Chatriot
9e07cedd18
Fixed edge case behavior where falsy fields where followed by dot notation
9 years ago
Louis Chatriot
4adf9c8491
Clean update callback signature and tests
9 years ago
Louis Chatriot
65cc00b6d4
createdAt kept during any kind of update
9 years ago
Louis Chatriot
41827a51e1
Last necessary test
9 years ago
Louis Chatriot
be83e8d4ee
Better formatting
9 years ago
Félicien FRANCOIS
cada7ff179
When last argument is falsy, Override by default callback instead of appending it
9 years ago
Louis Chatriot
58edd6e407
Sticking to style
9 years ago
Evgenia
44316c26fc
db.update $min $max operators
9 years ago
Dimitris Halatsis
310e881906
styling correction
9 years ago
Dimitris Halatsis
5db8ca7480
Added tests for $elemMatch
9 years ago
Dimitris Halatsis
dc4c979d34
added $elemMatch query operator support
9 years ago
Louis Chatriot
1e65f366f6
Can use with
9 years ago
Brian Hammond
9289c79f1a
Add support for the array update operator.
...
See https://docs.mongodb.org/manual/reference/operator/update/slice/ for details.
9 years ago
Louis Chatriot
7c25401f16
TTL indexes tested
9 years ago
Louis Chatriot
645d87504d
getCandidates is now async
9 years ago
Louis Chatriot
65024439c6
Typo
9 years ago