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

Commit

Permalink
Release support for v5 (#63)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: semantic-release-bot <[email protected]>
Co-authored-by: Silas Rech <[email protected]>
  • Loading branch information
4 people authored Apr 1, 2023
1 parent d32fd22 commit cb25875
Show file tree
Hide file tree
Showing 9 changed files with 7,893 additions and 7,394 deletions.
71 changes: 48 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
fail-fast: false
matrix:
include:
- name: "Format check"
cmd: "npm run format:check"
- name: "Unit tests"
cmd: "npm run test"
- name: "Build"
cmd: "npm run build"
- name: 'Format check'
cmd: 'npm run format:check'
- name: 'Unit tests'
cmd: 'npm run test'
- name: 'Build'
cmd: 'npm run build'
name: '${{ matrix.name }}'
steps:
- uses: actions/setup-node@v3
Expand All @@ -44,27 +44,51 @@ jobs:
fail-fast: false
matrix:
include:
- name: "Test with Eslint v7"
- name: 'Test with Eslint v7'
cmd: |
npm i eslint@^7 @typescript-eslint/parser@^4 @typescript-eslint/eslint-plugin@^4 && \
npm i eslint@^7 \
@typescript-eslint/parser@^4 \
@typescript-eslint/eslint-plugin@^4
cat package-lock.json | grep -A 1 \
-e "\"eslint\": {" \
-e "\"@typescript-eslint/parser\": {" \
-e "\"@typescript-eslint/eslint-plugin\": {"
build: true
- name: "Test with Eslint v6"
-e "\"node_modules/eslint\": {" \
-e "\"node_modules/@typescript-eslint/parser\": {" \
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {"
test: npm run test
build: npm run build
- name: 'Test with Eslint v6'
cmd: |
npm i eslint@^6 @typescript-eslint/parser@^3 @typescript-eslint/eslint-plugin@^3 && \
npm i eslint@^6 \
@typescript-eslint/parser@^3 \
@typescript-eslint/eslint-plugin@^3
cat package-lock.json | grep -A 1 \
-e "\"eslint\": {" \
-e "\"@typescript-eslint/parser\": {" \
-e "\"@typescript-eslint/eslint-plugin\": {"
build: true
- name: "Test with Typescript v3.7.5"
-e "\"node_modules/eslint\": {" \
-e "\"node_modules/@typescript-eslint/parser\": {" \
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {"
test: npm run test
build: npm run build
- name: 'Test with Typescript v4'
cmd: |
npm i typescript@3.7.5 && \
npm i typescript@^4
cat package-lock.json | grep -A 1 \
-e "\"typescript\": {"
-e "\"node_modules/typescript\": {"
test: npm run test
build: npm run build
- name: 'Test with Typescript v3.7.5'
cmd: |
npm i -D jest@~27.0.0 \
ts-jest@~27.0.0 \
@types/jest@~27.0.0 \
@types/node@^16.0.0 \
@typescript-eslint/[email protected] \
@typescript-eslint/[email protected] \
eslint@~8.0.0 \
--force
npm i [email protected] --force
cat package-lock.json | grep -A 1 \
-e "\"node_modules/typescript\": {" \
-e "\"node_modules/jest\": {" \
-e "\"node_modules/ts-jest\": {"
test: BC_MODE=1 npm run test
build: false
name: '[BC] ${{ matrix.name }}'
steps:
Expand All @@ -81,7 +105,8 @@ jobs:
- name: Install BC deps
run: ${{ matrix.cmd }}
- name: Unit tests
run: npm run test
if: matrix.test
run: ${{ matrix.test }}
- name: Build
if: matrix.build
run: npm run build
run: ${{ matrix.build }}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

# [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)


### Bug Fixes

* 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)

# [1.4.0-next.1](https://github.com/gund/eslint-plugin-deprecation/compare/v1.3.3...v1.4.0-next.1) (2023-02-22)


### Features

* **deps:** add Typescript v5 beta support ([0d7e2a4](https://github.com/gund/eslint-plugin-deprecation/commit/0d7e2a4805075f36f05e18b6efeb663b00e6bdfb))

## [1.3.3](https://github.com/gund/eslint-plugin-deprecation/compare/v1.3.2...v1.3.3) (2022-11-14)


Expand Down
23 changes: 14 additions & 9 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
const BC_MODE = !!process.env.BC_MODE;

module.exports = {
globals: {
'ts-jest': {
isolatedModules: true,
},
},
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.tsx?$': [
'ts-jest',
{
isolatedModules: true,
},
],
},
testRegex: './tests/.+\\.test\\.ts$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
moduleNameMapper: {
'@eslint/eslintrc/universal': '@eslint/eslintrc/dist/eslintrc-universal.cjs',
},
moduleNameMapper: BC_MODE
? {
'@eslint/eslintrc/universal':
'@eslint/eslintrc/dist/eslintrc-universal.cjs',
}
: undefined,
};
Loading

0 comments on commit cb25875

Please sign in to comment.