Skip to content

Conversation

@dependabot-preview
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Jun 1, 2020

Bumps mem from 4.3.0 to 6.1.0.

Release notes

Sourced from mem's releases.

v6.1.0

  • Automatically use WeakMap when possible (#56) e8bb86c

sindresorhus/memoize@v6.0.1...v6.1.0

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 (sindresorhus/p-memoize#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

Commits

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)
  • 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 Jun 1, 2020
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mem-6.1.0 branch from 6d34516 to 067dfe5 Compare August 5, 2020 06:19
Bumps [mem](https://github.com/sindresorhus/mem) from 4.3.0 to 6.1.0.
- [Release notes](https://github.com/sindresorhus/mem/releases)
- [Commits](sindresorhus/memoize@v4.3.0...v6.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/mem-6.1.0 branch from 067dfe5 to 79fda33 Compare August 15, 2020 07:55
@dependabot-preview
Copy link
Contributor Author

Superseded by #219.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mem-6.1.0 branch October 11, 2020 17:42
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