Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Bump node-cache from 4.2.0 to 5.1.2 - #139

Open
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/master/node-cache-5.1.2
Open

Bump node-cache from 4.2.0 to 5.1.2#139
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/master/node-cache-5.1.2

Conversation

@dependabot-preview

@dependabot-preview dependabot-preview Bot commented Jul 24, 2020

Copy link
Copy Markdown
Contributor

Bumps node-cache from 4.2.0 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

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

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)
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the .dependabot/config.yml file in this repo:

  • Update frequency
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview Bot added the dependencies Pull requests that update a dependency file label Jul 24, 2020
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview
dependabot-preview Bot force-pushed the dependabot/npm_and_yarn/master/node-cache-5.1.2 branch from 9819d87 to b7d6db6 Compare April 16, 2021 14:58
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants