-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: adopt the global Fetch API (#1436)
Co-authored-by: Frederik Rabøl <frederik-rm@hotmail.com> Co-authored-by: Christoph Fricke <christoph@frickeonline.de> Co-authored-by: Piotr <hello@piotr.cz> Co-authored-by: Kristján Oddsson <koddsson@github.com> Co-authored-by: thepassle <pascalschilp@gmail.com> Co-authored-by: Kevin Østerkilde <kevin@oesterkilde.dk> Co-authored-by: Laryssa Rocha <laryssa.vrocha@gmail.com> Co-authored-by: Matthew Costabile <mattcosta7@github.com>
- Loading branch information
1 parent
61c220c
commit 1033f65
Showing
440 changed files
with
8,971 additions
and
7,709 deletions.
There are no files selected for viewing
This file contains 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 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,78 @@ | ||
name: compat | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# Validate the package.json exports and emitted CJS/ESM bundles. | ||
exports: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Set up pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7.12 | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Validate package.json exports | ||
run: pnpm check:exports | ||
|
||
- name: Test modules (Node.js) | ||
run: pnpm test:modules:node | ||
|
||
- name: Test modules (browser) | ||
run: pnpm test:modules:browser | ||
|
||
# Checks the library's compatibility with different | ||
# TypeScript versions to discover type regressions. | ||
typescript: | ||
runs-on: macos-latest | ||
# Skip TypeScript compatibility check on "main". | ||
# A merged pull request implies passing "typescript" job. | ||
if: github.ref != 'refs/heads/main' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ts: ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7.12 | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Install TypeScript ${{ matrix.ts }} | ||
run: pnpm add typescript@${{ matrix.ts }} | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Typings tests | ||
run: | | ||
pnpm tsc --version | ||
pnpm test:ts |
This file contains 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 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 |
---|---|---|
@@ -1 +1 @@ | ||
v16.14.0 | ||
v18.14.2 |
This file contains 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.