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 99c6fb1 commit 65ad387
Show file tree
Hide file tree
Showing 56 changed files with 9 additions and 439 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

### Chore & Maintenance

- `[*]` [**BREAKING**] TypeScript defintions requires a minimum of TypeScript v3.8

### Performance

## 25.3.0
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
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 @@ -107,7 +106,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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
7 changes: 0 additions & 7 deletions packages/jest-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"browser": "build-es5/index.js",
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 65ad387

Please sign in to comment.