Socket
Socket
Sign inDemoInstall

@supercharge/collections

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supercharge/collections - npm Package Versions

1245

2.0.0

Diff

Changelog

Source

2.0.0 - 2020-05-21

Added

  • TypeScript typings
  • collection pipelines are now awaitable: no need to call .all() to retrieve the result
    • before: await Collect([1, 2, 3]).map(...).filter().all()
    • now: await Collect([1, 2, 3]).map(...).filter()

Updated

  • bump dependencies
  • moved code base to TypeScript to automatically generate type definitions

Breaking Changes

  • all xSeries methods become the default and were removed
    • for example: mapSeries becomes map and the mapSeries method was removed
    • the methods running async functions in parallel were removed in favor of the sequence versions
    • I found myself defaulting to the xSeries methods because I typically don’t want to handle the side-effects of parallel processing on a large collections. That’s why the methods iterating over the items in sequence are the new default.

Note: there are no new xParallel methods to fill the gap for the missing methods processing async tasks in parallel. If you need the parallel methods, I’m happy to support you on a pull request.

marcuspoehls
published 1.13.0 •

Changelog

Source

1.13.0 - 2020-03-26

Updated

  • unique supports a string or callback function as a parameter to identify unique values
marcuspoehls
published 1.12.2 •

Changelog

Source

1.12.2 - 2020-03-12

Fixed

  • findSeries now stops when the first matching item is found
marcuspoehls
published 1.12.1 •

Changelog

Source

1.12.1 - 2020-03-12

Updated

  • has: uses findSeries instead of find to determine whether the condition matches
marcuspoehls
published 1.12.0 •

Changelog

Source

1.12.0 - 2020-02-11

Added

  • .pluck() method
  • .any() method as an alias for .some()
  • .anySeries() method as an alias for .someSeries()

Updated

  • bump deps
marcuspoehls
published 1.11.0 •

Changelog

Source

1.11.0 - 2020-01-30

Added

  • .groupBy() method

Updated

  • bump deps
marcuspoehls
published 1.10.0 •

Changelog

Source

1.10.0 - 2020-01-22

Added

  • .tap() method
  • .hasDuplicates() method

Fixed

  • an empty value creates an empty collection, example: Collect(null).all() returns an empty array []
marcuspoehls
published 1.9.1 •

Changelog

Source

1.9.1 - 2020-01-07

Added

  • reduce package size by defining published files in package.json

Updated

  • bump deps
  • refine example in readme

Removed

  • .travis.yml and moved to GitHub Actions for testing
marcuspoehls
published 1.9.0 •

Changelog

Source

1.9.0 - 2019-10-26

Added

  • .pop() method
marcuspoehls
published 1.8.0 •

Changelog

Source

1.8.0 - 2019-10-24

Added

  • .last() method

Updated

  • bump deps
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc