-
Notifications
You must be signed in to change notification settings - Fork 179
feat!: bump engines
requirement to Node 22
#1167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
0f29014
feat!: bump `engines` requirement to Node 22
erikian 0c804a2
update to follow latest recommendations
erikian 623a3a9
remove unused `nodeGypPath` field from `Rebuilder`
erikian 0fdef91
fix tests
erikian 66d0028
remove default export
erikian 96be16a
update Node version in `release.yml`
erikian 1092517
move ESLint config out of `package.json`
erikian c5dd37d
update `typescript` version
erikian 4de17ce
rename `compile` script to `build`
erikian 6abd627
update imports
erikian 4d92ef9
replace `fs-extra` with `graceful-fs`
erikian 9020d54
update `@typescript-eslint/` deps to fix lint
erikian 676d03e
esm: update imports
erikian 6ded000
esm: replace `__dirname` with `import.meta.dirname`
erikian 987f884
esm: `require` is no longer required
erikian 991cc69
replace `ts-node` with `tsx` to fix tests
erikian 71e77ae
docs: provide both CJS and ESM examples
erikian 5eacf57
update deps and examples
erikian 6f319e7
use `util.promisify` for `graceful-fs` methods
erikian cec3d6c
ci: add documentation build on release (#1184)
erickzhao 7d67d94
build: format docs.yml
VerteDinde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.d.ts | ||
/node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2025, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['mocha', '@typescript-eslint'], | ||
env: { | ||
es6: true, | ||
mocha: true, | ||
node: true, | ||
}, | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], | ||
rules: { | ||
'mocha/no-exclusive-tests': 'error', | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
ignoreRestSiblings: true, | ||
vars: 'all', | ||
}, | ||
], | ||
semi: 'off', | ||
'@typescript-eslint/semi': 'error', | ||
'no-unexpected-multiline': 'error', | ||
}, | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish documentation | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+* | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
environment: docs-publish | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2 | ||
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # tag: v4.2.0 | ||
with: | ||
node-version: 22.12.x | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Build API documentation | ||
run: yarn build:docs | ||
- name: Azure login | ||
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 | ||
with: | ||
client-id: ${{ secrets.AZURE_OIDC_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_OIDC_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_OIDC_SUBSCRIPTION_ID }} | ||
- name: Upload to Azure Blob Storage | ||
uses: azure/cli@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # tag: v2.1.0 | ||
with: | ||
inlineScript: | | ||
az storage blob upload-batch --account-name ${{ secrets.AZURE_ECOSYSTEM_PACKAGES_STORAGE_ACCOUNT_NAME }} -d '$web/rebuild/${{ github.ref_name }}' -s ./docs --overwrite --auth-mode login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,5 @@ node_modules | |
|
||
lib | ||
test-dist | ||
|
||
docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// See also: https://github.com/mochajs/mocha/blob/b720ec1b3ca630a90f80311da391b2a0cdfead4e/example/config/.mocharc.js | ||
{ | ||
"$schema": "https://json.schemastore.org/mocharc", | ||
"color": false, | ||
"extensions": [ | ||
"ts" | ||
], | ||
"import": "tsx", | ||
"spec": ["test/*.ts"] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
22.12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.