Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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

2345

5.0.1

Diff

Changelog

Source

5.0.1 - 2022-10-29

Fixed

  • refined typings for methods returning promise- and non-promise values
marcuspoehls
published 5.0.0 •

Changelog

Source

5.0.0 - 2022-10-29

Updated

  • bump dependencies

Breaking Changes

  • require Node.js v16, drop support for Node.js v12 and v14
marcuspoehls
published 4.3.1 •

marcuspoehls
published 4.3.0 •

Changelog

Source

4.3.0 - 2022-04-02

Updated

  • refine type in forEach allowing any return value from the callback
marcuspoehls
published 4.2.0 •

Changelog

Source

4.2.0 - 2022-02-10

Added

  • refine groupBy typings and retrieve available keys

Updated

  • bump dependencies
marcuspoehls
published 4.1.0 •

Changelog

Source

4.1.0 - 2022-01-09

Added

  • add mapIf method: runs the map method only if the given condition is true. Otherwise returns the items unchanged
marcuspoehls
published 4.0.1 •

Changelog

Source

4.0.1 - 2022-01-08

Updated

  • refined typings
marcuspoehls
published 4.0.0 •

Changelog

Source

4.0.0 - 2022-01-08

Updated

  • bump dependencies
  • move to UVU and c8 for testing (we previously used @hapi/lab and @hapi/code)

Breaking Changes

  • use named exports

    // now
    const { Collect } = require('@supercharge/collections')
    
    // before
    const Collect = require('@supercharge/collections')
    
  • remove synchronous collection: everything is async now and must be awaited

    // now
    const { Collect } = require('@supercharge/collections')
    const numsGreater5 = await Collect([5, 6, 7]).filter(num => num > 5)
    
    // before
    const Collect = require('@supercharge/collections')
    const numsGreater5 = Collect([5, 6, 7]).filter(num => num > 5).all()
    
  • removed iterator support: we had iterators for synchronous collections in @supercharge/collections v3. Because @supercharge/collections v4 is now fully async, we’re going to add async iterators. In a later feature release. For now, we’re shipping v4 without async iterators. We appreciate a pull request if you want to add iterator support :)

marcuspoehls
published 3.2.1 •

Changelog

Source

3.2.1 - 2021-11-05

Updated

  • bump dependencies
  • change order of typings allowing the compiler to pick the stricter ones first
marcuspoehls
published 3.2.0 •

Changelog

Source

3.2.0 - 2021-10-13

Added

  • add iterator support to synchronous collections

Updated

  • bump dependencies
  • run tests for Node.js v16
  • rename master branch to main
  • refactor tests to remove the dependency for Sinon

Removed

  • remove Sinon dependency
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