Skip to content

Commit fe37a4b

Browse files
committed
feat!: drop support for Node v14
1 parent fa3e45a commit fe37a4b

File tree

8 files changed

+121
-60
lines changed

8 files changed

+121
-60
lines changed

.github/ISSUE_TEMPLATE/bug-report---.md

-38
This file was deleted.

.github/ISSUE_TEMPLATE/feature-request---.md

-20
This file was deleted.

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
node: [10.x, 12.x, 14.x]
9+
node: [14.x, 16.x, 20.x]
1010
name: Node ${{ matrix.node }}
1111
steps:
1212
- uses: actions/checkout@v1

.github/workflows/codeql-analysis.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '30 12 * * 2'
22+
23+
jobs:
24+
analyze:
25+
name: Code Q Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript', 'typescript' ]
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v2
40+
41+
# Initializes the CodeQL tools for scanning.
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v1
44+
with:
45+
languages: ${{ matrix.language }}
46+
# If you wish to specify custom queries, you can do so here or in a config file.
47+
# By default, queries listed here will override any specified in a config file.
48+
# Prefix the list here with "+" to use these queries and those in the config file.
49+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
50+
51+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
52+
# If this step fails, then you should remove it and run the build manually (see below)
53+
- name: Autobuild
54+
uses: github/codeql-action/autobuild@v1
55+
56+
# ℹ️ Command-line programs to run using the OS shell.
57+
# 📚 https://git.io/JvXDl
58+
59+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
60+
# and modify them (or add more) to build your code if your project
61+
# uses a compiled language
62+
63+
#- run: |
64+
# make bootstrap
65+
# make release
66+
67+
- name: Perform CodeQL Analysis
68+
uses: github/codeql-action/analyze@v1

.github/workflows/pre-release.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pre-Release
2+
on:
3+
push:
4+
tags:
5+
- 'v*.*.*-beta**'
6+
- 'v*.*.*-rc**'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
name: Pre-Release Creation
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: ncipollo/release-action@v1
17+
with:
18+
prerelease: true
19+
bodyFile: "CHANGELOG.md"

.github/workflows/release.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+'
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
name: Release Creation
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: ncipollo/release-action@v1
16+
with:
17+
bodyFile: "CHANGELOG.md"
18+
token: ${{ secrets.GITHUB_TOKEN }}

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"lint-ci": "standard",
1212
"typescript": "tsd"
1313
},
14+
"engines": {
15+
"node": ">=16"
16+
},
1417
"keywords": [
1518
"fastify",
1619
"fastify-get-head",
@@ -28,7 +31,7 @@
2831
"homepage": "https://github.com/MetCoder95/fastify-get-head",
2932
"license": "MIT",
3033
"devDependencies": {
31-
"@types/node": "^14.14.7",
34+
"@types/node": "^20",
3235
"fastify": "^3.9.2",
3336
"pre-commit": "^1.2.2",
3437
"snazzy": "^9.0.0",

0 commit comments

Comments
 (0)