Skip to content

Commit

Permalink
Mobx6 upgrade deps (mobxjs#2344)
Browse files Browse the repository at this point in the history
* Add actionName in prod mode too

* Change script names in Contributing section to match existing ones

* Run build before 'perf' script

* Fix prettier script, ignore list and run on repo

* Add changes to changelog

* Upgrade all packages, fix flow

* Update yarn.lock

* Upgrade serializr and docusaurus + fix website package.json warnings

* Upgrade tape

* Upgrade jest and friends

* Revert prettier v1 to 2 migration changes
  • Loading branch information
elektronik2k5 authored Apr 27, 2020
1 parent 89ef1a1 commit 6ecb23b
Show file tree
Hide file tree
Showing 6 changed files with 2,519 additions and 1,580 deletions.
2 changes: 2 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"semi": false,
"tabWidth": 4,
"singleQuote": false,
"trailingComma": "none",
"arrowParens": "avoid",
"useTabs": false
}
59 changes: 29 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"perf": "yarn build && yarn test:performance proxy && yarn test:performance legacy",
"test:mixed-versions": "jest --testRegex mixed-versions",
"test:check": "yarn test:types && yarn lint",
"test:types": "yarn tsc --noEmit && yarn test:flow",
"test:flow": "flow check",
"test:types": "tsc --noEmit && yarn test:flow",
"test:flow": "yarn build && flow check",
"test:coverage": "yarn test -i --coverage",
"test:performance": "PERSIST=true time node --expose-gc test/perf/index.js",
"test:size": "yarn build && yarn import-size --report . observable computed autorun action enableDecorators",
"test:codemod": "yarn jest --testRegex 'codemod/.*spec' codemod/undecorate.spec.ts",
"test:codemod": "jest --testRegex 'codemod/.*spec' codemod/undecorate.spec.ts",
"prettier": "prettier --write '**/*.{js,ts,md}'",
"prebuild": "rimraf lib",
"build": "tsdx build --name mobx --format esm,cjs,umd",
Expand All @@ -33,8 +33,8 @@
"docs:build": "yarn --cwd website build",
"docs:start": "yarn --cwd website start",
"docs:publish": "yarn --cwd website publish-gh-pages",
"prepare": "yarn --cwd website install",
"dedup": "npx yarn-deduplicate -s fewer yarn.lock"
"prepare": "yarn dedup && yarn --cwd website install",
"dedup": "npx yarn-deduplicate --strategy fewer yarn.lock"
},
"repository": {
"type": "git",
Expand All @@ -57,39 +57,38 @@
"homepage": "https://mobx.js.org/",
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-typescript": "^7.9.0",
"@babel/runtime": "^7.8.4",
"@types/jest": "^24.0.11",
"@types/jscodeshift": "^0.6.3",
"@types/node": "^11.11.3",
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "^2.27.0",
"babel-jest": "^24.5.0",
"conditional-type-checks": "^1.0.4",
"coveralls": "^3.0.3",
"@babel/runtime": "^7.9.2",
"@types/jest": "^25.2.1",
"@types/jscodeshift": "^0.7.0",
"@types/node": "^11.15.12",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"babel-jest": "^25.4.0",
"conditional-type-checks": "^1.0.5",
"coveralls": "^3.1.0",
"dedent-js": "^1.0.1",
"eslint": "^6.8.0",
"flow-bin": "^0.59.0",
"fs-extra": "^8.1.0",
"husky": "^4.2.3",
"flow-bin": "^0.123.0",
"husky": "^4.2.5",
"import-size": "^1.0.2",
"iterall": "^1.2.2",
"jest": "^24.5.0",
"iterall": "^1.3.0",
"jest": "^25.4.0",
"jscodeshift": "^0.7.0",
"lint-staged": "^8.1.5",
"prettier": "^1.19.1",
"lint-staged": "^10.1.7",
"prettier": "^2.0.5",
"pretty-quick": "2.0.1",
"prompts": "^2.3.0",
"semver": "^7.1.3",
"serializr": "^1.5.1",
"shelljs": "^0.8.3",
"tape": "^4.10.1",
"ts-jest": "^24.0.0",
"prompts": "^2.3.2",
"semver": "^7.3.2",
"serializr": "^2.0.3",
"shelljs": "^0.8.4",
"tape": "^5.0.0",
"ts-jest": "^25.4.0",
"tsdx": "^0.13.2",
"typescript": "^3.8.3"
},
Expand Down
3 changes: 2 additions & 1 deletion test/v5/flow/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const x: string = extendedObservableObject.a
const disposer = mobx.autorun(() => console.log(sum.get()))
disposer()

const arr: IObservableArray<number> = observable([])
const emptyArray = observable([])
const arr = observable([1])
const object = observable.map({
nestedValue: arr
})
Expand Down
17 changes: 16 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version"
},
"repository": {
"type": "git",
"url": "https://github.com/mobxjs/mobx.git"
},
"author": "Michel Weststrate",
"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/mobx"
},
"bugs": {
"url": "https://github.com/mobxjs/mobx/issues"
},
"homepage": "https://mobx.js.org/",

"devDependencies": {
"docusaurus": "^1.12.0"
"docusaurus": "^1.14.4"
}
}
Loading

0 comments on commit 6ecb23b

Please sign in to comment.