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 6, 2023
1 parent e66703b commit 4b423ea
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14, 16, 18, 20]
node-version: [18, 20]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.0.0
- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.8.1
with:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ 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:
- uses: actions/setup-node@v3.8.1
with:
Expand All @@ -15,11 +22,12 @@ jobs:
run: |
npm install -g npm
npm --version
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.0.0
- name: Install dependencies
uses: bahmutov/npm-install@v1.8.34
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
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2016–2022 Kenan Yildirim <https://kenany.me/>
Copyright 2016–2023 Kenan Yildirim <https://kenany.me/>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion bench/batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const suite = new Benchmark.Suite();
// 2. Have player 1 play a match versus every other player, in a single batch.
// 3. Get the new rating, deviation, and volatility of player 1.

/* eslint-disable no-console, no-unused-vars */
/* eslint-disable no-console */

suite.add('glicko2-lite', () => {
const players = [];
Expand Down
2 changes: 1 addition & 1 deletion bench/many.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const suite = new Benchmark.Suite();
// 2. Have player 1 play a match versus every other player, one at a time.
// 3. Get the new rating, deviation, and volatility of player 1.

/* eslint-disable no-console, no-unused-vars */
/* eslint-disable no-console */

suite.add('glicko2-lite', () => {
const players = [];
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @property {number} gphij
* @property {number} emmp
* @property {number} score
*/
*/

/**
* @param {number} rating
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"keywords": [
"statistics"
],
"repository": "KenanY/glicko2-lite",
"repository": "github:kenany/glicko2-lite",
"license": "MIT",
"author": "Kenan Yildirim <kenan@kenany.me> (https://kenany.me/)",
"main": "index.js",
"types": "index.d.ts",
"engines": {
"node": "14 || 16 || 18 || >=20"
"node": "18 || >=20"
},
"files": [
"CHANGELOG.md",
Expand All @@ -36,25 +36,25 @@
},
"dependencies": {},
"devDependencies": {
"@kenan/eslint-config": "^10.0.2",
"@kenan/eslint-config": "^11.0.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@tsconfig/node14": "^14.1.0",
"@tsconfig/node18": "^18.2.1",
"@types/almost-equal": "^1.1.0",
"@types/lodash.isfunction": "^3.0.7",
"@types/tape": "^5.6.0",
"almost-equal": "^1.1.0",
"beautify-benchmark": "^0.2.4",
"benchmark": "^2.1.4",
"conventional-changelog-conventionalcommits": "^6.1.0",
"eslint": "^8.47.0",
"eslint": "^8.48.0",
"glicko2": "^1.1.0",
"glicko2.ts": "^1.3.2",
"lodash.isfunction": "^3.0.9",
"rimraf": "^5.0.1",
"semantic-release": "^21.0.9",
"semantic-release": "^21.1.1",
"tape": "^5.6.6",
"type-coverage": "^2.26.0",
"typescript": "^5.1.6"
"type-coverage": "^2.26.2",
"typescript": "^5.2.2"
}
}
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": {
"allowJs": true,
"checkJs": true,
Expand Down

0 comments on commit 4b423ea

Please sign in to comment.