Skip to content

Commit

Permalink
feat: drop Node.js v14 and v16
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Node.js v14 and v16 are no longer supported.
  • Loading branch information
kenany committed Sep 21, 2023
1 parent dc4516b commit 329c91b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 20 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: nodejs
on: [pull_request, push]
name: Build
on: [push, pull_request, merge_group]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14, 16, 18]
node-version: [18, 20]
os: [ubuntu-latest]
steps:
- name: Node.js ${{ matrix.node-version }}
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
name: release
name: Release
on:
push:
branches:
- master
permissions:
contents: read
jobs:
release:
name: release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
steps:
- name: Node.js
- name: Set up Node.js
uses: actions/setup-node@v3.8.1
with:
node-version: 18
node-version: 20
- name: Update npm
run: |
npm install -g npm
npm --version
- uses: actions/checkout@v3.6.0
- name: Checkout code
uses: actions/checkout@v4.0.0
- name: Install dependencies
uses: bahmutov/npm-install@v1.8.34
uses: bahmutov/npm-install@v1.8.35
with:
useLockFile: false
- run: npm audit signatures
- name: Release
run: npm run release
env:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock = false
provenance = true
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [
"crypto"
],
"repository": "KenanY/get-random-values",
"repository": "github:kenany/get-random-values",
"license": "MIT",
"author": "Kenan Yildirim <kenan@kenany.me> (https://kenany.me/)",
"main": "index.js",
Expand All @@ -20,7 +20,7 @@
"test": "test"
},
"engines": {
"node": "14 || 16 || >=18"
"node": "18 || >=20"
},
"scripts": {
"clean": "rimraf --glob test/**/*.d.ts *.d.ts",
Expand All @@ -38,21 +38,21 @@
"global": "^4.4.0"
},
"devDependencies": {
"@kenan/eslint-config": "^10.0.2",
"@kenan/eslint-config": "^11.0.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@tsconfig/node14": "^14.1.0",
"@tsconfig/node18": "^18.2.2",
"@types/lodash.isfunction": "^3.0.7",
"@types/tape": "^5.6.0",
"conventional-changelog-conventionalcommits": "^6.1.0",
"eslint": "^8.47.0",
"@types/tape": "^5.6.1",
"conventional-changelog-conventionalcommits": "^7.0.2",
"eslint": "^8.49.0",
"is-browser": "^2.1.0",
"lodash.isfunction": "^3.0.9",
"rimraf": "^5.0.1",
"semantic-release": "^21.0.9",
"semantic-release": "^22.0.1",
"tape": "^5.6.6",
"type-coverage": "^2.26.0",
"typescript": "^5.1.6"
"type-coverage": "^2.26.3",
"typescript": "^5.2.2"
},
"browser": {
"crypto": false
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node14/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"lib": ["es2020", "dom"],
"allowJs": true,
Expand Down

0 comments on commit 329c91b

Please sign in to comment.