Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.0.0
->7.0.1
Release Notes
typicode/lowdb (lowdb)
v7.0.1
Compare Source
v7.0.0
Compare Source
🚀 Simplified syntax with
db.update
, new adapter for more file format, consistent presets, automatic write error retry, and a TS error fix!What's New
db.update
for easier updates and writes.DataFile
adapters for supporting various formats likeYAML
,JSON5
, ... and adding features like encryption with minimal code.Breaking Changes
JSONPreset
toJSONFilePreset
JSONSyncPreset
toJSONFileSyncPreset
.Code Examples
If you were using the
JSONPreset
, please rename itEnjoy the simplified syntax with
db.update
Easily support other formats:
Sponsors
Special thanks to lowdb's current sponsor: Mockend.
Your support is essential, you can sponsor this project on GitHub Sponsors ❤️
v6.1.1
Compare Source
JSONPreset
andJSONSyncPreset
v6.1.0
Compare Source
New presets
Before
Now
This will also use the
Memory
adapter automatically whenNODE_ENV=test
making tests faster.TypeScript
Lowdb now supports the broader
fs.PathLike
type which lets you useURL
type in addition tostring
. This is useful for ESM.v6.0.1
Compare Source
What's Changed
New Contributors
Full Changelog: typicode/lowdb@v6.0.0...v6.0.1
v6.0.0
Compare Source
What's Changed
defaultData
parameter forLow
andLowSync
constructors to improve TypeScript experienceHow to upgrade:
If you like lowdb, please sponsor my work. If you cannot, a star or tweet is always appreciated.
Thank you!
v5.1.0
Compare Source
What's Changed
New Contributors
Full Changelog: typicode/lowdb@v5.0.4...v5.1.0
v5.0.5
Compare Source
v5.0.3
Compare Source
v5.0.2
Compare Source
v5.0.1
Compare Source
v5.0.0
Compare Source
Better support for front-end tools like Vite, CodeSandbox, ...
To achieve this, Node and Browser (localStorage) adapters are now split in two.
Besides that, there are no other breaking changes.
Node
lowdb/node
exportsJSONFile
,JSONFileSync
,TextFile
andTextFileSync
.Browser
lowdb/browser
exportsLocalStorage
.v4.0.1
Compare Source
v4.0.0
Compare Source
v3.0.0
Compare Source
#
instead of TypeScriptprivate
keyword for adaptersMany thanks to Mockend and everyone on GitHub Sponsors for supporting this project ❤️ 🦉
v2.1.0
Compare Source
TextFile
andTextFileSync
adapters to simplify writing to different formats (YAML, XML, ...) and make encryption easier.v2.0.3
Compare Source
v2.0.2
Compare Source
v2.0.1
Compare Source
v2.0.0
Compare Source
db.data
To help with OSS funding, lowdb v2 is released under Parity license for a limited time. It'll be released under MIT license once the goal of 100 sponsors is reached (currently at 55) or in five months. See README for complete explanation.
You can sponsor me on GitHub Sponsors.
Thank you!
Migrate
Lowdb v1
Lowdb v2
If you're using TypeScript, data can now be typed:
To continue using lodash with lowdb:
Breaking changes
The following methods and properties have been removed:
db.getState
(usedb.data
instead)db.setState
(usedb.data = ...
instead)db._
Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.