mswjs / source

Generate MSW request handlers from various sources (HAR files, OpenAPI documents, etc).
https://source.mswjs.io
134 stars 5 forks source link

Migrate to MSW 2.0 #35

Closed kettanaito closed 3 months ago

kettanaito commented 1 year ago

In light of the upcoming 2.0 release of MSW, this library should be ready to be used with that version. I have no plans on releasing this library prior to 2.0 release of MSW.

I don't expect much change during this migration. Mainly, it is to drop custom composition functions and rely on the Fetch API Requests and Responses.

weyert commented 5 months ago

Got some queries about @tapico/msw-webarchive-package and upgrading it to MSW 2.0. I am considering to resolve this ticket instead. Maybe then we could release this package to the public?

kettanaito commented 5 months ago

@weyert, let's do it! 🚀 Updating to MSW 2.0 is a must before we release this, and I can recall a few test suites that this is missing. I think Source should finally become public. I know a lot of people would benefit from it being public. I will give this a final thought before the release.

weyert commented 5 months ago

I will probably pick it up late this week or next week. I will combine the work with a work task

kettanaito commented 5 months ago

@weyert, that sounds perfect. Thank you!

kettanaito commented 4 months ago

The tests we have can use some love. Please, if possible, don't change them while migrating to MSW 2.0, @weyert. Also, let me know if that's still on your radar!

kettanaito commented 3 months ago

Hi, @weyert 👋 Giving you a heads-up that I've opened the PR for this: https://github.com/mswjs/source/pull/38.

kettanaito commented 2 months ago

Released: v0.1.0 🎉

This has been released in v0.1.0!

Make sure to always update to the latest version (npm i @mswjs/source@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.