Skip to content

Bump node-cache from 4.2.1 to 5.1.2 - #37

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

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

Conversation

@dependabot-preview

Copy link
Copy Markdown
Contributor

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


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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @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 your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

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

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview Bot added the dependencies Pull requests that update a dependency file label Jul 2, 2020
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