Skip to content

Version 6.1.0 (result count enhancements)

Latest
Compare
Choose a tag to compare
@mwpenny mwpenny released this 21 Feb 23:41
· 20 commits to master since this release

This release slightly changes how the minResults and maxResults search options work in order to support

  1. Searching with no limit, and
  2. Searching using only maxResults

To support these two use cases, the following changes were made:

  1. A negative value for minResults will mean "no limit" (return all results), and
  2. minResults will take on the value of maxResults if:
    1. minResults === undefined and maxResults > 0, or
    2. minResults is negative (prevents over-fetching now that no limit searching is supported)

Otherwise, the current behavior is unchanged. If minResults is unspecified then its default will still be 20 (as long as maxResults is not positive), and if minResults is non-negative then no meddling will occur.