Skip to content

Commit 9d85daa

Browse files
committed
chore(deps): upgrade deps lib
1 parent 7ecf352 commit 9d85daa

File tree

3 files changed

+633
-451
lines changed

3 files changed

+633
-451
lines changed

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -58,36 +58,36 @@
5858
"@types/react-redux": "^7.1.24",
5959
"@types/react-router": "^5.1.18",
6060
"@types/react-router-dom": "^5.3.3",
61-
"@typescript-eslint/eslint-plugin": "^5.36.2",
62-
"@typescript-eslint/parser": "^5.35.1",
61+
"@typescript-eslint/eslint-plugin": "^5.52.0",
62+
"@typescript-eslint/parser": "^5.52.0",
6363
"chalk": "^3.0.0",
6464
"commitizen": "^4.3.0",
6565
"cross-env": "^7.0.3",
66-
"eslint": "^8.23.0",
66+
"eslint": "^8.34.0",
6767
"eslint-config-airbnb": "^19.0.4",
68-
"eslint-config-prettier": "^8.5.0",
68+
"eslint-config-prettier": "^8.6.0",
6969
"eslint-plugin-import": "^2.26.0",
7070
"eslint-plugin-jsx-a11y": "^6.6.1",
7171
"eslint-plugin-prettier": "^4.2.1",
7272
"eslint-plugin-react": "^7.31.1",
7373
"eslint-plugin-react-hooks": "^4.6.0",
7474
"fs-extra": "^8.1.0",
7575
"glob-parent": "^5.1.0",
76-
"jest": "^29.0.3",
76+
"jest": "^29.4.3",
7777
"jest-environment-jsdom": "^29.0.3",
7878
"jsdoc-tests": "^1.1.0",
7979
"lerna": "^5.5.1",
8080
"mobx": "^5.15.4",
81-
"prettier": "^2.1.0",
81+
"prettier": "^2.8.4",
8282
"rimraf": "^3.0.2",
8383
"rollup": "^1.28.0",
8484
"rollup-plugin-terser": "^7.0.0",
85-
"ts-jest": "^29.0.1",
85+
"ts-jest": "^29.0.5",
8686
"ts-node": "^10.9.1",
87-
"tslib": "^2.3.1",
88-
"typedoc": "^0.23.11",
89-
"typedoc-plugin-markdown": "^3.13.4",
90-
"typescript": "^4.8.3",
87+
"tslib": "^2.5.0",
88+
"typedoc": "^0.23.25",
89+
"typedoc-plugin-markdown": "^3.14.0",
90+
"typescript": "^4.9.5",
9191
"yargs": "^15.1.0"
9292
},
9393
"resolutions": {

packages/reactant/src/createApp.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ import {
2121
} from 'reactant-module';
2222
import { Config, App, Renderer } from './interfaces';
2323

24-
export const ContainerContext: Context<Container | null> = React.createContext<Container | null>(
25-
null
26-
);
24+
export const ContainerContext: Context<Container | null> =
25+
React.createContext<Container | null>(null);
2726

2827
/**
2928
* ## Description
@@ -170,12 +169,12 @@ function createApp<T, S extends any[], R extends Renderer<S>>({
170169
/**
171170
* all modules collection
172171
*/
173-
modules: ((instance as any) as Service)[modulesKey]!,
172+
modules: (instance as any as Service)[modulesKey]!,
174173
/**
175174
* destroy all subscriptions
176175
*/
177176
destroy: () => {
178-
const modulesMap = ((instance as any) as Service)[modulesKey]!;
177+
const modulesMap = (instance as any as Service)[modulesKey]!;
179178
Object.keys(modulesMap).forEach((key) => {
180179
const module = modulesMap[key] as Service | null | undefined;
181180
const unsubscriptions = module?.[unsubscriptionsKey];

0 commit comments

Comments
 (0)