New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-use

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use - npm Package Compare versions

Comparing version 5.2.3 to 5.3.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [5.3.0](https://github.com/streamich/react-use/compare/v5.2.3...v5.3.0) (2019-02-07)
### Features
* Add updateAt method for useList ([ad05609](https://github.com/streamich/react-use/commit/ad05609))
## [5.2.3](https://github.com/streamich/react-use/compare/v5.2.2...v5.2.3) (2019-02-07)

@@ -2,0 +9,0 @@

1

lib/useList.d.ts
export interface Actions<T> {
set: (list: T[]) => void;
updateAt: (index: number, item: T) => void;
push: (item: T) => void;

@@ -4,0 +5,0 @@ filter: (fn: (value: T) => boolean) => void;

@@ -8,2 +8,7 @@ "use strict";

set,
updateAt: (index, entry) => set([
...list.slice(0, index),
entry,
...list.slice(index + 1)
]),
push: (entry) => set([...list, entry]),

@@ -10,0 +15,0 @@ filter: (fn) => set(list.filter(fn)),

2

package.json
{
"name": "react-use",
"version": "5.2.3",
"version": "5.3.0",
"description": "Collection of React Hooks",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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