tex0l
60929bb9fc
Fix typo lib/storage.js
...
Co-authored-by: arantes555 <arantes555@gmail.com>
11 months ago
Timothée Rebours
c9640889a0
remove 'path' imports
11 months ago
Timothée Rebours
ecd8d11e10
fixed JSDoc, updated @seald-io/binary-search-tree & devDeps, fixed linting, regenerated docs
2 years ago
Timothée Rebours
d3e201cac4
cleaner test for modes, avoid testing permissions on Windows, document that it will not work on Windows, add typings tests
3 years ago
Timothée Rebours
ba0ee21c03
add a mode option
3 years ago
Timothée Rebours
dbcc3647d1
repair race condition in tests + improve docs
3 years ago
Timothée Rebours
32cff9b921
huge cleanup
3 years ago
Timothée Rebours
8d628bfa6f
cleanup JSDoc
3 years ago
Timothée Rebours
0e9e5c7f4d
massive update of the JSDoc, rewrite of the model & storage modules to clarify
3 years ago
Timothée Rebours
6d43867c20
document storage and customUtils, and rewrite byline with ES6
3 years ago
Timothée Rebours
a2528ee45e
jsdoc
3 years ago
Timothée Rebours
97908a4195
add TODO
3 years ago
Timothée Rebours
5a9899e9f4
use fs.promises instead of fs/promises
3 years ago
Timothée Rebours
4d900da6fe
WIP: remove async from persistence module
3 years ago
Timothée Rebours
64bdd37c4f
WIP: remove async from storage module
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
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
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
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
e8cba5273a
cleanup code
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
6d1f9cf20f
Back to my style in flush
9 years ago
James M. Greene
aefe40d0a5
Housekeeping!
9 years ago
Louis Chatriot
94cac41acb
Fix for windows
9 years ago
Louis Chatriot
fea5c25807
Always close file even if fsync fails
9 years ago
Louis Chatriot
b69c8a2c2b
Unnecessary fs call
9 years ago
Louis Chatriot
6884f83df8
Redis AOF-style fsync
9 years ago
Louis Chatriot
a12ec8b89e
Load tests
9 years ago
Louis Chatriot
cf4f1f58d4
Hopefully-temp fix for windos
9 years ago
Louis Chatriot
c927524a52
Flush data after both writes and fix a test
9 years ago
Louis Chatriot
94f7caf0b8
Chmod
9 years ago
Louis Chatriot
caeb189326
Use localforage instead of localStorage
9 years ago
Louis Chatriot
d1e6d14b53
Moved all crash safe operations to storage
9 years ago
Louis Chatriot
d5958cce91
mkdirp put in storage module
10 years ago
Louis Chatriot
b0e3ceb1a6
Forked storage.js
10 years ago