Packages

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

Other targets from 1.4.0Latest2.2.3
The note of 2.0.0 lists no breaking change or deprecation, which is rare for a major.
?
changes to make
0
advisories fixed
2
new
3
fixes

Release by release

  1. 2.0.0

    18 Nov 20192 new · 3 fixes
    • 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 Error to .prime()

    • fixed

      Fixed an issue where a cache could still consume memory, even when caching was disabled

    • fixed

      Fixed an issue where providing an Error to .prime() could incorrectly cause an unhandled promise rejection warning

14 other lines we could not sort, mostly version bumps
  • .loadMany() now returns an array which may contain Error if one of the requested keys failed.

    2.0.0
  • The timing of calls to batchLoadFn when { 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 this in batchLoadFn

    2.0.0
  • Improved TypeScript/Flow types for custom cacheKeyFn and cacheMap

    2.0.0
  • TypeScript types allow batchLoadFn to return a PromiseLike, supporting use of bluebird

    2.0.0
  • TypeScript/Flow types allow batchLoadFn to return ArrayLike, supporting returning read-only arrays

    2.0.0
  • Flow types now use strict mode, allowing safe import into other strict mode code

    2.0.0