Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

Static and Text Variant Handlers

Choose a tag to compare

@javierbrea javierbrea released this 29 Jul 12:55
· 181 commits to master since this release
dcf9113

core [3.7.0]

Added

  • feat(#366): Add "text" Variant Handler
  • feat: Add check option to collections.select method. When set to true, the method returns a promise that is resolved when the collection exists and it is used by the mock. Otherwise the promise is rejected. It has been implemented with an option to avoid breaking changes.
  • feat(#337): Add "static" Variant Handler
  • feat: Support defining routes without method. In that case, the route will handle all HTTP methods
  • feat: Support method "*" in routes. In that case, the route will handle all HTTP methods.
  • feat: Add "disabled" property to variants. When it is true and the variant is selected, the route will be disabled.
  • feat: Support property router in Variant Handlers. When defined, the router will be mounted using express use instead of specific methods.
  • feat (#369): Add default content-type header to json Variant Handler

Changed

  • feat: Return http methods in lowercase in plain routes. Return only valid http methods.

plugin-admin-api [3.3.0]

Added

  • feat: Add new disabled property of variants to openapi.
  • feat: Support undefined method in variants

main [3.7.0]

Changed

  • chore(deps): Update core dependency to v3.7.0
  • chore(deps): Update plugin-admin-api dependency to v3.3.0