Skip to content

fix(deps): update dependency lowdb to v7#92

Open
renovate[bot] wants to merge 1 commit intov2from
renovate/lowdb-7.x
Open

fix(deps): update dependency lowdb to v7#92
renovate[bot] wants to merge 1 commit intov2from
renovate/lowdb-7.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Dec 29, 2023

This PR contains the following updates:

Package Change Age Confidence
lowdb ^6.1.1^7.0.1 age confidence

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

  • Simplified Syntax: Introducing db.update for easier updates and writes.
  • Flexible Adapters: Added DataFile adapters for supporting various formats like YAML , JSON5, ... and adding features like encryption with minimal code.
  • Automatic Retry: Resolves write errors, especially for Windows users.

Breaking Changes

  • Node 16 Dropped: discontinued support for Node 16.
  • Consistent Naming: Renamed presets for consistency:
    • JSONPreset to JSONFilePreset
    • JSONSyncPreset to JSONFileSyncPreset.

Code Examples

If you were using the JSONPreset, please rename it

- import { JSONPreset } from 'lowdb/node'
+ import { JSONFilePreset } from 'lowdb/node'

Enjoy the simplified syntax with db.update

- db.data.posts.push(newPost)
- await db.write()
+ await db.update(({ posts }) => posts.push(newPost))

Easily support other formats:

const yamlAdapter = new DataFile('db.yaml', {
  parse: YAML.parse,
  stringify: YAML.stringify
})
const db = new Low(yamlAdapter, { posts: [] })

Sponsors

Special thanks to lowdb's current sponsor: Mockend.

Your support is essential, you can sponsor this project on GitHub Sponsors ❤️


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the major label Dec 29, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (v2@3973e66). Click here to learn what that means.

❗ Current head f88a416 differs from pull request most recent head 2391e5d. Consider uploading reports for the commit 2391e5d to get more accurate results

Additional details and impacted files
@@          Coverage Diff          @@
##             v2      #92   +/-   ##
=====================================
  Coverage      ?   73.80%           
=====================================
  Files         ?       12           
  Lines         ?      271           
  Branches      ?       24           
=====================================
  Hits          ?      200           
  Misses        ?       47           
  Partials      ?       24           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/lowdb-7.x branch from 2dc5d22 to f88a416 Compare December 30, 2023 00:30
@renovate renovate bot force-pushed the renovate/lowdb-7.x branch from f88a416 to 2391e5d Compare February 1, 2024 12:43
@renovate renovate bot changed the base branch from main to v2 February 1, 2024 12:43
@renovate renovate bot changed the title fix(deps): update dependency lowdb to v7 fix(deps): update dependency lowdb to v7 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/lowdb-7.x branch December 8, 2024 18:58
@renovate renovate bot changed the title fix(deps): update dependency lowdb to v7 - autoclosed fix(deps): update dependency lowdb to v7 Dec 9, 2024
@renovate renovate bot reopened this Dec 9, 2024
@renovate renovate bot force-pushed the renovate/lowdb-7.x branch from fd6c978 to 2391e5d Compare December 9, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants