Skip to content

Commit 7935007

Browse files
feat!: bump minimum Node version to 18.12 and TypeScript to 4.8.4 (#531)
## PR Checklist - [x] Addresses an existing open issue: fixes #530; fixes #532; closes #580 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Removes the following methods that rely on deprecated parts of TypeScript: * `isInputFiles` (`ts.SyntaxKind.InputFiles`) * `isUnparsedPrologue` (`ts.SyntaxKind.UnparsedPrologue`) * `isUnparsedSourceText` (`ts.isUnparsedPrepend`, `ts.isUnparsedTextLike`) * `isUnparsedSyntheticReference` (`ts.SyntaxKind. UnparsedSyntheticReference`) Also bumps all devDependencies to latest (`ncu -u`) to work on the latest Node 22 and 23 in CI. 💖 --------- Co-authored-by: Rebecca Stevens <rebecca.stevens@outlook.co.nz>
1 parent e209eab commit 7935007

48 files changed

Lines changed: 6579 additions & 6016 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.cjs

Lines changed: 0 additions & 178 deletions
This file was deleted.

.github/actions/prepare/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ description: Prepares the repo for a typical CI job
33
inputs:
44
node-version:
55
default: latest
6-
76
description: The node version to use
87
required: false
8+
99
name: Prepare
1010

1111
runs:

.github/actions/protect-main/action.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ runs:
1111
uses: actions/github-script@v7.0.1
1212
with:
1313
github-token: ${{ inputs.ACCESS_TOKEN }}
14-
# Note: keep this inline script in sync with script/setup.js!
1514
# Todo: it would be nice to not have two sources of truth...
16-
# https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues/145
15+
# https://github.com/JoshuaKGoldberg/create-typescript-app/issues/145
1716
script: |
1817
github.request(
1918
`PUT /repos/JoshuaKGoldberg/ts-api-utils/branches/main/protection`,
@@ -32,8 +31,9 @@ runs:
3231
required_pull_request_reviews: null,
3332
required_status_checks: {
3433
checks: [
35-
{ context: "build (16.14.0)" },
3634
{ context: "build (18.x)" },
35+
{ context: "build (22.x)" },
36+
{ context: "build (latest)" },
3737
{ context: "compliance" },
3838
{ context: "lint_docs" },
3939
{ context: "lint_knip_production" },
@@ -43,14 +43,12 @@ runs:
4343
{ context: "lint_spelling" },
4444
{ context: "lint" },
4545
{ context: "prettier" },
46-
{ context: "test (16.14.0, 4.3.5)" },
47-
{ context: "test (16.14.0, 4.6.4)" },
48-
{ context: "test (16.14.0, 4.9.5)" },
49-
{ context: "test (16.14.0, latest)" },
50-
{ context: "test (18.x, 4.3.5)" },
51-
{ context: "test (18.x, 4.6.4)" },
52-
{ context: "test (18.x, 4.9.5)" },
46+
{ context: "test (18.x, 4.8.4)" },
5347
{ context: "test (18.x, latest)" },
48+
{ context: "test (22.x, 4.8.4)" },
49+
{ context: "test (22.x, latest)" },
50+
{ context: "test (latest, 4.8.4)" },
51+
{ context: "test (latest, latest)" },
5452
{ context: "type_check" },
5553
],
5654
strict: false,

.github/renovate.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"automerge": true,
4+
"extends": ["helpers:disableTypesNodeMajor"],
45
"internalChecksFilter": "strict",
56
"labels": ["dependencies"],
67
"minimumReleaseAge": "3 days",
7-
"packageRules": [
8-
{
9-
"allowedVersions": "<0.25",
10-
"matchPackageNames": ["typedoc"]
11-
},
12-
{
13-
"allowedVersions": "<5.5",
14-
"matchPackageNames": ["typescript"]
15-
}
16-
],
178
"postUpdateOptions": ["pnpmDedupe"]
189
}

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
node_version:
16-
- 16.14.0
1716
- 18.x
17+
- 22.x
18+
- latest
1819
name: Build
1920

2021
on:

.github/workflows/docs-release.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)