Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
edee0ad
Add missing wrapper hooks and standardize APIs (#7)
htunnicliff Sep 10, 2024
b2c91cf
5.0.0-rc.0
htunnicliff Sep 10, 2024
0e88eee
Add `RequestTypes` utility back
htunnicliff Sep 10, 2024
59de04a
5.0.0-rc.1
htunnicliff Sep 10, 2024
43b6749
Remove main and module fields
htunnicliff Sep 10, 2024
083ccdd
5.0.0-rc.2
htunnicliff Sep 10, 2024
80356df
Update exports
htunnicliff Sep 10, 2024
db0fdd4
5.0.0-rc.3
htunnicliff Sep 10, 2024
5ca529c
Make more exports changes
htunnicliff Sep 10, 2024
89fe25d
5.0.0-rc.4
htunnicliff Sep 10, 2024
6d3a846
Change package to commonjs
htunnicliff Sep 10, 2024
f32586a
5.0.0-rc.5
htunnicliff Sep 10, 2024
4e7e872
Ignore no resolution
htunnicliff Sep 10, 2024
aa7df6c
5.0.0-rc.6
htunnicliff Sep 10, 2024
bede2f7
Update exports
htunnicliff Sep 10, 2024
a069e0f
5.0.0-rc.7
htunnicliff Sep 10, 2024
3495eef
Revert to ESM-only
htunnicliff Sep 10, 2024
0e96cd6
5.0.0-rc.8
htunnicliff Sep 10, 2024
e46a82d
Add module and types to package.json
htunnicliff Sep 10, 2024
ffd4ccb
5.0.0-rc.9
htunnicliff Sep 10, 2024
0e711eb
5.0.0-rc.10
htunnicliff Sep 10, 2024
47a9401
Switch back to ESM-only
htunnicliff Sep 10, 2024
5a8ce45
5.0.0-rc.11
htunnicliff Sep 10, 2024
5fbda5a
Repair broken openapi-fetch types
htunnicliff Sep 10, 2024
613f589
5.0.0-rc.12
htunnicliff Sep 10, 2024
01cad7a
Add missing support for boolean mutate argument
htunnicliff Sep 10, 2024
07698a7
Add test for mutate promise types
htunnicliff Sep 10, 2024
0574cf1
Add key matcher docs
htunnicliff Sep 10, 2024
bcd0b3e
Add memoization hooks
htunnicliff Sep 10, 2024
5b45135
Add debug values
htunnicliff Sep 10, 2024
5f3d37c
5.0.0-rc.13
htunnicliff Sep 10, 2024
b9bcba5
Include prefix in debug values
htunnicliff Sep 10, 2024
2af9169
5.0.0-rc.14
htunnicliff Sep 10, 2024
936306b
Add links to swr documentation
htunnicliff Sep 11, 2024
5a6c075
5.0.0-rc.15
htunnicliff Sep 11, 2024
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
33 changes: 17 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,33 @@ on: [push]
jobs:
build:
name: Build and Test

runs-on: ubuntu-latest

strategy:
matrix:
node: [18, 20, 22]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.4.0

- name: Setup Node.js
- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
node-version: ${{ matrix.node }}

- name: Install dependencies
run: pnpm install

- name: Verify formatting
run: pnpm format:check
run: npm ci

- name: Build
run: pnpm build
run: npm run build

- name: Test
run: pnpm test
run: npm test

- name: Check exports
run: npm run exports:check

- name: Check types
run: npm run types:check

- name: Check formatting
run: npm run format:check
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lint-staged
vitest --run --changed --typecheck
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js,ts,json,md}": ["eslint", "prettier --write"]
}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Save exact versions
save-exact=true
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
pnpm-lock.yaml
**/__test__/fixtures/*
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
{}
3 changes: 1 addition & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
nodejs 20.15.0
pnpm 9.4.0
nodejs lts
Loading