Skip to content

Latest commit

 

History

History
323 lines (158 loc) · 17.1 KB

File metadata and controls

323 lines (158 loc) · 17.1 KB

2.6.0 (2026-03-10)

Features

  • add serialization support for Set, Map, Date, RegExp, and BigInt via ISerializer contract (#1136) (ac65a44)

2.5.0 (2026-02-16)

Bug Fixes

  • config: remove type of cypherKey check (aac47ad)
  • encryption: have different suffix for encrypted file to avoid possible conflict with existing setup (6606fea)
  • make setEncryption idempotent and handle custom extensions (a97b2a3)
  • test: ciphered file test on too small symmetric key, and ecyprtion data result compare to original data (a34f2e6)
  • test: error message to check for cipherkey to small (b28799b)
  • test: missing test case on string key length too small (3c02a4d)
  • test: typo + unused var (94a48b3)

Features

  • adapters: better error handling (08d83b9)
  • adapters: remove unecessary key const (f32991a)
  • add .enc.json extension for encrypted databases (5f88570)
  • config: better check of encryption key length (1d4926e)
  • config: clearer cipher key length check (e95b653)
  • encryption: add ciphered file adapter and encryption method for config (abf87c0)
  • encryption: Add encryption to the database (34887e8), closes #1113
  • encryption: add support of symmetric key (16f4992)
  • test: add more coverage on missing decryption data (ca85c6d)
  • test: better coverage on errors (a3c6fc8)
  • test: remove error message expected (d401ee8)

2.4.2 (2025-11-07)

Bug Fixes

  • restore class exports for DataError, DatabaseError, and adapters (#1071) (210a519), closes #1069

2.4.1 (2025-10-30)

Bug Fixes

  • remove type-only export for Config classes (#1064) (7f3325f)

2.4.0 (2025-10-17)

Bug Fixes

  • lock: memory allocation (c24199a)

Features

  • locking: rewrite the locking mechanism to remove dependency (0beb0ff)

2.3.2 (2025-10-16)

Bug Fixes

  • tests: fix issue with testing framework (94e3cfe)
  • utf8: add support for UTF-8 in arrays (611f6b4), closes #550

2.3.1 (2025-01-23)

Bug Fixes

2.3.0 (2023-10-16)

Bug Fixes

Features

  • adjust to support others properties (58911b5)
  • change method name (889d55e)
  • new toPath method (7d224c3)
  • path: add method to transform a usual "route" into a path for the db (c389c7c)
  • test wrong propertyName (6a95687)

2.2.0 (2023-04-09)

Bug Fixes

  • Array: Fix issue with array that have numerical property key (db7b5cb), closes #571

Features

  • getObjectDefault: Add method getObjectDefault to get an object or a default value when the path is leading to non existing data. (d47786b), closes #582

2.1.5 (2023-03-14)

Performance Improvements

  • Interoperability: Export underlying adapter type to let developers customize the storage logic (cfa874e), closes #568

2.1.4 (2023-01-24)

Performance Improvements

  • FileAdapter: Remove need for atomically. With RWLock we have all we need. (4b52670)

2.1.3 (2022-09-21)

Performance Improvements

  • Locking: Use proper read write lock instead of one lock for all operation (f3f422a), closes #490

2.1.2 (2022-09-09)

Bug Fixes

  • Concurrency: Fix issue with concurrent push from different sources (daae2bb), closes #484

Performance Improvements

  • Concurrency: Be sure that only one read or one write can be done at the same time (1cf0038)
  • Errors: Export errors for easier error management in other projects (60c90f8), closes #479

2.1.1 (2022-08-26)

Performance Improvements

  • Config: Easier way to import the configuration of JsonDB (e3502c2)

2.1.0 (2022-08-08)

Bug Fixes

  • Config: put proper default for ConfigWithAdapter (8d38302)

Features

  • Date: Add support for serializing and deserializing date type (d7a904e), closes #362

2.0.0 (2022-08-01)

Bug Fixes

  • Array: Fix array not properly async (26355b0)
  • HumanReadable: Fix missing humanreadable (13e51d9)
  • JsonAdapter: Don't override the data property (817c581)

Features

  • Adapter: Add concept of adapter to read and write data (fcea4bb)
  • Adapter: Let the user decide what adapter to use if they want to tweak the inner working (c8f264b), closes #448
  • Async: All the method are now async/await (ab63e82), closes #171
  • Async: Make the whole library async (764cdf4), closes #444
  • AtomicFileAdapter: Add support for fsync (4a51239)
  • Configuration: Force giving a config object to the constructor (002a72a)

BREAKING CHANGES

  • Async: Every method of the library is now async and returns a promise.
  • Configuration: We now need to receive the JsonDBConfig object in the constructor

1.6.0 (2022-06-30)

Features

1.5.0 (2022-03-11)

Features

  • FSYNC: Optional fsync when saving the database (d1c67fd), closes #372

1.4.1 (2021-09-22)

Bug Fixes

  • Docs: Be sure the doc contains Config (d626568)

1.4.0 (2021-09-13)

Features

  • GetIndexValue: Get index of a value in an array (d56de61), closes #191

1.3.0 (2021-03-07)

Features

  • typing: Add basic typing to the lib for TS (5309e9e)

1.2.1 (2021-03-07)

Bug Fixes

  • getIndex: Improve documentation (9951c6d)

1.2.0 (2021-03-07)

Bug Fixes

  • Convention: Fixed quotes (dd4494c)
  • README: Update documentation (b0f8ad4)

Features

  • filename: Support non json file extensions (e219124)
  • getIndex: Support Numerical id (6a8ee73)

1.1.0 (2020-04-23)

Features

1.0.3 (2019-12-11)

Bug Fixes

  • Array: Support dot and number in name (d4ce40a), closes #95

1.0.2 (2019-10-15)

Bug Fixes

  • Array: Add support for dash in array name (b271507), closes #98

1.0.1 (2019-07-22)

Bug Fixes

1.0.0 (2019-06-24)

Features

  • Packaging: Use es6 module packaging (f5cd8fd)

BREAKING CHANGES

  • Packaging: The default export has been removed. You need to do a deconstruction import to load the library now.

import JsonDB from 'node-json-db' becomes import {JsonDB} from 'node-json-db'

0.11.0 (2019-03-15)

Bug Fixes

  • Separator: Fix still using the slash as separator. (1781e5c)

Features

  • Config: Add Config file to setup the Database (a740b91)

0.10.0 (2019-02-20)

Features

  • Filter: Add filtering feature (fa81531)

0.9.2 (2018-11-18)

Bug Fixes

0.9.1 (2018-10-10)

Bug Fixes

  • ArrayInfo: Returns type of isValid (dae4e81)

0.9.0 (2018-09-04)

Features