Skip to content

Commit

Permalink
Merge pull request #13 from umbrellio/update-deps
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
tysky authored Jun 10, 2022
2 parents 4437552 + 02a5cfd commit ceedf4b
Show file tree
Hide file tree
Showing 6 changed files with 2,142 additions and 2,574 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es6": true
Expand All @@ -14,7 +14,7 @@
"jsx": true,
"legacyDecorators": true
},
"ecmaVersion": 2018,
"ecmaVersion": 2022,
"sourceType": "module"
},
"plugins": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 15.x]
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class List extends React.Component {
render () {
const { categories } = this.props

return <ul>{categories.map(item => <li>{item}</li>)}</ul>
return <ul>{categories.map(item => <li key={item}>{item}</li>)}</ul>
}
}
```
Expand All @@ -119,7 +119,7 @@ class List extends React.Component {
return (
<React.Fragment>
<h2>{user.name}</h2>
<ul>{categories.map(item => <li>{item}</li>)}</ul>
<ul>{categories.map(item => <li key={item}>{item}</li>)}</ul>
</React.Fragment>
)
}
Expand All @@ -140,7 +140,7 @@ import { useStore } from "@umbrellio/observable"
const List = () => {
const categories = useStore(listStore, { map: state => state.list })

return <ul>{categories.map(item => <li>{item}</li>)}</ul>
return <ul>{categories.map(item => <li key={item}>{item}</li>)}</ul>
}
```
Expand Down
45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbrellio/observable",
"version": "1.4.0",
"version": "1.4.1",
"description": "Observable library",
"repository": "git@github.com:umbrellio/observable.git",
"author": "Aleksei Bespalov <nulldefiner@gmail.com>",
Expand All @@ -16,35 +16,34 @@
"test:coverage": "jest --coverage"
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.14.8",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-transform-react-jsx": "^7.14.5",
"@babel/preset-env": "^7.14.8",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
"babel-eslint": "^10.1.0",
"@babel/cli": "^7.17.10",
"@babel/core": "^7.18.2",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-proposal-class-properties": "^7.17.12",
"@babel/plugin-transform-react-jsx": "^7.17.12",
"@babel/preset-env": "^7.18.2",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
"babel-jest": "^28.1.1",
"coveralls": "^3.1.1",
"eslint": "^7.31.0",
"enzyme": "^3.11.0",
"eslint": "^8.17.0",
"eslint-config-umbrellio": "^5.0.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.24.0",
"jest": "^27.0.6",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rollup": "^2.55.1"
"rollup": "^2.75.6"
},
"peerDependencies": {
"react": "^16.13.1"
},
"dependencies": {
"babel-jest": "^27.0.6",
"enzyme": "^3.11.0"
"react": "^16.13.1 || ^17"
}
}
8 changes: 8 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { nodeResolve } from "@rollup/plugin-node-resolve"
const shared = {
input: "src/index.js",
external: ["react"],
output: {
globals: {
react: "React",
},
},
plugins: [
nodeResolve({
moduleDirectories: ["node_modules"],
Expand All @@ -19,20 +24,23 @@ const config = [
({ ...shared,
...{
output: {
...shared.output,
file: "dist/observable.cjs.js",
format: "cjs",
},
} }),
({ ...shared,
...{
output: {
...shared.output,
file: "dist/observable.es.js",
format: "es",
},
} }),
({ ...shared,
...{
output: {
...shared.output,
file: "dist/observable.iife.js",
format: "iife",
name: "T",
Expand Down
Loading

0 comments on commit ceedf4b

Please sign in to comment.