Skip to content

Commit ba7086e

Browse files
fix(deps): update octokit monorepo (major) (#270)
BREAKING CHANGE: Drop support for Node 18 and 21 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wolfy1339 <[email protected]>
1 parent 2f4abf0 commit ba7086e

File tree

7 files changed

+61
-60
lines changed

7 files changed

+61
-60
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
strategy:
1313
matrix:
1414
node_version:
15-
- 18
1615
- 20
16+
- 22
17+
- 24
1718
steps:
1819
- uses: actions/checkout@v4
1920
- name: Use Node.js ${{ matrix.node_version }}
@@ -31,7 +32,7 @@ jobs:
3132
- uses: actions/setup-node@v4
3233
with:
3334
cache: npm
34-
node-version: 18
35+
node-version: lts/*
3536
- run: npm ci
3637
- run: npm run lint
3738
- run: npm run build

.github/workflows/update-prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/setup-node@v4
1212
with:
1313
cache: npm
14-
node-version: 18
14+
node-version: lts/*
1515
- run: npm ci
1616
- run: npm run lint:fix
1717
- uses: gr2m/[email protected]

package-lock.json

Lines changed: 49 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"author": "Gregor Martynus (https://dev.to/gr2m)",
2121
"license": "MIT",
2222
"devDependencies": {
23-
"@octokit/core": "^6.0.1",
24-
"@octokit/tsconfig": "^3.0.0",
23+
"@octokit/core": "^7.0.0",
24+
"@octokit/tsconfig": "^4.0.0",
2525
"@types/js-yaml": "^4.0.5",
2626
"@types/node": "^20.0.0",
2727
"@vitest/coverage-v8": "^3.0.0",
@@ -34,7 +34,7 @@
3434
"vitest": "^3.0.0"
3535
},
3636
"peerDependencies": {
37-
"@octokit/core": ">=5"
37+
"@octokit/core": ">=7"
3838
},
3939
"release": {
4040
"branches": [
@@ -75,6 +75,6 @@
7575
"js-yaml": "^4.1.0"
7676
},
7777
"engines": {
78-
"node": ">=18"
78+
"node": "^20.18.1 || >= 22"
7979
}
8080
}

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export type GetOptions<T> = {
2727
* An object will be merged shallowly. Pass a function for deep merges and custom merge strategies,
2828
* @see https://github.com/probot/octokit-plugin-config/#merging-configuration
2929
*/
30-
defaults?: T | defaultsFunction<T>;
31-
branch?: string;
30+
defaults?: T | defaultsFunction<T> | undefined;
31+
branch?: string | undefined;
3232
};
3333

3434
export type GetResult<T> = {

src/util/get-config-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Options = {
77
owner: string;
88
repo: string;
99
path: string;
10-
ref?: string;
10+
ref?: string | undefined;
1111
};
1212

1313
const SUPPORTED_FILE_EXTENSIONS = ["json", "yml", "yaml"];

src/util/get-config-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Options = {
77
owner: string;
88
repo: string;
99
path: string;
10-
branch?: string;
10+
branch?: string | undefined;
1111
};
1212

1313
/**

0 commit comments

Comments
 (0)