@seald-io/nedb
Advanced tools
Comparing version 2.1.0-0 to 2.1.0-1
@@ -9,5 +9,10 @@ # Changelog | ||
## [2.1.0-0] - 2021-10-05 | ||
Thank [@eliot-akira](https://github.com/eliot-akira) for the amazing on this. | ||
## [2.1.0-1] - 2021-10-07 | ||
### Changed | ||
- fixed package.json browser field for byline.js | ||
- last minute improvements on [PR](https://github.com/seald/nedb/pull/5) | ||
## [2.1.0-0] - 2021-10-051 | ||
Thank [@eliot-akira](https://github.com/eliot-akira) for the amazing work on this. | ||
### Changed | ||
- [implement file streaming of the database](https://github.com/seald/nedb/pull/5) like [a PR on the original repo](https://github.com/louischatriot/nedb/pull/463) did; | ||
@@ -14,0 +19,0 @@ - internalize [`byline`](https://github.com/jahewson/node-byline) package because it is unmaintained. |
@@ -159,3 +159,2 @@ /** | ||
const dataById = {} | ||
const tdata = [] | ||
const indexes = {} | ||
@@ -185,3 +184,3 @@ | ||
tdata.push(...Object.values(dataById)) | ||
const tdata = Object.values(dataById) | ||
@@ -197,3 +196,2 @@ return { data: tdata, indexes: indexes } | ||
const dataById = {} | ||
const tdata = [] | ||
const indexes = {} | ||
@@ -230,7 +228,5 @@ | ||
Object.keys(dataById).forEach(function (k) { | ||
tdata.push(dataById[k]) | ||
}) | ||
const data = Object.values(dataById) | ||
cb(null, { data: tdata, indexes: indexes }) | ||
cb(null, { data, indexes: indexes }) | ||
}) | ||
@@ -237,0 +233,0 @@ |
{ | ||
"name": "@seald-io/nedb", | ||
"version": "2.1.0-0", | ||
"version": "2.1.0-1", | ||
"files": [ | ||
@@ -81,3 +81,4 @@ "lib/**/*.js", | ||
"./lib/customUtils.js": "./browser-version/lib/customUtils.js", | ||
"./lib/storage.js": "./browser-version/lib/storage.js" | ||
"./lib/storage.js": "./browser-version/lib/storage.js", | ||
"./lib/byline.js": "./browser-version/lib/byline.js" | ||
}, | ||
@@ -84,0 +85,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
508671
9853