diff --git a/.github/ISSUE_TEMPLATE/02-issue-nodejs.yml b/.github/ISSUE_TEMPLATE/02-issue-nodejs.yml index 1f50812c6..9d82472c0 100644 --- a/.github/ISSUE_TEMPLATE/02-issue-nodejs.yml +++ b/.github/ISSUE_TEMPLATE/02-issue-nodejs.yml @@ -23,14 +23,14 @@ body: options: - label: I'm using the [latest](https://github.com/mswjs/msw/releases/latest) `msw` version required: true - - label: I'm using Node.js version 14 or higher + - label: I'm using Node.js version 18 or higher required: true - type: input attributes: label: Node.js version description: Specify which Node.js version you're using (`node -v`). - placeholder: i.e. v16.14.0 + placeholder: i.e. v18.14.0 validations: required: true diff --git a/README.md b/README.md index 8616605b7..38edf3573 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ > [!IMPORTANT]\ -> **MSW 2.0 is finally here! 🎉** Read the [Release notes](https://github.com/mswjs/msw/releases/tag/v2.0.0) and please follow the [**Migration guidelines**](https://mswjs.io/docs/migrations/1.x-to-2.x) to upgrade. If you're having any questions while upgrading, please reach out in our [Discord server](https://discord.gg/z29WbnfDC5). +> **MSW 2.0 is finally here! 🎉** Read the [Release notes](https://github.com/mswjs/msw/releases/tag/v2.0.0) and please follow the [**Migration guidelines**](https://mswjs.io/docs/migrations/1.x-to-2.x) to upgrade. If you're having any questions while upgrading, please reach out in our [Discord server](https://kettanaito.com/discord).
@@ -41,8 +41,7 @@ This README will give you a brief overview on the library but there's no better place to start with Mock Service Worker than its official documentation. - [Documentation](https://mswjs.io/docs) -- [**Getting started**](https://mswjs.io/docs/getting-started/install) -- [Recipes](https://mswjs.io/docs/recipes) +- [**Getting started**](https://mswjs.io/docs/getting-started) - [FAQ](https://mswjs.io/docs/faq) ## Examples @@ -51,7 +50,7 @@ This README will give you a brief overview on the library but there's no better ## Browser -- [Learn more about using MSW in a browser](https://mswjs.io/docs/getting-started/integrate/browser) +- [Learn more about using MSW in a browser](https://mswjs.io/docs/integrations/browser) - [`setupWorker` API](https://mswjs.io/docs/api/setup-worker) ### How does it work? @@ -104,7 +103,7 @@ Performing a `GET https://github.com/octocat` request in your application will r ## Node.js -- [Learn more about using MSW in Node.js](https://mswjs.io/docs/getting-started/integrate/node) +- [Learn more about using MSW in Node.js](https://mswjs.io/docs/integrations/node) - [`setupServer` API](https://mswjs.io/docs/api/setup-server) ### How does it work? @@ -178,7 +177,7 @@ it('displays the list of recent posts', async () => { }) ``` -> Don't get overwhelmed! We've prepared a step-by-step [**Getting started**](https://mswjs.io/docs/getting-started/install) tutorial that you can follow to learn how to integrate Mock Service Worker into your project. +> Don't get overwhelmed! We've prepared a step-by-step [**Getting started**](https://mswjs.io/docs/getting-started) tutorial that you can follow to learn how to integrate Mock Service Worker into your project. Despite the API being called `setupServer`, there are no actual servers involved! The name was chosen for familiarity, and the API was designed to resemble operating with an actual server. diff --git a/package.json b/package.json index 7f590d4ce..96a756a44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "msw", - "version": "0.0.0-fetch.rc-24", + "version": "2.0.0", "description": "Seamless REST/GraphQL API mocking library for browser and Node.js.", "main": "./lib/core/index.js", "module": "./lib/core/index.mjs", diff --git a/src/core/index.ts b/src/core/index.ts index 9deaa86d5..d7bf7f968 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -24,6 +24,7 @@ export type { ResponseResolver, ResponseResolverReturnType, AsyncResponseResolverReturnType, + RequestHandlerOptions, DefaultBodyType, DefaultRequestMultipartBody, } from './handlers/RequestHandler'