Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Dec 21, 2019

Bumps mem from 1.1.0 to 6.0.1.

Release notes

Sourced from mem's releases.

v6.0.1

  • Support overloaded functions (TypeScript types) (#48) 809697d009059bf177c0d556009eaee121dc2ef6

v6.0.0

Breaking

  • Simplify the default cacheKey (#43) b7a0766
    It now defaults to cacheKey: x => x instead of the much more complicated previous default. This means it will now only cache the first argument, and only if it's a primitive. Previously, it tried to cache all arguments using JSON.stringify(), but this was both error-prone and slow. This change makes the memoization logic very straightforward, explicit and fast by default. See the readme for how to handle multi-argument or non-primitive value situations.
  • Drop the cachePromiseRejection option (#43) b7a0766
    It was not a good fit for mem and we plan to add it to p-memoize instead (https://github-redirect.dependabot.com/sindresorhus/p-memoize/issues/11), which is like mem, but focused on promises. If you depend on this option, you should stay on mem v5 until sindresorhus/p-memoize#11 is resolved.
  • Throw when .clear() is called with a non-memoized function (#44) c73c23b

sindresorhus/memoize@v5.1.1...v6.0.0

v5.1.1

  • Always use an object for the cache item to match expectations and the TypeScript definitions (#42) 1f38c3e

sindresorhus/memoize@v5.1.0...v5.1.1

v5.1.0

Enhancements:

  • Minor performance optimization (#39) c098182

sindresorhus/memoize@v5.0.0...v5.1.0

v5.0.0

Breaking:

  • Require Node.js 8 e54b59b
  • Change the default value of the cachePromiseRejection option to true (#36) 70707ae
    We decided it's better to default to the least surprising/magic behavior.

Breaking for TypeScript users:

  • Only use a CommonJS export for the TypeScript definition
    You need to change import mem from 'mem'; to import mem = require('mem');

Enhancements:

  • Cache function reference when it's a single argument (#35) 10f13c0

sindresorhus/memoize@v4.3.0...v5.0.0

v4.3.0

  • Refactor TypeScript definition to use CJS compatible export (#32) 9a432b9
  • TypeScript - Fix the cache type (#29) 298a71e

sindresorhus/memoize@v4.2.0...v4.3.0

v4.2.0

  • Add TypeScript definition (#28) 6887496

sindresorhus/memoize@v4.1.0...v4.2.0

... (truncated)
Commits
Maintainer changes

This version was pushed to npm by bfred-it, a new releaser for mem 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 ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [mem](https://github.com/sindresorhus/mem) from 1.1.0 to 6.0.1.
- [Release notes](https://github.com/sindresorhus/mem/releases)
- [Commits](sindresorhus/memoize@v1.1.0...v6.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 21, 2019
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.

1 participant