Skip to content

Commit

Permalink
feat!: bump minimum Node version to 18.12 and TypeScript to 4.8.4 (#531)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
JoshuaKGoldberg and RebeccaStevens authored Dec 1, 2024
1 parent e209eab commit 7935007
Show file tree
Hide file tree
Showing 48 changed files with 6,579 additions and 6,016 deletions.
178 changes: 0 additions & 178 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ description: Prepares the repo for a typical CI job
inputs:
node-version:
default: latest

description: The node version to use
required: false

name: Prepare

runs:
Expand Down
18 changes: 8 additions & 10 deletions .github/actions/protect-main/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ runs:
uses: actions/[email protected]
with:
github-token: ${{ inputs.ACCESS_TOKEN }}
# Note: keep this inline script in sync with script/setup.js!
# Todo: it would be nice to not have two sources of truth...
# https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues/145
# https://github.com/JoshuaKGoldberg/create-typescript-app/issues/145
script: |
github.request(
`PUT /repos/JoshuaKGoldberg/ts-api-utils/branches/main/protection`,
Expand All @@ -32,8 +31,9 @@ runs:
required_pull_request_reviews: null,
required_status_checks: {
checks: [
{ context: "build (16.14.0)" },
{ context: "build (18.x)" },
{ context: "build (22.x)" },
{ context: "build (latest)" },
{ context: "compliance" },
{ context: "lint_docs" },
{ context: "lint_knip_production" },
Expand All @@ -43,14 +43,12 @@ runs:
{ context: "lint_spelling" },
{ context: "lint" },
{ context: "prettier" },
{ context: "test (16.14.0, 4.3.5)" },
{ context: "test (16.14.0, 4.6.4)" },
{ context: "test (16.14.0, 4.9.5)" },
{ context: "test (16.14.0, latest)" },
{ context: "test (18.x, 4.3.5)" },
{ context: "test (18.x, 4.6.4)" },
{ context: "test (18.x, 4.9.5)" },
{ context: "test (18.x, 4.8.4)" },
{ context: "test (18.x, latest)" },
{ context: "test (22.x, 4.8.4)" },
{ context: "test (22.x, latest)" },
{ context: "test (latest, 4.8.4)" },
{ context: "test (latest, latest)" },
{ context: "type_check" },
],
strict: false,
Expand Down
11 changes: 1 addition & 10 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automerge": true,
"extends": ["helpers:disableTypesNodeMajor"],
"internalChecksFilter": "strict",
"labels": ["dependencies"],
"minimumReleaseAge": "3 days",
"packageRules": [
{
"allowedVersions": "<0.25",
"matchPackageNames": ["typedoc"]
},
{
"allowedVersions": "<5.5",
"matchPackageNames": ["typescript"]
}
],
"postUpdateOptions": ["pnpmDedupe"]
}
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
fail-fast: false
matrix:
node_version:
- 16.14.0
- 18.x
- 22.x
- latest
name: Build

on:
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/docs-release.yml

This file was deleted.

Loading

0 comments on commit 7935007

Please sign in to comment.