Socket
Socket
Sign inDemoInstall

simple-update-in

Package Overview
Dependencies
0
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous124567Next

2.0.1

Diff

Changelog

Source

[2.0.1] - 2018-12-03

Added

  • Emitting UMD bundle for browser
    • <script src="https://unpkg.com/simple-update-in/dist/simple-update-in.production.min.js"></script>
    • <script>window.simpleUpdateIn({ abc: 123, def: 456 }, ['xyz'], () => 789);</script>
compulim
published 2.0.1-master.caa6667 •

compulim
published 2.0.1-master.e01c112 •

compulim
published 2.0.1-master.49d2769 •

compulim
published 2.0.0 •

Changelog

Source

[2.0.0] - 2018-12-03

Added

  • Support async predicate
    • await updateIn([1, 2, 3, 4, 5], [v => Promise.resolve(v % 2)], v => v * 10) will return [10, 2, 30, 4, 50]
  • Support async update
    • await updateIn([1, 2, 3], [0], v => Promise.resolve(v * 10)) will return [10, 2, 3]

Changed

  • Use Node.js 10 and 11 for Travis CI

Removed

  • Removed array insertion using index number of -1
    • This introduces API inconfirmity: -1 could means append, prepend, or the last item
compulim
published 1.4.1-master.f9cbbf0 •

compulim
published 1.4.1-master.ea7196c •

compulim
published 1.4.1-master.e48b627 •

compulim
published 1.4.1-master.6eda060 •

compulim
published 1.4.1-0 •

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc