use-context-selector
Advanced tools
Comparing version 2.0.0-alpha.4 to 2.0.0-alpha.5
@@ -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 |
{ | ||
"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 @@ |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
3
2
35156
10
213
203