Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
cancel-previous-workflows:
runs-on: macos-latest
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.9.1
Expand Down
78 changes: 39 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
workflow_dispatch:

jobs:
build-20:
name: build (20)
runs-on: macos-latest
build-22:
name: build (22)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -38,13 +38,13 @@ jobs:
uses: actions/cache@v4
with:
path: ./lib
key: ${{ runner.os }}-node-20-build-${{ github.sha }}
key: ${{ runner.os }}-node-22-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-20
${{ runner.os }}-node-22-build-

build-22:
name: build (22)
runs-on: macos-latest
build-24:
name: build (24)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: 'pnpm'

- name: Install dependencies
Expand All @@ -73,14 +73,14 @@ jobs:
uses: actions/cache@v4
with:
path: ./lib
key: ${{ runner.os }}-node-22-build-${{ github.sha }}
key: ${{ runner.os }}-node-24-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-22
${{ runner.os }}-build-24-

test-unit:
name: test (unit)
needs: build-20
runs-on: macos-latest
needs: build-22
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -100,9 +100,9 @@ jobs:
uses: actions/cache@v4
with:
path: ./lib
key: ${{ runner.os }}-node-20-build-${{ github.sha }}
key: ${{ runner.os }}-node-22-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-20-build-
${{ runner.os }}-node-22-build-

- name: Install dependencies
run: pnpm install
Expand All @@ -113,10 +113,10 @@ jobs:
- name: Unit tests
run: pnpm test:unit

test-node-20:
name: test (node.js) (20)
needs: build-20
runs-on: macos-latest
test-node:
name: test (node.js) (22)
needs: build-22
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -136,20 +136,20 @@ jobs:
uses: actions/cache@v4
with:
path: ./lib
key: ${{ runner.os }}-node-20-build-${{ github.sha }}
key: ${{ runner.os }}-node-22-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-20-build-
${{ runner.os }}-node-22-build-

- name: Install dependencies
run: pnpm install

- name: Node.js tests
run: pnpm test:node

test-node-22:
name: test (node.js) (22)
needs: build-22
runs-on: macos-latest
test-node-24:
name: test (node.js) (24)
needs: build-24
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -162,16 +162,16 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 24
cache: 'pnpm'

- name: Restore build cache
uses: actions/cache@v4
with:
path: ./lib
key: ${{ runner.os }}-node-22-build-${{ github.sha }}
key: ${{ runner.os }}-node-24-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-22-build-
${{ runner.os }}-node-24-build-

- name: Install dependencies
run: pnpm install
Expand All @@ -180,9 +180,9 @@ jobs:
run: pnpm test:node

test-e2e:
name: test (e2e) (20)
needs: build-20
runs-on: macos-latest
name: test (e2e) (22)
needs: build-22
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -206,8 +206,8 @@ jobs:

test-browser:
name: test (browser)
needs: build-20
runs-on: macos-latest
needs: build-22
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -227,9 +227,9 @@ jobs:
uses: actions/cache@v4
with:
path: ./lib
key: ${{ runner.os }}-node-20-build-${{ github.sha }}
key: ${{ runner.os }}-node-22-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-20-build-
${{ runner.os }}-node-22-build-

- name: Install dependencies
run: pnpm install
Expand All @@ -249,8 +249,8 @@ jobs:

test-native:
name: test (react-native)
needs: build-20
runs-on: macos-latest
needs: build-22
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -270,9 +270,9 @@ jobs:
uses: actions/cache@v4
with:
path: ./lib
key: ${{ runner.os }}-node-20-build-${{ github.sha }}
key: ${{ runner.os }}-node-22-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-node-20-build-
${{ runner.os }}-node-22-build-

- name: Install dependencies
run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# Checks the library's compatibility with different
# TypeScript versions to discover type regressions.
typescript:
runs-on: macos-latest
runs-on: ubuntu-latest
# Skip TypeScript compatibility check on "main".
# A merged pull request implies passing "typescript" job.
if: github.ref != 'refs/heads/main'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
action:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
publish:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:

release:
needs: [build]
runs-on: macos-latest
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
examples:
if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }}
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/typescript-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
compare:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -31,7 +31,7 @@ jobs:
echo "rc_version=$rc_major_minor" >> $GITHUB_OUTPUT

test:
runs-on: macos-latest
runs-on: ubuntu-latest
# Skip TypeScript compatibility check on "main".
# A merged pull request implies passing "typescript" job.
if: ${{ needs.compare.outputs.latest_version != needs.compare.outputs.rc_version }}
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v24
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
"msw": "cli/index.js"
},
"engines": {
"node": ">=18"
"node": ">=22"
},
"scripts": {
"start": "tsup --watch",
Expand Down Expand Up @@ -247,7 +247,7 @@
"dependencies": {
"@inquirer/confirm": "^6.0.11",
"@msw/url": "^0.1.0",
"@mswjs/interceptors": "^0.41.4",
"@mswjs/interceptors": "^0.41.7",
"@open-draft/deferred-promise": "^3.0.0",
"@types/statuses": "^2.0.6",
"cookie": "^1.1.1",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading