Skip to content

Commit

Permalink
Merge pull request #825 from sigi-framework/fix-bugs
Browse files Browse the repository at this point in the history
Fix bugs
  • Loading branch information
Brooooooklyn committed Aug 30, 2021
2 parents 5d89fb5 + 3c27e1a commit 5612f47
Show file tree
Hide file tree
Showing 13 changed files with 680 additions and 687 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/config-lerna-scopes": "^13.1.0",
"@swc-node/jest": "^1.3.1",
"@types/jest": "^27.0.0",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.172",
"@types/node": "^16.4.13",
"@types/node": "^16.7.6",
"@types/react-dom": "^17.0.9",
"@types/react-test-renderer": "^17.0.1",
"@types/sinon": "^10.0.2",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"codecov": "^3.8.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-sonarjs": "^0.9.1",
"husky": "^7.0.1",
"eslint-plugin-sonarjs": "^0.10.0",
"husky": "^7.0.2",
"immer": "^9.0.5",
"jest": "^27.0.6",
"jest": "^27.1.0",
"lerna": "^4.0.0",
"lint-staged": "^11.1.2",
"lodash": "^4.17.21",
Expand All @@ -59,14 +59,14 @@
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"reflect-metadata": "^0.1.13",
"rollup": "^2.56.2",
"rollup": "^2.56.3",
"rollup-plugin-sourcemaps": "^0.6.3",
"rxjs": "^7.3.0",
"shx": "^0.3.3",
"sinon": "^11.1.2",
"ts-node": "^10.2.0",
"tslib": "^2.3.0",
"typescript": "^4.3.5",
"ts-node": "^10.2.1",
"tslib": "^2.3.1",
"typescript": "^4.4.2",
"vue": "^2.6.14"
},
"lint-staged": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand All @@ -26,7 +26,7 @@
"dependencies": {
"@sigi/di": "^2.10.2",
"@sigi/types": "^2.10.2",
"tslib": "^2.2.0"
"tslib": "^2.3.1"
},
"peerDependencies": {
"immer": ">=9",
Expand Down
12 changes: 4 additions & 8 deletions packages/core/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,10 @@ export class Store<S> implements IStore<S> {
try {
this.dispatch(action)
} catch (e) {
// @ts-expect-error
this.log({
type: `${this.name}/CAUGHT_ERROR`,
payload: {
action: action.type,
error: e,
},
})
if (process.env.NODE_ENV !== 'production') {
console.error(e)
}
console.error(e)
this.action$.error(e)
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/devtool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand All @@ -26,6 +26,6 @@
"dependencies": {
"@sigi/core": "^2.11.2",
"@sigi/types": "^2.10.2",
"tslib": "^2.2.0"
"tslib": "^2.3.1"
}
}
4 changes: 2 additions & 2 deletions packages/di/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand All @@ -24,7 +24,7 @@
"url": "https://github.com/sigi-framework/sigi/issues"
},
"dependencies": {
"tslib": "^2.2.0"
"tslib": "^2.3.1"
},
"peerDependencies": {
"@abraham/reflection": ">=0.8.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand All @@ -29,10 +29,10 @@
"@sigi/di": "^2.10.2",
"@sigi/react": "^2.11.2",
"@sigi/types": "^2.10.2",
"tslib": "^2.2.0"
"tslib": "^2.3.1"
},
"devDependencies": {
"@types/history": "^4.7.8",
"@types/history": "^4.7.9",
"history": "4"
}
}
6 changes: 3 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.11.2",
"description": "React bindings for sigi framework",
"keywords": ["Hooks", "RxJS", "TypeScript", "React", "Sigi"],
"author": "LongYinan <longyinan.brooklyn@bytedance.com>",
"author": "LongYinan <lynweklm@gmail.com>",
"homepage": "https://sigi.how",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -16,7 +16,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand All @@ -29,7 +29,7 @@
"@sigi/di": "^2.10.2",
"@sigi/ssr": "^2.11.2",
"@sigi/types": "^2.10.2",
"tslib": "^2.2.0"
"tslib": "^2.3.1"
},
"peerDependencies": {
"react": ">=17",
Expand Down
10 changes: 5 additions & 5 deletions packages/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"engines": {
"node": ">= 10.17"
},
Expand All @@ -31,12 +31,12 @@
"@sigi/di": "^2.10.2",
"@sigi/types": "^2.10.2",
"path-to-regexp": "^6.2.0",
"serialize-javascript": "^5.0.1",
"tslib": "^2.2.0"
"serialize-javascript": "^6.0.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@types/node": "^15.12.1",
"@types/serialize-javascript": "^5.0.0"
"@types/node": "^16.7.6",
"@types/serialize-javascript": "^5.0.1"
},
"peerDependencies": {
"rxjs": ">=7"
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand Down
4 changes: 2 additions & 2 deletions packages/ts-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand All @@ -28,6 +28,6 @@
},
"dependencies": {
"@sigi/types": "^2.10.2",
"tslib": "^2.2.0"
"tslib": "^2.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"access": "public"
},
"sideEffects": false,
"files": ["dist", "esm", "next", "es2015"],
"files": ["dist", "esm", "next", "es2015", "src"],
"repository": {
"type": "git",
"url": "git+https://github.com/sigi-framework/sigi.git"
Expand Down
Loading

0 comments on commit 5612f47

Please sign in to comment.