dataloader
2.2.3 · 3 Dec 2024MIT16.1M / weekRepositorynpmAtom feed
Upgrading dataloader from 1.4.0 to 2.0.0
1 release in betweenevery note read
Release by release
- new
Support for custom batch scheduling functions
- new
Added references to a ton more ports of DataLoader into other languages (keep 'em coming!)
- fixed
Fixed an issue where TypeScript/Flow would incorrectly report an error when providing an
Errorto.prime() - fixed
Fixed an issue where a cache could still consume memory, even when caching was disabled
- fixed
Fixed an issue where providing an
Errorto.prime()could incorrectly cause an unhandled promise rejection warning
- new
14 other lines we could not sort, mostly version bumps
- 2.0.0
.loadMany()now returns an array which may containErrorif one of the requested keys failed. - 2.0.0
The timing of calls to
batchLoadFnwhen{ batch: false }has changed to the end of the run-loop tick. - 2.0.0
Promises for cached values now wait to resolve until the rest of the batch resolves.
- 2.0.0
The names of private class variables have changed
- 2.0.0
MIT licensed (no longer BSD+Patents) and copyrights moved from Facebook to the GraphQL Foundation
- 2.0.0
The DataLoader instance is now available as
thisinbatchLoadFn - 2.0.0
Improved TypeScript/Flow types for custom
cacheKeyFnandcacheMap - 2.0.0
TypeScript types allow
batchLoadFnto return aPromiseLike, supporting use of bluebird - 2.0.0
TypeScript/Flow types allow
batchLoadFnto returnArrayLike, supporting returning read-only arrays - 2.0.0
Flow types now use strict mode, allowing safe import into other strict mode code