Skip to content

Commit

Permalink
Upgrade pagckages
Browse files Browse the repository at this point in the history
  • Loading branch information
nulldef committed May 13, 2021
1 parent 8a46297 commit 3f0a862
Show file tree
Hide file tree
Showing 6 changed files with 590 additions and 316 deletions.
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbrellio/observable",
"version": "1.3.2",
"version": "1.3.3",
"description": "Observable library",
"repository": "git@github.com:umbrellio/observable.git",
"author": "Aleksei Bespalov <nulldefiner@gmail.com>",
Expand All @@ -16,29 +16,29 @@
"test:coverage": "jest --coverage"
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.1",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-transform-react-jsx": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"@babel/cli": "^7.13.16",
"@babel/core": "^7.14.2",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-transform-react-jsx": "^7.13.12",
"@babel/preset-env": "^7.14.2",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-node-resolve": "^13.0.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
"babel-eslint": "^10.1.0",
"coveralls": "^3.1.0",
"enzyme-adapter-react-16": "^1.15.3",
"eslint": "^7.7.0",
"eslint": "^7.26.0",
"eslint-config-umbrellio": "^5.0.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.6",
"jest": "^26.4.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"rollup": "^2.26.4"
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.23.2",
"jest": "^26.6.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rollup": "^2.47.0"
},
"peerDependencies": {
"react": "^16.13.1"
Expand Down
2 changes: 1 addition & 1 deletion src/observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const observer = (store, { key, map }) => WrappedComponent => {
}

componentWillUnmount () {
this.unsubscribe()
this.unsubscribe && this.unsubscribe()
this.unsubscribe = null
this.mounted = false
}
Expand Down
2 changes: 1 addition & 1 deletion tests/multipleObserver.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Adapter from "enzyme-adapter-react-16"
import Adapter from "@wojtekmaj/enzyme-adapter-react-17"
import Enzyme from "enzyme"

import { observable, multipleObserver } from "../src"
Expand Down
2 changes: 1 addition & 1 deletion tests/observer.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Adapter from "enzyme-adapter-react-16"
import Adapter from "@wojtekmaj/enzyme-adapter-react-17"
import Enzyme from "enzyme"

import { observable } from "../src"
Expand Down
2 changes: 1 addition & 1 deletion tests/useStore.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Adapter from "enzyme-adapter-react-16"
import Adapter from "@wojtekmaj/enzyme-adapter-react-17"
import { configure, mount } from "enzyme"
import { act } from "react-dom/test-utils"

Expand Down
Loading

0 comments on commit 3f0a862

Please sign in to comment.