Skip to content

Commit

Permalink
chore: require minimum typescript@3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 16, 2020
1 parent da63789 commit fdbc943
Show file tree
Hide file tree
Showing 56 changed files with 8 additions and 445 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/nodejs.yml
Expand Up @@ -41,8 +41,6 @@ jobs:
run: node scripts/build.js
- name: run tsc
run: yarn build:ts
- name: verify ts 3.4 compatibility
run: yarn verify-old-ts
- name: run eslint
run: yarn lint
- name: run eslint on browser builds
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@
### Chore & Maintenance

- `[*]` Do not generate TypeScript declaration source maps ([#9822](https://github.com/facebook/jest/pull/9822))
- `[*]` [**BREAKING**] TypeScript definitions requires a minimum of TypeScript v3.8 ([#9823](https://github.com/facebook/jest/pull/9823))

### Performance

Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -32,7 +32,6 @@
"codecov": "^3.0.0",
"debug": "^4.0.1",
"dedent": "^0.7.0",
"downlevel-dts": "^0.4.0",
"eslint": "^6.2.2",
"eslint-config-prettier": "^6.1.0",
"eslint-plugin-babel": "^5.1.0",
Expand Down Expand Up @@ -78,7 +77,6 @@
"string-length": "^3.1.0",
"strip-ansi": "^6.0.0",
"tempy": "~0.3.0",
"throat": "^5.0.0",
"typescript": "^3.8.2",
"webpack": "^4.28.4",
"which": "^2.0.1"
Expand Down Expand Up @@ -107,7 +105,6 @@
"test-pretty-format-perf": "node packages/pretty-format/perf/test.js",
"test-leak": "yarn jest -i --detectLeaks jest-mock jest-diff jest-repl",
"test": "yarn lint && yarn jest",
"verify-old-ts": "node ./scripts/verifyOldTs.js",
"watch": "yarn build && node ./scripts/watch.js",
"watch:ts": "yarn build:ts --watch"
},
Expand Down
7 changes: 0 additions & 7 deletions packages/babel-jest/package.json
Expand Up @@ -10,13 +10,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/transform": "^25.3.0",
"@jest/types": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/babel-plugin-jest-hoist/package.json
Expand Up @@ -12,13 +12,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@types/babel__traverse": "^7.0.6"
},
Expand Down
7 changes: 0 additions & 7 deletions packages/diff-sequences/package.json
Expand Up @@ -20,13 +20,6 @@
},
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"scripts": {
"perf": "node --expose-gc perf/index.js"
},
Expand Down
7 changes: 0 additions & 7 deletions packages/expect/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"browser": "build-es5/index.js",
"dependencies": {
"@jest/types": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-changed-files/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/types": "^25.3.0",
"execa": "^3.2.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-circus/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@babel/traverse": "^7.1.0",
"@jest/environment": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-cli/package.json
Expand Up @@ -4,13 +4,6 @@
"version": "25.3.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/core": "^25.3.0",
"@jest/test-result": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-config/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@babel/core": "^7.1.0",
"@jest/test-sequencer": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-console/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/types": "^25.3.0",
"chalk": "^3.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/jest-console/src/CustomConsole.ts
Expand Up @@ -51,8 +51,7 @@ export default class CustomConsole extends Console {
);
}

// use `asserts` when https://github.com/sandersn/downlevel-dts/issues/32 is fixed
assert(value: unknown, message?: string | Error): void {
assert(value: unknown, message?: string | Error): asserts value {
try {
assert(value, message);
} catch (error) {
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-core/package.json
Expand Up @@ -4,13 +4,6 @@
"version": "25.3.0",
"main": "build/jest.js",
"types": "build/jest.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/console": "^25.3.0",
"@jest/reporters": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-diff/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"chalk": "^3.0.0",
"diff-sequences": "^25.2.6",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-docblock/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"detect-newline": "^3.0.0"
},
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-each/package.json
Expand Up @@ -4,13 +4,6 @@
"description": "Parameterised tests for Jest",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-environment-jsdom/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/environment": "^25.3.0",
"@jest/fake-timers": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-environment-node/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/environment": "^25.3.0",
"@jest/fake-timers": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-environment/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/fake-timers": "^25.3.0",
"@jest/types": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-fake-timers/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/types": "^25.3.0",
"jest-message-util": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-get-type/package.json
Expand Up @@ -13,13 +13,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"publishConfig": {
"access": "public"
},
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-globals/package.json
Expand Up @@ -12,13 +12,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/environment": "^25.3.0",
"@jest/types": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-haste-map/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@jest/types": "^25.3.0",
"anymatch": "^3.0.3",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-jasmine2/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@babel/traverse": "^7.1.0",
"@jest/environment": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-leak-detector/package.json
Expand Up @@ -9,13 +9,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"jest-get-type": "^25.2.6",
"pretty-format": "^25.3.0"
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-matcher-utils/package.json
Expand Up @@ -13,13 +13,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"chalk": "^3.0.0",
"jest-diff": "^25.3.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/jest-message-util/package.json
Expand Up @@ -12,13 +12,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"dependencies": {
"@babel/code-frame": "^7.0.0",
"@jest/types": "^25.3.0",
Expand Down

0 comments on commit fdbc943

Please sign in to comment.