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

use-context-selector

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-context-selector - npm Package Compare versions

Comparing version 2.0.0-alpha.4 to 2.0.0-alpha.5

dist/index.modern.js

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [1.1.2] - 2020-07-02
### Changed
- Modern build
## [1.1.1] - 2020-03-02

@@ -7,0 +11,0 @@ ### Changed

45

package.json
{
"name": "use-context-selector",
"description": "React useContext with selector support in userland",
"version": "2.0.0-alpha.4",
"version": "2.0.0-alpha.5",
"publishConfig": {

@@ -14,5 +14,4 @@ "tag": "next"

"source": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"browser": "./dist/index.umd.js",
"main": "./dist/index.umd.js",
"module": "./dist/index.modern.js",
"types": "./dist/src/index.d.ts",

@@ -25,3 +24,3 @@ "sideEffects": false,

"scripts": {
"compile": "microbundle build --format cjs,es,umd",
"compile": "microbundle build -f modern,umd",
"test": "run-s eslint tsc-test jest",

@@ -43,19 +42,19 @@ "eslint": "eslint --ext .js,.ts,.tsx --ignore-pattern dist .",

"devDependencies": {
"@testing-library/react": "^10.0.4",
"@types/jest": "^25.2.3",
"@types/react": "^16.9.35",
"@testing-library/react": "^10.4.3",
"@types/jest": "^26.0.3",
"@types/react": "^16.9.41",
"@types/react-dom": "^16.9.8",
"@types/scheduler": "^0.16.1",
"@typescript-eslint/eslint-plugin": "^3.0.0",
"@typescript-eslint/parser": "^3.0.0",
"documentation": "^13.0.0",
"eslint": "^7.0.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^3.5.0",
"@typescript-eslint/parser": "^3.5.0",
"documentation": "^13.0.2",
"eslint": "^7.3.1",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.5",
"html-webpack-plugin": "^4.3.0",
"jest": "^26.0.1",
"microbundle": "^0.12.0",
"jest": "^26.1.0",
"microbundle": "^0.12.2",
"npm-run-all": "^4.1.5",

@@ -65,7 +64,7 @@ "react": "experimental",

"scheduler": "experimental",
"ts-jest": "^26.0.0",
"ts-loader": "^7.0.4",
"typescript": "^3.9.3",
"ts-jest": "^26.1.1",
"ts-loader": "^7.0.5",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"

@@ -72,0 +71,0 @@ },

# use-context-selector
[![Build Status](https://travis-ci.com/dai-shi/use-context-selector.svg?branch=master)](https://travis-ci.com/dai-shi/use-context-selector)
[![npm version](https://badge.fury.io/js/use-context-selector.svg)](https://badge.fury.io/js/use-context-selector)
[![bundle size](https://badgen.net/bundlephobia/minzip/use-context-selector)](https://bundlephobia.com/result?p=use-context-selector)
[![CI](https://img.shields.io/github/workflow/status/dai-shi/use-context-selector/CI)](https://github.com/dai-shi/use-context-selector/actions?query=workflow%3ACI)
[![npm](https://img.shields.io/npm/v/use-context-selector)](https://www.npmjs.com/package/use-context-selector)
[![size](https://img.shields.io/bundlephobia/minzip/use-context-selector)](https://bundlephobia.com/result?p=use-context-selector)

@@ -182,3 +182,2 @@ React useContext with selector support in userland

- The [stale props](https://react-redux.js.org/api/hooks#stale-props-and-zombie-children) issue can't be solved in userland.
- Due to the current useMutableSource limitation, a selector can't return a function. (See `01_basic_spec` wrapping setState)
- Tearing is only avoided within the Provider tree. A value outside the Provider will tear. (`02_tearing_spec` fails)

@@ -185,0 +184,0 @@

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