Skip to content
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

BREAKING CHANGE: Support MSW 2.0 #122

Merged
merged 37 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b106c13
Breaking change: Support MSW 2.0
yannbf Oct 23, 2023
19a6e68
update example to use MSW 2.0 handlers
yannbf Oct 24, 2023
b3ed3b1
temporarily disable tests in release workflow
yannbf Oct 24, 2023
06f0c92
update jest config to pass tests
mattcosta7 Nov 28, 2023
e28f7b7
Merge remote-tracking branch 'upstream/main' into feat/support-msw-2.0
mattcosta7 Nov 28, 2023
7ea6645
fix path
mattcosta7 Nov 28, 2023
f80e255
worker
mattcosta7 Nov 28, 2023
15257ac
alias msw/native
mattcosta7 Nov 28, 2023
c7c8a80
update peer dependency range
yannbf Jan 4, 2024
bf62ea8
upgrade example storybook
yannbf Jan 4, 2024
37dfc82
fix: use conditional exports (#134)
kettanaito Jan 29, 2024
3cfb456
bring back tests
yannbf Jan 29, 2024
9cedceb
Filter requests that are not relevant to the user
yannbf Jan 29, 2024
0f49e5c
make sure to reset the handlers
yannbf Jan 29, 2024
7ca8425
feat!(msw-addon): fix package exports and generate esm build (#138)
ChristianMurphy Feb 21, 2024
7f91bea
fix(loader.ts): fix possible undefined (#141)
AlexMunoz Mar 6, 2024
49f8028
update auto
yannbf Mar 6, 2024
dd2c917
update to yarn 4
yannbf Mar 6, 2024
c14e003
upgrade chromatic
yannbf Mar 6, 2024
4c6d953
upgrade CI actions
yannbf Mar 6, 2024
7a608cc
fix return types
yannbf Mar 27, 2024
cad5197
add yarn binary
yannbf Mar 27, 2024
68fe0ce
fix jest script
yannbf Mar 27, 2024
a97567c
fix chromatic script
yannbf Mar 27, 2024
9f4c631
fix chromatic script
yannbf Mar 27, 2024
a5256b9
update package.json files
yannbf Mar 27, 2024
dc531d0
refactor tsup config
yannbf Mar 27, 2024
fd4358f
remove unnecessary dependency
yannbf Mar 27, 2024
dfa57d7
temp: downgrade to yarn1
yannbf Mar 27, 2024
dcca74c
export applyRequestHandlers
yannbf Mar 27, 2024
513090e
update docs [skip ci]
yannbf Mar 27, 2024
60b211e
update tests
yannbf Apr 14, 2024
61d20b7
upgrade to Storybook 8
yannbf Apr 15, 2024
691d424
improve documentation on portable stories
yannbf Apr 15, 2024
c4f877b
deprecate mswDecorator
yannbf Apr 15, 2024
133be34
deprecate msw parameter as an array
yannbf Apr 15, 2024
42db187
migrate docs example to vite (#128)
yannbf Apr 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: yarn install --immutable

- name: Build addon
run: yarn workspace msw-storybook-addon build

- name: Publish to Chromatic
uses: chromaui/action@v1
uses: chromaui/action@latest
with:
workingDir: ./packages/docs
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
6 changes: 3 additions & 3 deletions .github/workflows/demo-tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: 'Tests for Demos'
on: push
jobs:
jest:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build addon
run: yarn workspace msw-storybook-addon build
- name: Test Demos
run: yarn workspace msw-storybook-docs test --colors
run: yarn workspace msw-storybook-docs test
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea

# Yarn berry
/**/.yarn/*
!/**/.yarn/releases
!/**/.yarn/plugins
!/**/.yarn/sdks
!/**/.yarn/versions
/**/.pnp.*