Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump node-cache from 0.3.2 to 5.1.2 #18

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 13, 2022

Bumps node-cache from 0.3.2 to 5.1.2.

Release notes

Sourced from node-cache's releases.

Add .take() and .flushStats()

  • Add .take(key) method to get and delete a key with a single operation. #159 #160
  • Add .flushStats() method to reset all cache stats back to 0. #158 #161

Fix deleteOnExpire: false

  • Fixed bug where expired values were deleted even though deleteOnExpire was set to false. Thanks to fielding-wilson for #154!

Fix null values

Drop lodash dependency and callbacks

  • Remove lodash dependency
  • DROP CALLBACK SUPPORT - Read the migration guide if you are currently using the callback based api! ⚠️
  • add .has(key) and method - Thanks to Regev Brody for PR #132!
  • add .mset([{key,val,ttl}]) method - Thanks to Sujesh Thekkepatt for PR #142!
  • add maxKeys setting to limit cache size - Thanks do @​daluf for PR #141!
  • Also, thank you to all other contributors that remain unnamed here! 🎉

MIGRATION GUIDE 🚧

We have dropped callback support in node-cache and you should migrate to our sync-style api!

If you cannot refactor right now, you can turn on legacy callback support by enabling the enableLegacyCallbacks option. Eg: const cache = new NodeCache({ enableLegacyCallbacks: true })

But we strongly recommend to refactor your code to use the sync-api because we will drop official callback support in Versions v6.x and onwards.

If your code currently looks like this:

cache.get("my-key", function(err, value) {
  if (err) {
     // ...
  }
// double equal checks for null and undefined
if (value != null) {
// hmm.... nothing here :(
}
// do something with value
});

it should be rewritten to:

const value = cache.get("my-key");
</tr></table>

... (truncated)

Commits
  • b64434a 5.1.2
  • 6d47a2a Merge pull request #198 from node-cache/fix/buffer-is-not-defined
  • 15b0109 fix typo
  • d636359 Merge pull request #196 from adamochayon/patch-1
  • 64da3e6 fix #197 "ReferenceError: Buffer is not defined" in environments where Buffer...
  • 3e2e8a2 typo
  • 595b37c Add type declaration for take
  • c6dce92 Merge pull request #195 from shhadi/master
  • 9a35969 Changing misleading error message
  • bc3893b Merge pull request #192 from node-cache/add-coverall-to-gh-actions-ci
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by erdii, a new releaser for node-cache since your current version.


Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [node-cache](https://github.com/node-cache/node-cache) from 0.3.2 to 5.1.2.
- [Release notes](https://github.com/node-cache/node-cache/releases)
- [Commits](node-cache/node-cache@0.3.2...v5.1.2)

---
updated-dependencies:
- dependency-name: node-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants