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

@supercharge/map

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supercharge/map - npm Package Versions

1.5.0

Diff

Changelog

Source

1.5.0 - 2021-09-13

Added

  • add toArray() method: converting the map to a JavaScript array containing arrays for each key-value-pair of this map
  • Map.from() method to create a new Map instance. This Map.from method aligns with JavaScript’s Array.from or Object.fromX methods
  • add pick(...keys) method: creating a new map with the picked keys

Updated

  • bump dependencies
  • use uvu and c8 instead of jest for testing
marcuspoehls
published 1.4.0 •

Changelog

Source

1.4.0 - 2021-07-05

Added

  • create a map with entries from an existing object:
    • you can now use Map.of({ key: 'value' }) or new Map({ key: 'value' })
    • you can still use the key-value arrays for entries: Map.of([['key', 'value']])
  • add isMissing(key) method: determining whether the map is missing the given key
  • add toObject() method: converting the map to a plain JavaScript object

Updated

  • bump dependencies
  • remove the @supercharge/goodies dependency
  • deprecated missing(key) method in favor of isMissing(key)
marcuspoehls
published 1.3.0 •

Changelog

Source

1.3.0 - 2021-02-19

Added

  • add missing(key) method determining whether the map is missing the given key

Updated

  • bump dependencies
marcuspoehls
published 1.2.0 •

Changelog

Source

1.2.0 - 2020-12-14

Added

  • add contains(predicate) method to determine whether the map satisfies the predicate function
  • add includes(predicate) method as an alias for the contains method
marcuspoehls
published 1.1.0 •

Changelog

Source

1.1.0 - 2020-12-14

Updated

  • bump dependencies
  • change main entrypoint in package.json to dist folder
  • move test runner from @hapi/lab to jest
  • move assertions from @hapi/code to jest

Removed

  • remove index.js file which acted as a middleman to export from dist folder
marcuspoehls
published 1.0.0 •

Changelog

Source

1.0.0 - 2020-08-13

Added

  • 1.0.0 release 🚀 🎉
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