Skip to content

v1.4.0

Compare
Choose a tag to compare
@leebyron leebyron released this 31 Jan 01:30
· 114 commits to main since this release

New:

  • Direct support for using Dataloader in a browser (#134)

    Note: Dataloader in the browser cannot rely on the same post-promise job queuing behavior that allows for best performance in Node environments. A fallback behavior is used in a browser.

  • The integrity of custom provided Cache Maps are now checked during construction. (#86)

    This leads to better error messages when in use with custom caches that do not provide the full required interface. It may now produce eager errors where latent bugs were allowed in prior versions.

Fixed:

  • Flow type no longer complains when using require("dataloader") (#135)
  • Flow types from public API are now directly exported (cc0c62b)
  • Fixed an issue where Flow may complain about the provided batch function's return type. (#100)

    Due to more recent versions of Flow treating Array as invariant, DataLoader uses $ReadOnlyArray which is covariant.