Skip to content

Conversation

@snyk-bot
Copy link

Snyk has created this PR to upgrade lowdb from 0.15.5 to 0.17.2.

merge advice
✨ Snyk has automatically assigned this pull request, set who gets assigned.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 6 versions ahead of your current version.
  • The recommended version was released 3 years ago, on 2017-08-23.
Release notes
Package name: lowdb
  • 0.17.2 - 2017-08-23
    • Fix FileAsync adapter #209
  • 0.17.1 - 2017-08-20

    0.17.1

  • 0.17.0 - 2017-08-20

    Breaking changes

    low() function has been updated to be more explicit and fully storage agnostic. It now expects an adapter to be passed.

    Also, when using async file storage, low() will now return a Promise, making it truely asyncrhonous, rather than the database instance.

    tl;dr

    See Examples page for updated code samples.

    Migration guide

    // 0.16
    const db = low('db.json')
    

    // 0.17
    const low = require('lowdb')
    const FileSync = require('lowdb/adapters/FileSync')

    const adapter = new FileSync('db.json')
    const db = low(adapter)

    The rest of lowdb API is unchanged, database instance creation is the only part of your code that needs to be updated.

    Adapters

    Lowdb comes bundled with 4 adapters:

    • lowdb/adapters/FileSync
    • lowdb/adapters/FileAsync
    • lowdb/adapters/LocalStorage
    • lowdb/adapters/Memory

    Special thanks to @ yeskunall for the help!

  • 0.16.2 - 2017-04-09

    0.16.2

  • 0.16.1 - 2017-04-09

    0.16.1

  • 0.16.0 - 2017-03-09

    In this release, json-parse-helpfulerror is not included by default anymore due to issues with WebPack #153.

    That said, you can still configure lowdb to use it:

    const low = require('lowdb')
    const jph = require('json-parse-helpfulerror');
    

    const db = low('db.json', {
    format: {
    stringify: JSON.stringify,
    parse: jph.parse
    }
    })




  • 0.15.5 - 2017-02-15

    0.15.5




from lowdb GitHub release notes

Commit messages
Package name: lowdb

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

👩‍💻 Set who automatically gets assigned

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants