mirror of https://github.com/seald/nedb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4.9 KiB
4.9 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[3.0.0] - Unreleased
Added
- Added an async interface for all functions
- The JSDoc is now much more exhaustive
Changed
- All the functions are now async at the core, and a fully retro-compatible callback-ified version is exposed.
- The executor is now much simpler and Promise-based. A retro-compatible shim is still exposed, with the exception that it no longer handles
arguments
as the arguments Array. If you use the executor directly, you'll need to convert it to a proper Array beforehand. - As a result, the
async
dependency has been removed completely. To avoid rewriting the tests, shims of some functions ofasync
are defined in an utilities file used exclusively in the tests. - The
Datastore#update
's callback has its signature slightly changed. Theupsert
flag is always defined either attrue
orfalse
but notnull
norundefined
, andaffectedDocuments
isnull
when none is given rather thanundefined
(except when there is an error of course).
Deprecated
- Formally deprecate giving a string as argument to the
Datastore
constructor - Formally deprecate using
Persistence.getNWAppFilename()
andoptions.nodeWebkitAppName
[2.2.1] - 2022-01-18
Changed
- #20 storage.js: check fsync capability from return code rather than using process.platform heuristics (Thanks @bitmeal).
[2.2.0] - 2021-10-29
Added
- Include a
"react-native"
version (heavily inspired from react-native-local-mongdb).
[2.1.0] - 2021-10-21
Thanks to @eliot-akira for the amazing work on file streaming.
Changed
- implement file streaming of the database like a PR on the original repo did;
- internalize
byline
package because it is unmaintained. - TypeScript typings inside the package.
[2.0.4] - 2021-07-12
Fixed
- switch back to an AVLTree instead of a BinarySearchTree like the original nedb to fix #1.
- updated vulnerable dev dependency
ws
[2.0.3] - 2021-06-07
Fixed
- no longer use
util
module for type verification as it is needed in the browser, which would need a polyfill.
[2.0.2] - 2021-05-26
Fixed
- the
browser
field of thepackage.json
no longer points to the bundled minified version for the browser, but switches thestorage.js
andcustomUtils.js
to their browser version, just like the original repository used to do.
[2.0.1] - 2021-05-19
Changed
- bump
@seald-io/binary-search-tree
to 1.0.2, which does not depend onunderscore
; - replace use of
underscore
by pure JS.
[2.0.0] - 2021-05-18
This version should be a drop-in replacement for nedb@1.8.0
provided you use
modern browsers / versions of Node.js since ES6 features are now used (such
as class
and const
/ let
).
Changed
- Update
homepage
&repository
fields in thepackage.json
- New maintainer seald and new package name @seald-io/nedb;
- Added
lockfileVersion: 2
package-lock.json
; - Modernized some of the code with ES6 features (
class
,const
&let
); - Uses
standard
to lint the code (which removes all unnecessary semicolons); - Updated dependencies, except
async
which stays at0.2.10
for the moment; - Stop including the browser version in the repository, and properly build it
with
webpack
; - Uses
karma
to run the browser tests, and use npm to fetch versioned dependencies rather than having hardcoded copies of the dependencies in the repository; - Internalized
exec-time
dependency for the benchmarks, because it was unmaintained; - Uses
@seald-io/binary-search-tree
rather than unmaintainedbinary-search-tree
;
Removed
- Compatibility with old browsers and old version of Node.js that don't support ES6 features.
- From now on, this package won't be published with
bower
as it became essentially useless. - Entries in the
browser
field of package.json don't include individual files, only the bundled minified version, those files are still published with the package.
Security
- This version no longer
uses a vulnerable version of
underscore
.
[1.8.0] - 2016-02-15
See original repo