Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit cb25875

Browse files
gundProfesor08semantic-release-botlenovouser
authored
Release support for v5 (#63)
* feat(deps): add Typescript v5 beta support * add typescript@5 to peerDependencies * add ts@5 beta support * chore(lock): update lock file * docs(changelog): release 1.4.0-next.1 [skip ci] * fix: update to typescript v5 * Regenerate lockfile * Fix typescript not finding the same file with different extensions typescript-eslint/typescript-eslint#5457 (comment) * Update developer utilities * Update test dependencies * Update typescript * Apparently entries in the package-lock.json are now prefixed with node_modules/ * Update backwards compatibility test, ts-jest dropped support for TypeScript 3 in v28 * Add backwards compatibility test for TypeScript 4 * Use older dependencies so that we don't have different versions of TypeScript inside node_modules * Try to make types compatible with TypeScript 3, 4 and 5 * ci(ga): remove extra deps from TS v3 BC check --------- Co-authored-by: Alex Malkevich <malkevich.alex@gmail.com> * ci(ga): revert back semantic-release versions * ci(ga): fix TS v3 BC check * chore(deps): update semantic-release to latest version * docs(changelog): release 1.4.0-next.2 [skip ci] --------- Co-authored-by: Profesor08 <Profesor08@users.noreply.github.com> Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net> Co-authored-by: Silas Rech <silas.rech@protonmail.com>
1 parent d32fd22 commit cb25875

9 files changed

+7893
-7394
lines changed

.github/workflows/test.yml

+48-23
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- name: "Format check"
22-
cmd: "npm run format:check"
23-
- name: "Unit tests"
24-
cmd: "npm run test"
25-
- name: "Build"
26-
cmd: "npm run build"
21+
- name: 'Format check'
22+
cmd: 'npm run format:check'
23+
- name: 'Unit tests'
24+
cmd: 'npm run test'
25+
- name: 'Build'
26+
cmd: 'npm run build'
2727
name: '${{ matrix.name }}'
2828
steps:
2929
- uses: actions/setup-node@v3
@@ -44,27 +44,51 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
include:
47-
- name: "Test with Eslint v7"
47+
- name: 'Test with Eslint v7'
4848
cmd: |
49-
npm i eslint@^7 @typescript-eslint/parser@^4 @typescript-eslint/eslint-plugin@^4 && \
49+
npm i eslint@^7 \
50+
@typescript-eslint/parser@^4 \
51+
@typescript-eslint/eslint-plugin@^4
5052
cat package-lock.json | grep -A 1 \
51-
-e "\"eslint\": {" \
52-
-e "\"@typescript-eslint/parser\": {" \
53-
-e "\"@typescript-eslint/eslint-plugin\": {"
54-
build: true
55-
- name: "Test with Eslint v6"
53+
-e "\"node_modules/eslint\": {" \
54+
-e "\"node_modules/@typescript-eslint/parser\": {" \
55+
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {"
56+
test: npm run test
57+
build: npm run build
58+
- name: 'Test with Eslint v6'
5659
cmd: |
57-
npm i eslint@^6 @typescript-eslint/parser@^3 @typescript-eslint/eslint-plugin@^3 && \
60+
npm i eslint@^6 \
61+
@typescript-eslint/parser@^3 \
62+
@typescript-eslint/eslint-plugin@^3
5863
cat package-lock.json | grep -A 1 \
59-
-e "\"eslint\": {" \
60-
-e "\"@typescript-eslint/parser\": {" \
61-
-e "\"@typescript-eslint/eslint-plugin\": {"
62-
build: true
63-
- name: "Test with Typescript v3.7.5"
64+
-e "\"node_modules/eslint\": {" \
65+
-e "\"node_modules/@typescript-eslint/parser\": {" \
66+
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {"
67+
test: npm run test
68+
build: npm run build
69+
- name: 'Test with Typescript v4'
6470
cmd: |
65-
npm i typescript@3.7.5 && \
71+
npm i typescript@^4
6672
cat package-lock.json | grep -A 1 \
67-
-e "\"typescript\": {"
73+
-e "\"node_modules/typescript\": {"
74+
test: npm run test
75+
build: npm run build
76+
- name: 'Test with Typescript v3.7.5'
77+
cmd: |
78+
npm i -D jest@~27.0.0 \
79+
ts-jest@~27.0.0 \
80+
@types/jest@~27.0.0 \
81+
@types/node@^16.0.0 \
82+
@typescript-eslint/eslint-plugin@5.0.0 \
83+
@typescript-eslint/parser@5.0.0 \
84+
eslint@~8.0.0 \
85+
--force
86+
npm i typescript@3.7.5 --force
87+
cat package-lock.json | grep -A 1 \
88+
-e "\"node_modules/typescript\": {" \
89+
-e "\"node_modules/jest\": {" \
90+
-e "\"node_modules/ts-jest\": {"
91+
test: BC_MODE=1 npm run test
6892
build: false
6993
name: '[BC] ${{ matrix.name }}'
7094
steps:
@@ -81,7 +105,8 @@ jobs:
81105
- name: Install BC deps
82106
run: ${{ matrix.cmd }}
83107
- name: Unit tests
84-
run: npm run test
108+
if: matrix.test
109+
run: ${{ matrix.test }}
85110
- name: Build
86111
if: matrix.build
87-
run: npm run build
112+
run: ${{ matrix.build }}

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
# [1.4.0-next.2](https://github.com/gund/eslint-plugin-deprecation/compare/v1.4.0-next.1...v1.4.0-next.2) (2023-03-31)
4+
5+
6+
### Bug Fixes
7+
8+
* update to typescript v5 ([9416799](https://github.com/gund/eslint-plugin-deprecation/commit/94167994d47ce8ba49bc6cece6d8da0549ecb520)), closes [/github.com/typescript-eslint/typescript-eslint/issues/5457#issuecomment-1210617414](https://github.com//github.com/typescript-eslint/typescript-eslint/issues/5457/issues/issuecomment-1210617414)
9+
10+
# [1.4.0-next.1](https://github.com/gund/eslint-plugin-deprecation/compare/v1.3.3...v1.4.0-next.1) (2023-02-22)
11+
12+
13+
### Features
14+
15+
* **deps:** add Typescript v5 beta support ([0d7e2a4](https://github.com/gund/eslint-plugin-deprecation/commit/0d7e2a4805075f36f05e18b6efeb663b00e6bdfb))
16+
317
## [1.3.3](https://github.com/gund/eslint-plugin-deprecation/compare/v1.3.2...v1.3.3) (2022-11-14)
418

519

jest.config.js

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1+
const BC_MODE = !!process.env.BC_MODE;
2+
13
module.exports = {
2-
globals: {
3-
'ts-jest': {
4-
isolatedModules: true,
5-
},
6-
},
74
testEnvironment: 'node',
85
transform: {
9-
'^.+\\.tsx?$': 'ts-jest',
6+
'^.+\\.tsx?$': [
7+
'ts-jest',
8+
{
9+
isolatedModules: true,
10+
},
11+
],
1012
},
1113
testRegex: './tests/.+\\.test\\.ts$',
1214
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
13-
moduleNameMapper: {
14-
'@eslint/eslintrc/universal': '@eslint/eslintrc/dist/eslintrc-universal.cjs',
15-
},
15+
moduleNameMapper: BC_MODE
16+
? {
17+
'@eslint/eslintrc/universal':
18+
'@eslint/eslintrc/dist/eslintrc-universal.cjs',
19+
}
20+
: undefined,
1621
};

0 commit comments

Comments
 (0)