Commit af3bcf47 authored by Aral Balkan's avatar Aral Balkan
Browse files

Update readme and changelog

parent adfa6d85
......@@ -14,10 +14,12 @@ The format is based on [Keep a Changelog](,
### Changed
- For regular/smaller data sets (under 500MB), JSDB now reads the file in synchronously and evals it, instead of using `require()`, as before. (I chose not to use a dynamic`import()` as it is asynchronous.)
- For larger data sets, we’re now using an inlined version of `n-readlines`.
- The module now has zero runtime dependencies.
- No longer using private class fields as they cause issues with bundlers like esbuild. TODO []
### Added
- (Dev) Uses tape-es for tests.
- 32KB distribution version (run `npm run build` and find it in `dist/index.js`).
## [1.1.5] - 2020-10-31
......@@ -770,17 +770,33 @@ For example, here’s just one sample from a development laptop using the simple
Note: For tables > 500GB, compaction is turned off and a line-by-line streaming load strategy is implemented. If you foresee your tables being this large, you (a) are probably doing something nasty (and won’t mind me pointing it out if you’re not) and (b) should turn off compaction from the start for best performance. Keeping compaction off from the start will decrease initial table load times. Again, don’t use this to invade people’s privacy or profile them.
## Developing
## Development
Please open an issue before starting to work on pull requests.
### Testing
1. Clone this repository.
2. `npm i`
3. `npm test`
For code coverage, run `npm run coverage`.
(Note: `lib/LineByLine.js` is excluded from coverage as it is the inlined version of [n-readlines]( The tests for it can be found as part of that library.)
__Note:__ `lib/LineByLine.js` is excluded from coverage as it is the inlined version of [n-readlines]( The tests for it can be found as part of that library.
Also, as JSDB has no runtime dependencies, you only have to run `npm i` if you want to run the test or make a distribution build.
### Building
You can now build a 32KB distribution version of the module:
npm run build
Find the distribution build in `dist/index.js`.
To run the tests on the distribution build, use `npm run test-dist`.
## Ideas for post 2.0.0.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment