Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged
9 changes: 9 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"trailingComma": "all",
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"sortPackageJson": false,
"ignorePatterns": ["*.md", "*.yml", "*.yaml"]
}
7 changes: 7 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "unicorn", "oxc", "import"],
"categories": {
"correctness": "warn"
}
}
16 changes: 8 additions & 8 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
],
"branches": [ "main" ]
}
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
],
"branches": ["main"]
}
42 changes: 9 additions & 33 deletions abi_registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
{
"runtime": "node",
"target": "12.0.0",
"lts": [
"2019-10-21",
"2020-11-30"
],
"lts": ["2019-10-21", "2020-11-30"],
"future": false,
"abi": "72"
},
Expand All @@ -26,10 +23,7 @@
{
"runtime": "node",
"target": "14.0.0",
"lts": [
"2020-10-27",
"2021-10-19"
],
"lts": ["2020-10-27", "2021-10-19"],
"future": false,
"abi": "83"
},
Expand All @@ -43,10 +37,7 @@
{
"runtime": "node",
"target": "16.0.0",
"lts": [
"2021-10-26",
"2022-10-18"
],
"lts": ["2021-10-26", "2022-10-18"],
"future": false,
"abi": "93"
},
Expand All @@ -60,10 +51,7 @@
{
"runtime": "node",
"target": "18.0.0",
"lts": [
"2022-10-25",
"2023-10-18"
],
"lts": ["2022-10-25", "2023-10-18"],
"future": false,
"abi": "108"
},
Expand All @@ -77,10 +65,7 @@
{
"runtime": "node",
"target": "20.0.0",
"lts": [
"2023-10-24",
"2024-10-22"
],
"lts": ["2023-10-24", "2024-10-22"],
"future": false,
"abi": "115"
},
Expand All @@ -94,10 +79,7 @@
{
"runtime": "node",
"target": "22.0.0",
"lts": [
"2024-10-29",
"2025-10-21"
],
"lts": ["2024-10-29", "2025-10-21"],
"future": false,
"abi": "127"
},
Expand All @@ -111,10 +93,7 @@
{
"runtime": "node",
"target": "24.0.0",
"lts": [
"2025-10-28",
"2026-10-20"
],
"lts": ["2025-10-28", "2026-10-20"],
"future": false,
"abi": "137"
},
Expand All @@ -128,10 +107,7 @@
{
"runtime": "node",
"target": "26.0.0",
"lts": [
"2026-10-28",
"2027-10-20"
],
"lts": ["2026-10-28", "2027-10-20"],
"future": true,
"abi": "144"
},
Expand Down Expand Up @@ -436,4 +412,4 @@
"runtime": "electron",
"target": "42.0.0-alpha.1"
}
]
]
16 changes: 10 additions & 6 deletions getNextTarget.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import semver from 'semver';

export function getNextTarget (runtime, targets) {
const latest = targets.filter((t) => { return t.runtime === runtime }).slice(-1)[0]
const increment = runtime === 'electron' ? 'minor' : 'major'
let next = semver.inc(latest.target, increment)
export function getNextTarget(runtime, targets) {
const latest = targets
.filter((t) => {
return t.runtime === runtime;
})
.slice(-1)[0];
const increment = runtime === 'electron' ? 'minor' : 'major';
let next = semver.inc(latest.target, increment);
// Electron releases appear in the registry in their beta form, sometimes there is
// no active beta line. During this time we need to double bump
if (runtime === 'electron' && semver.parse(latest.target).prerelease.length) {
next = semver.inc(next, 'major')
next = semver.inc(next, 'major');
}
return next
return next;
}
Loading