Skip to content

Variant handlers

Compare
Choose a tag to compare
@javierbrea javierbrea released this 05 Jul 11:19
· 271 commits to master since this release
2ffe8b1

core

[3.5.0]

Added

  • feat(#335): Pass only response property from variants to route variant handlers having the "version" property defined as "4". If it has another value, pass the whole variant object (for backward compatibility)
  • feat(#336): Add "Json" and "Middleware" variant handlers.
  • feat: Support defining the response preview in the v4 handlers as "preview" property. Keep "plainResponsePreview" for backward compatibility in old handlers.
  • feat: Support "deprecated" property in route handlers. Add an alert whenever any route variant uses a deprecated handler

Changed

  • feat: Log requests in the middleware added by the Mock class, so it has not to be logged in every different handler.

main

[3.5.0]

Changed

  • chore(deps): Update core dependency to v3.5.0
  • chore(deps): Update plugin-proxy dependency to v3.0.0

plugin-proxy

[3.0.0]

Changed

  • feat: Add routes handler "proxy-v4" using new handlers API released on @mocks-server/[email protected]. Keep old "legacy" handler for backward compatibility.
  • chore(deps): Require @mocks-server/core >=3.5.0 in peerDependencies

logger

[1.1.0]

Changed

  • feat: Increase winston-array-transport maxEventListeners

admin-api-client

[5.0.2]

Changed

  • refactor: Rename fetch variable into crossFetch

cypress-commands

[4.0.2]

Changed

  • chore(deps): Update @mocks-server/admin-api-client