Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade chalk to v4 #9752

Merged
merged 4 commits into from May 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@

- `[*]` [**BREAKING**] TypeScript definitions requires a minimum of TypeScript v3.8 ([#9823](https://github.com/facebook/jest/pull/9823))
- `[*]` [**BREAKING**] Drop support for Node 8 ([#9423](https://github.com/facebook/jest/pull/9423))
- `[*]` Upgrade to chalk@4 ([#9752](https://github.com/facebook/jest/pull/9752))
- `[jest-runtime]` [**BREAKING**] Remove long-deprecated `require.requireActual` and `require.requireMock` methods ([#9854](https://github.com/facebook/jest/pull/9854))
- `[expect, jest-mock, pretty-format]` [**BREAKING**] Remove `build-es5` from package ([#9945](https://github.com/facebook/jest/pull/9945))
- `[jest-haste-map]` [**BREAKING**] removed `providesModuleNodeModules` ([#8535](https://github.com/facebook/jest/pull/8535))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
"babel-plugin-typescript-strip-namespaces": "^1.1.1",
"camelcase": "^5.0.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"chokidar": "^3.3.0",
"codecov": "^3.0.0",
"debug": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-jest/package.json
Expand Up @@ -16,7 +16,7 @@
"@types/babel__core": "^7.1.7",
"babel-plugin-istanbul": "^6.0.0",
"babel-preset-jest": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"graceful-fs": "^4.2.4",
"slash": "^3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/expect/package.json
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@jest/test-utils": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"fast-check": "^1.13.0",
"immutable": "^4.0.0-rc.12"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-circus/package.json
Expand Up @@ -14,7 +14,7 @@
"@jest/environment": "^25.5.0",
"@jest/test-result": "^25.5.0",
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"co": "^4.6.0",
"dedent": "^0.7.0",
"expect": "^25.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-cli/package.json
Expand Up @@ -8,7 +8,7 @@
"@jest/core": "^25.5.4",
"@jest/test-result": "^25.5.0",
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"exit": "^0.1.2",
"graceful-fs": "^4.2.4",
"import-local": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/package.json
Expand Up @@ -14,7 +14,7 @@
"@jest/test-sequencer": "^25.5.4",
"@jest/types": "^25.5.0",
"babel-jest": "^25.5.1",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"deepmerge": "^4.2.2",
"glob": "^7.1.1",
"graceful-fs": "^4.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-console/package.json
Expand Up @@ -11,7 +11,7 @@
"types": "build/index.d.ts",
"dependencies": {
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"jest-message-util": "^25.5.0",
"jest-util": "^25.5.0",
"slash": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-core/package.json
Expand Up @@ -11,7 +11,7 @@
"@jest/transform": "^25.5.1",
"@jest/types": "^25.5.0",
"ansi-escapes": "^4.2.1",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"exit": "^0.1.2",
"graceful-fs": "^4.2.4",
"jest-changed-files": "^25.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-diff/package.json
Expand Up @@ -10,7 +10,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"diff-sequences": "^25.2.6",
"jest-get-type": "^25.2.6",
"pretty-format": "^25.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-each/package.json
Expand Up @@ -19,7 +19,7 @@
"license": "MIT",
"dependencies": {
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"jest-get-type": "^25.2.6",
"jest-util": "^25.5.0",
"pretty-format": "^25.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-jasmine2/package.json
Expand Up @@ -15,7 +15,7 @@
"@jest/source-map": "^25.5.0",
"@jest/test-result": "^25.5.0",
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"co": "^4.6.0",
"expect": "^25.5.0",
"is-generator-fn": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-matcher-utils/package.json
Expand Up @@ -14,7 +14,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"jest-diff": "^25.5.0",
"jest-get-type": "^25.2.6",
"pretty-format": "^25.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-message-util/package.json
Expand Up @@ -16,7 +16,7 @@
"@babel/code-frame": "^7.0.0",
"@jest/types": "^25.5.0",
"@types/stack-utils": "^1.0.1",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"graceful-fs": "^4.2.4",
"micromatch": "^4.0.2",
"slash": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-reporters/package.json
Expand Up @@ -10,7 +10,7 @@
"@jest/test-result": "^25.5.0",
"@jest/transform": "^25.5.1",
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"collect-v8-coverage": "^1.0.0",
"exit": "^0.1.2",
"glob": "^7.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-resolve/package.json
Expand Up @@ -11,7 +11,7 @@
"types": "build/index.d.ts",
"dependencies": {
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"graceful-fs": "^4.2.4",
"jest-pnp-resolver": "^1.2.1",
"read-pkg-up": "^7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runner/package.json
Expand Up @@ -14,7 +14,7 @@
"@jest/environment": "^25.5.0",
"@jest/test-result": "^25.5.0",
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"exit": "^0.1.2",
"graceful-fs": "^4.2.4",
"jest-config": "^25.5.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runtime/package.json
Expand Up @@ -18,7 +18,7 @@
"@jest/transform": "^25.5.1",
"@jest/types": "^25.5.0",
"@types/yargs": "^15.0.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"collect-v8-coverage": "^1.0.0",
"exit": "^0.1.2",
"glob": "^7.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-snapshot/package.json
Expand Up @@ -13,7 +13,7 @@
"@babel/types": "^7.0.0",
"@jest/types": "^25.5.0",
"@types/prettier": "^1.19.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"expect": "^25.5.0",
"graceful-fs": "^4.2.4",
"jest-diff": "^25.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-transform/package.json
Expand Up @@ -13,7 +13,7 @@
"@babel/core": "^7.1.0",
"@jest/types": "^25.5.0",
"babel-plugin-istanbul": "^6.0.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"convert-source-map": "^1.4.0",
"fast-json-stable-stringify": "^2.0.0",
"graceful-fs": "^4.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-types/package.json
Expand Up @@ -16,7 +16,7 @@
"@types/istanbul-lib-coverage": "^2.0.0",
"@types/istanbul-reports": "^1.1.1",
"@types/yargs": "^15.0.0",
"chalk": "^3.0.0"
"chalk": "^4.0.0"
},
"devDependencies": {
"@types/node": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-util/package.json
Expand Up @@ -11,7 +11,7 @@
"types": "build/index.d.ts",
"dependencies": {
"@jest/types": "^25.5.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"graceful-fs": "^4.2.4",
"is-ci": "^2.0.0",
"make-dir": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-validate/package.json
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@jest/types": "^25.5.0",
"camelcase": "^5.3.1",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"jest-get-type": "^25.2.6",
"leven": "^3.1.0",
"pretty-format": "^25.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-watcher/package.json
Expand Up @@ -8,7 +8,7 @@
"@jest/test-result": "^25.5.0",
"@jest/types": "^25.5.0",
"ansi-escapes": "^4.2.1",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"jest-util": "^25.5.0",
"string-length": "^3.1.0"
},
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Expand Up @@ -7,8 +7,7 @@
"declaration": true,
"composite": true,
"emitDeclarationOnly": true,
// blocked by https://github.com/chalk/chalk/pull/390
// "isolatedModules": true,
"isolatedModules": true,
"importsNotUsedAsValues": "error",

"strict": true,
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Expand Up @@ -3843,6 +3843,14 @@ chalk@^3.0.0:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chalk@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.0.0.tgz#6e98081ed2d17faab615eb52ac66ec1fe6209e72"
integrity sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

character-entities-legacy@^1.0.0:
version "1.1.4"
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1"
Expand Down