Skip to content

Commit 2f520bf

Browse files
Set Node.js floor to 24 (#5)
Add engines.node >= 24, cover Node 24 in the CI matrix, and state the floor in README and AGENTS.md.
1 parent 3028f86 commit 2f520bf

4 files changed

Lines changed: 31 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [24]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- uses: oven-sh/setup-bun@v2
20+
- run: bun install --frozen-lockfile
21+
- run: bun run check

‎AGENTS.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ The package ships TypeScript source on npm as `@corbits/oauth-core`:
4747
`exports` points at `src/index.ts`, there is no build step and no `dist/`.
4848
Consumers install the published package (`bun add @corbits/oauth-core` or
4949
`npm install @corbits/oauth-core`) on Bun >= 1.2, which runs the source
50-
as-is. A release is a version bump followed by
51-
`npm publish --access public` with no other preparation.
50+
as-is. Node.js >= 24 is the engines floor for published-dist consumers;
51+
native Node does not load this extensionless TypeScript source. A release
52+
is a version bump followed by `npm publish --access public` with no other
53+
preparation.

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ bun add @corbits/oauth-core
1717
npm install @corbits/oauth-core
1818
```
1919

20-
The package ships TypeScript source and needs no build step. It requires
21-
Bun >= 1.2, which consumes the TypeScript source directly.
20+
The package ships TypeScript source and needs no build step. Bun >= 1.2
21+
consumes the TypeScript source directly. Node.js >= 24 is the engines
22+
floor for published-dist consumers — native Node does not load this
23+
extensionless TypeScript source as-is.
2224

2325
## Usage
2426

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"typescript-eslint": "8.42.0"
4747
},
4848
"engines": {
49-
"bun": ">=1.2.0"
49+
"bun": ">=1.2.0",
50+
"node": ">=24"
5051
},
5152
"repository": {
5253
"type": "git",

0 commit comments

Comments
 (0)