Repository navigation
Update memoize-one 6.0.0 → 7.0.0 (major) - #6494
Merged
Merged
Conversation
memoize-one 7 ships as an ES module only, so Jest can't require() it unless Babel transforms it.
fatadel
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main | Deploy preview
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ memoize-one (6.0.0 → 7.0.0) · Repo
Release Notes
7.0.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 45 commits:
moving upgrade notes into an expandupdating readmeMerge pull request #272 from alexreardon/v7readme: ES module only, the same words as the rest of the readme7.0.0readme: memoize-one@7+ is an ESM only packagetypes: link the TypeScript comment that says T & {} works by designtypes: infer TFunc from resultFn first, with EqualityFn<TFunc & {}>readme: the default export works tooreadme: the jest babel fix needs a babel configtests: more cache clearing and equality function tests, and type checking the packed packagetypes: EqualityFn has a default type argument, and TFunc is inferred from resultFn onlyreleasing locally with npm run release, instead of from CIadding main and types fallbacks for tools that ignore exportsreadme: removing the async-memoize-one noterestoring the default export, alongside the named exportsreadme: jest needs extra setup for an ES module only packagereplacing lodash.isequal with isEqual from es-toolkitpackage.json: the simple ESM only exports formreadme: moving "Upgrading from v6" near the bottomreadme: memoize-one performs as fast as other librariesreadme: memoize-one performs similarly to other librariesremoving memoize-one v6 from the performance tablestesting bigint argumentsreadme: typescript commonjs and deep import notes, and fixing the no arguments benchmarkrelease: publishing prereleases with the `next` dist-tagremoving the benchmark libraries from the root devDependenciesupdating the readme with the latest library comparison runupdating the readme for v7one CI workflow, a release workflow and grouped dependabot updatesadding package checks and a smoke testsplitting the benchmarks, and refreshing the library comparisonnamed exports, Object.is comparisons and one source filemoving to ESM only, built with tsc and TypeScript 7moving from eslint to oxlint, and running prettier on its ownmoving from jest to vitestmoving from yarn to npmMerge pull request #240 from bunasQ/patch-1Merge pull request #141 from KenyeeC/patch-1Update outdated LICENSE yearUpdate README.mdreordering package.jsonMerge pull request #136 from alexreardon/upgrading-rollup-pluginupgrading yarn lockminor readme cleanupDepfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase.All Depfu comment commands