Skip to content

Commit 1a8ffbf

Browse files
authored
feat: upgrade to node 22 (#24)
BREAKING CHANGE: upgrade to node 22
1 parent cbf5c54 commit 1a8ffbf

13 files changed

+15998
-14603
lines changed

.github/workflows/package.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,27 @@ on:
1616
type: boolean
1717

1818
jobs:
19+
optimize_ci:
20+
runs-on: ubuntu-latest
21+
outputs:
22+
skip: ${{ steps.check_skip.outputs.skip }}
23+
steps:
24+
- name: Optimize CI
25+
id: check_skip
26+
uses: withgraphite/graphite-ci-action@main
27+
with:
28+
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
29+
1930
typescript:
31+
needs: [optimize_ci]
32+
if: needs.optimize_ci.outputs.skip == 'false'
2033
uses: skyleague/node-standards/.github/workflows/reusable-typescript.yml@main
2134
secrets:
2235
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2336

2437
release:
25-
needs: [typescript]
38+
needs: [typescript,optimize_ci]
39+
if: needs.optimize_ci.outputs.skip == 'false'
2640
uses: skyleague/node-standards/.github/workflows/reusable-release.yml@main
2741
with:
2842
build_artifact_name: ${{ needs.typescript.outputs.artifact-name }}

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no -- commitlint --edit $1
1+
./node_modules/.bin/commitlint --edit $1

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no -- lint-staged --concurrent=true --allow-empty
1+
./node_modules/.bin/lint-staged --allow-empty

dependabot.yml

-12
This file was deleted.

docs/docusaurus.config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ const config: Config = {
8989
darkTheme: themes.dracula,
9090
},
9191
},
92+
future: {
93+
experimental_faster: true,
94+
},
9295
}
9396

9497
export default config

docs/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
"write-heading-ids": "docusaurus write-heading-ids"
1414
},
1515
"dependencies": {
16-
"@docusaurus/core": "^3.3.2",
17-
"@docusaurus/preset-classic": "^3.3.2",
16+
"@docusaurus/core": "^3.6.3",
17+
"@docusaurus/preset-classic": "^3.6.3",
18+
"@docusaurus/faster": "^3.6.3",
1819
"@mdx-js/react": "^3.0.1",
1920
"prism-react-renderer": "^2.3.1",
2021
"react": "^18.3.1",
2122
"react-dom": "^18.3.1"
2223
},
2324
"devDependencies": {
24-
"@docusaurus/module-type-aliases": "^3.3.2",
25-
"docusaurus-plugin-typedoc-api": "^4.2.0"
25+
"@docusaurus/module-type-aliases": "^3.6.3",
26+
"docusaurus-plugin-typedoc-api": "^4.4.0"
2627
},
2728
"browserslist": {
2829
"production": [">0.5%", "not dead", "not op_mini all"],

docs/src/css/custom.css

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
:root {
2-
--ifm-color-primary: hsl(217, 63%, 46%);
3-
--ifm-color-primary-dark: hsl(217, 63%, 44%);
4-
--ifm-color-primary-darker: hsl(217, 63%, 42%);
5-
--ifm-color-primary-darkest: hsl(217, 63%, 40%)b;
6-
--ifm-color-primary-light: hsl(217, 63%, 48%);
7-
--ifm-color-primary-lighter: hsl(217, 63%, 50%);
8-
--ifm-color-primary-lightest: hsl(217, 63%, 52%);
9-
--ifm-code-font-size: 95%;
10-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
2+
--ifm-color-primary: hsl(217, 63%, 46%);
3+
--ifm-color-primary-dark: hsl(217, 63%, 44%);
4+
--ifm-color-primary-darker: hsl(217, 63%, 42%);
5+
--ifm-color-primary-darkest: hsl(217, 63%, 40%) b;
6+
--ifm-color-primary-light: hsl(217, 63%, 48%);
7+
--ifm-color-primary-lighter: hsl(217, 63%, 50%);
8+
--ifm-color-primary-lightest: hsl(217, 63%, 52%);
9+
--ifm-code-font-size: 95%;
10+
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1111
}
1212

13-
[data-theme='dark'] {
14-
--ifm-color-primary: #eaa22f;
15-
--ifm-color-primary-dark: hsl(217, 63%, 46%);
16-
--ifm-color-primary-darker: hsl(217, 63%, 44%);
17-
--ifm-color-primary-darkest: hsl(217, 63%, 42%);
18-
--ifm-color-primary-light: hsl(217, 54%, 73%);
19-
--ifm-color-primary-lighter: hsl(217, 54%, 75%);
20-
--ifm-color-primary-lightest: hsl(217, 54%, 77%);
21-
--docusaurus-highlighted-code-line-bg: #232933;
22-
}
13+
[data-theme="dark"] {
14+
--ifm-color-primary: #eaa22f;
15+
--ifm-color-primary-dark: hsl(217, 63%, 46%);
16+
--ifm-color-primary-darker: hsl(217, 63%, 44%);
17+
--ifm-color-primary-darkest: hsl(217, 63%, 42%);
18+
--ifm-color-primary-light: hsl(217, 54%, 73%);
19+
--ifm-color-primary-lighter: hsl(217, 54%, 75%);
20+
--ifm-color-primary-lightest: hsl(217, 54%, 77%);
21+
--docusaurus-highlighted-code-line-bg: #232933;
22+
}

examples/.gitkeep

Whitespace-only changes.

lint-staged.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
'*': ['biome check --no-errors-on-unmatched --files-ignore-unknown=true --apply-unsafe'],
2+
'*': ['biome check --no-errors-on-unmatched --files-ignore-unknown=true --write --unsafe'],
33
}

0 commit comments

Comments
 (0)