Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vite-plugin-mock-dev-server

pengzhanbo20.4kMIT1.8.5TypeScript support: included

Vite Plugin for API mock dev server.

vite, plugin, vite-plugin, mock, mock-server, development

readme

vite-plugin-mock-dev-server

Vite Plugin for API mock dev server.

npm node-current npm peer dependency version npm
GitHub Workflow Status fossa status

Features

  • ⚡️ Lightweight, Flexible, Fast.
  • 🧲 Not injection-based, non-intrusive to client code.
  • 💡 ESModule/commonjs.
  • 🦾 Typescript.
  • 🔥 HMR
  • 🏷 Support .[cm]?js / .ts / .json / .json5.
  • 📦 Auto import mock file.
  • 🎨 Support any lib, like mockjs, or do not use it.
  • 📥 Path rule matching, request parameter matching.
  • ⚙️ Support Enabled/Disabled any one of the API mock.
  • 📀 Supports response body content type such as text/json/buffer/stream.
  • ⚖️ Use server.proxy
  • 🍕 Support viteConfig.define and env in the mock file.
  • ⚓️ Support viteConfig.resolve.alias in the mock file.
  • 🌈 Support vite preview mode.
  • 📤 Support multipart content-type, mock upload file.
  • 📥 Support mock download file.
  • ⚜️ Support WebSocket Mock
  • 🗂 Support building small independent deployable mock services.

Documentation

See the documentation for more details.

Netlify Status

Install

# npm
npm i -D vite-plugin-mock-dev-server
# yarn
yarn add vite-plugin-mock-dev-server
# pnpm
pnpm add -D vite-plugin-mock-dev-server

Usage

vite.config.ts

import { defineConfig } from 'vite'
import mockDevServerPlugin from 'vite-plugin-mock-dev-server'

export default defineConfig({
  plugins: [
    mockDevServerPlugin(/* plugin options */),
  ],
  // The fields defined here can also be used in mock.
  define: {},
  server: {
    // plugin will read `server.proxy`
    proxy: {
      '^/api': { target: 'http://example.com' }
    }
  }
})

The plugin will read the configuration of server.proxy or options.prefix, and enable mock matching for matched URLs.

The plugin will also read the define configuration, which supports direct use in mock files.

Edit Mock File

By default, write mock data in the mock directory of your project's root directory:

mock/**/*.mock.ts :

import { defineMock } from 'vite-plugin-mock-dev-server'

export default defineMock({
  url: '/api/test',
  body: { a: 1, b: 2 }
})

LICENSE

The plugin is licensed under the MIT License

FOSSA Status

changelog

1.8.5 (2025-04-10)

Features

  • update mime-types to 3.0.1 (618774d)

1.8.4 (2025-02-07)

Performance Improvements

1.8.3 (2024-12-15)

Features

  • bump path-to-regexp to [@6](https://github.com/6).3.0 (#105) (34524a2)

1.8.2 (2024-12-07)

Bug Fixes

  • rename isObject to isPlainObject, close #104 (9ee63e8)

1.8.1 (2024-12-06)

Features

  • support parse DELETE request body (2d854cc)

Performance Improvements

1.8.0 (2024-10-06)

Features

  • add support for mock Server-Sent-Events (#101) (3a088fc)

1.7.3 (2024-09-24)

Bug Fixes

Performance Improvements

1.7.2 (2024-09-16)

Performance Improvements

1.7.1 (2024-08-14)

Bug Fixes

  • incorrect filepath resolution during dynamic import (#91) (be65433)

Performance Improvements

1.7.0 (2024-08-11)

Features

Performance Improvements

1.6.1 (2024-07-29)

Bug Fixes

  • no such file or directory with cwd option (#88) (d22004b)

1.6.0 (2024-07-25)

Features

Performance Improvements

1.5.1 (2024-06-30)

Performance Improvements

1.5.0 (2024-3-27)

Features

  • Add bodyParserOptions option for configuring co-body (close #76) (23b4dff)

Performance Improvements

1.4.7 (2024-1-17)

Bug Fixes

  • Optimize no proxy configured, add wsPrefix check (ec57504)

1.4.6 (2024-1-17)

Bug Fixes

  • esbuild define deep stringify fail (#71) (d0f51bc)

Performance Improvements

  • constant variable provide check (2af011c)
  • optimize no proxy configured, add wsPrefix check (f1acafd)

1.4.5 (2024-1-9)

Features

Performance Improvements

  • esbuild target node>=16 (b3f5ae9)
  • update cjs deprecate info (b98c133)

1.4.3 (2023-12-14)

Bug Fixes

  • file recursively generated in the absolute path fails (#65) (cac1411)

Performance Improvements

1.4.2 (2023-12-14)

Bug Fixes

  • remove optional deps and change to build-in (#65) (c02e387)

Features

1.4.1 (2023-12-13)

Bug Fixes

Features

1.4.0 (2023-12-5)

Features

1.3.4 (2023-09-22)

1.3.4-beta.1 (2023-09-22)

Bug Fixes

  • can't set headers after they are sent. (027b1c3)
  • simplify judgment conditions (6718002)
  • user configuration execution time (52c7d2d)
  • user configuration is preferred (3050a00)

1.3.4-beta.0 (2023-09-21)

Bug Fixes

  • clear request stream cache (1ef33d5)
  • consumed request stream causing proxy failure (#52) (dc1fa64)
  • write request stream chunk to the buffer (#52) (1ffe73c)

1.3.3 (2023-09-11)

Bug Fixes

  • adjust priority of /(.*) and /path/(.*)(#48) (8f43318)

1.3.2 (2023-09-11)

Features

Performance Improvements

  • match the priority of the rule (3adc476)

1.3.1 (2023-08-26)

Features

  • add defineMockData() to support share mock data (594777d)

1.3.0 (2023-07-26)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.3.4-beta.1 (2023-09-22)

Bug Fixes

  • can't set headers after they are sent. (027b1c3)
  • simplify judgment conditions (6718002)
  • user configuration execution time (52c7d2d)
  • user configuration is preferred (3050a00)

1.3.4-beta.0 (2023-09-21)

Bug Fixes

  • clear request stream cache (1ef33d5)
  • consumed request stream causing proxy failure (#52) (dc1fa64)
  • write request stream chunk to the buffer (#52) (1ffe73c)

1.3.3 (2023-09-11)

Bug Fixes

  • adjust priority of /(.*) and /path/(.*)(#48) (8f43318)

1.3.2 (2023-09-11)

Features

Performance Improvements

  • match the priority of the rule (3adc476)

1.3.1 (2023-08-26)

Features

  • add defineMockData() to support share mock data (594777d)

1.3.0 (2023-07-26)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.3.4-beta.0 (2023-09-21)

Bug Fixes

  • clear request stream cache (1ef33d5)
  • consumed request stream causing proxy failure (#52) (dc1fa64)
  • write request stream chunk to the buffer (#52) (1ffe73c)

1.3.3 (2023-09-11)

Bug Fixes

  • adjust priority of /(.*) and /path/(.*)(#48) (8f43318)

1.3.2 (2023-09-11)

Features

Performance Improvements

  • match the priority of the rule (3adc476)

1.3.1 (2023-08-26)

Features

  • add defineMockData() to support share mock data (594777d)

1.3.0 (2023-07-26)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.3.3 (2023-09-11)

Bug Fixes

  • adjust priority of /(.*) and /path/(.*)(#48) (8f43318)

1.3.2 (2023-09-11)

Features

Performance Improvements

  • match the priority of the rule (3adc476)

1.3.1 (2023-08-26)

Features

  • add defineMockData() to support share mock data (594777d)

1.3.0 (2023-07-26)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.3.2 (2023-09-11)

Features

Performance Improvements

  • match the priority of the rule (3adc476)

1.3.1 (2023-08-26)

Features

  • add defineMockData() to support share mock data (594777d)

1.3.0 (2023-07-26)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.3.1 (2023-08-26)

Features

  • add defineMockData() to support share mock data (594777d)

1.3.0 (2023-07-26)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.3.0 (2023-07-26)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.3.0-beta.0 (2023-07-26)

Features

  • add mock interfacelog (0dea00b)
  • update mock interfacelog default value (81c7718)

Performance Improvements

  • optimize cors options by default (33e6322)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.2.1 (2023-06-19)

Bug Fixes

  • rollback formidable@3 to 2.1.1 to resolve commonjs startup failure (#34) (55951fb)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.2.0 (2023-06-19)

Features

  • add cors support for consistent behavior with Vite (f11e30d)

Performance Improvements

  • optimize middleware (8196b4a)
  • optimize transform data filter (91d7aaa)
  • validator: replace === to Object.is() (73a5a29)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

  • deal with execution error (0c91629)

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

Features

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)

1.1.16 (2023-05-23)

Bug Fixes

  • build: incorrectly recognize define:import as third-party package (d3f2ced)

1.1.15 (2023-05-23)

Bug Fixes

1.1.14 (2023-05-22)

Features

  • add delayed response time range support (d6f2244)
  • validator: support deep object comparison for inclusion relationship (a293e5f)

Performance Improvements

  • Replace url.parse to new URL() (21044b3)

1.1.13 (2023-05-18)

Performance Improvements

1.1.12 (2023-05-18)

Bug Fixes

  • transform: empty validator sorting (b114023)

Features

Performance Improvements

  • optimize websocket mock options (76db7fb)

1.1.11 (2023-05-11)

Bug Fixes

  • transform: priority sorting error (#28) (9cdcf59)

1.1.10 (2023-05-10)

Bug Fixes

  • build: mock files named exports resolved fail (b11320a)
  • mock files named exports resolved fail (56967fe)
  • Optimize the path matching priority (3f0ba10)

1.1.9 (2023-05-04)

Bug Fixes

Performance Improvements

  • optimize resolved mock file (d97c9ac)

1.1.8 (2023-05-02)

Performance Improvements

1.1.7 (2023-05-01)

1.1.6 (2023-04-30)

Features

Performance Improvements

  • optimize esbuild compile (3c8916a)

1.1.5 (2023-04-26)

Performance Improvements

  • optimize startsWith to === (0908397)
  • Optimize the sorting of the mockList (0a79516)

1.1.4 (2023-04-25)

Features

  • validator support cookies (1f1c8ff)

1.1.3 (2023-04-24)

Bug Fixes

  • correctly exclude all ws when filtering proxy (c4c2ac7)

Features

  • support type option, text/json/buffer (3ac25f1)

1.1.2 (2023-04-22)

Performance Improvements

  • optimize cookies options (230e41c)
  • Perfect type declaration (fa16506)

1.1.1 (2023-04-22)

Bug Fixes

  • perf real delay response option (72edd1e)

1.1.0 (2023-04-22)

Features

  • add cookies parse support (51ac8aa)
  • add cookies parse support to build (6d69ead)

1.0.7 (2023-03-22)

Features

1.0.6 (2023-03-21)

Performance Improvements

  • Optimize exclude and remove src (d3c602a)
  • Optimize exclude and remove test (30f2694)

1.0.5 (2023-03-16)

Bug Fixes

Performance Improvements

  • build: add cors to excludeDeps (a231646)

1.0.4 (2023-03-09)

Performance Improvements

  • optimize mock transformer (e6d46e1)

1.0.3 (2023-03-09)

Bug Fixes

  • MockLoader: empty mock file compile fail #19 (0f44752)

1.0.2 (2023-03-05)

Features

  • add 'cors' to the deployable mock server (652a438)

1.0.1 (2023-03-04)

1.0.0 (2023-03-04)

Features

0.4.3 (2023-02-27)

Features

Performance Improvements

  • optimize types declaration (ba948ed)

0.4.2 (2023-02-23)

Bug Fixes

  • HMR failure caused by posix in windows (7dda6fc)
  • HMR failure caused by posix in windows (607e5cb)

0.4.1 (2023-02-23)

Bug Fixes

  • modified content-type match error (16d55ed)

Features

  • add cache-control header to clear cache (5a8ce24)

0.4.0 (2023-02-20)

Features

  • add automatic statusText acquisition (7d190c2)

0.3.21 (2023-02-15)

Bug Fixes

  • build: empty-import-meta warning (#13) (3a8e854)
  • TS6307: File '/xxx/vite-plugin-mock-dev-server/package.json' is not listed within the file list of project '/xxx/vite-plugin-mock-dev-server/tsconfig.esm.json'. Projects must list all files or use an 'include' pattern. (8a4ae76)

Features

  • validator: supports referer query (a11db47)

0.3.20 (2023-02-08)

Features

0.3.19 (2023-02-07)

Bug Fixes

0.3.18 (2023-02-03)

Bug Fixes

  • build: entryCode formidableOptions options (38c8fe9)
  • build: exclude node modules (fd5b823)

0.3.17 (2023-02-02)

  • feat: add build options types (5a814a3)
  • feat: add generator server (65ee84f)
  • docs(readme): add mock-services (824afe6)
  • docs(vitepress): add mock server doc (deca4f1)
  • ci: fix release workflow (ff66c21)

0.3.16 (2023-01-28)

Performance Improvements

  • optimize matching and validator priority (72cb7e7)

0.3.15 (2023-01-07)

0.3.14 (2023-01-06)

Bug Fixes

  • remove cypress from the exclude list (#4) (0e0f2d9)

0.3.13 (2023-01-04)

Bug Fixes

  • degraded formidable v2 to support cjs&esm (ffe0a8b)

0.3.12 (2023-01-03)

Bug Fixes

0.3.11 (2023-01-03)

Features

0.3.10 (2023-01-03)

Features

  • support multipart content-type (ed1fdc0)

0.3.9 (2023-01-03)

Bug Fixes

  • parseReqBody: no parsed unknown content-type (82c889a)

0.3.8 (2023-01-03)

0.3.7 (2023-01-03)

Bug Fixes

  • MockLoader: Expected value for define "xxx" to be a string, got boolean instead (37bd890)

0.3.6 (2022-12-21)

0.3.5 (2022-12-15)

Bug Fixes

  • 修复 cjs下 importMetaUrl 取值为空 (327ee52)

0.3.4 (2022-12-14)

0.3.3 (2022-12-14)

Bug Fixes

0.3.2 (2022-11-18)

0.3.1 (2022-11-18)

Features

0.3.0 (2022-11-10)

Bug Fixes

Features

  • 优化mock模块加载逻辑 (ba53aea)

0.2.3 (2022-11-03)

Features

  • 添加 json/json5 文件支持 (ecb9e8a)

0.2.2 (2022-11-03)

Features

  • 更新插件执行时机 (de2b56f)

0.2.1 (2022-11-02)

0.2.0 (2022-11-02)

Bug Fixes

  • 修复mock deps 监听不正确 (b6a456e)

Features

  • 补充示例,更新readme (51679e7)
  • 添加 options.exclude (b9f47bc)
  • 重构文件监听、文件构建 (991e53c)

0.1.1 (2022-11-01)

Bug Fixes

  • 修复mock文件无法正确引入外部模块 (f44a9e0)

0.1.0 (2022-10-30)