Skip to content

Releases: mocks-server/main

Improve typings

06 Jun 15:44
6d69923
Compare
Choose a tag to compare
Improve typings Pre-release
Pre-release

admin-api-client [8.0.0-beta.2]

  • feat: Improve TypesScript typings

config [2.0.0-beta.3]

  • feat: Improve TypesScript typings

core [5.0.0-beta.3]

Changed

  • feat: Improve TypesScript typings

Removed

  • feat(BREAKING CHANGE): Do not support creating Plugins without static id

cypress-commands [7.0.0-beta.2]

Changed

  • feat: Improve TypesScript typings

logger [2.0.0-beta.2]

Changed

  • feat: Improve TypesScript typings

main [5.0.0-beta.4]

Changed

  • refactor: Migrate to TypeScript

nested-collections [3.0.0-beta.2]

Changed

  • feat: Improve TypesScript typings

plugin-admin-api [5.0.0-beta.4]

Changed

  • refactor: Migrate to TypeScript

plugin-inquirer-cli [5.0.0-beta.4]

Changed

  • refactor: Migrate to TypeScript

plugin-openapi [3.0.0-beta.4]

Changed

  • feat: Improve TypesScript typings

plugin-proxy [5.0.0-beta.4]

Changed

  • refactor: Migrate to TypeScript

Support openapi example property

29 May 06:35
8881ca8
Compare
Choose a tag to compare

main [4.1.0]

Added

  • feat: Update OpenAPI plugin to 2.1.0. Support example property. (#472)

plugin-openapi [2.1.0]

Added

  • feat: Generate variants from responses with a single example key (#472). Thanks @davidmhewitt!

Changed

  • chore(deps): Update dependencies

admin-api-client [7.0.1]

Changed

  • chore(deps): Update dependencies

admin-api-client-data-provider [6.1.3]

Changed

  • chore(deps): Update dependencies

config [1.4.1]

Changed

  • chore(deps): Update dependencies

core [4.0.2]

Changed

  • chore(deps): Update dependencies

logger [1.1.2]

Changed

  • chore(deps): Update dependencies

plugin-admin-api [4.0.1]

Changed

  • chore(deps): Update dependencies

Config: support nullable arrays and objects

25 May 10:20
7c5a711
Compare
Choose a tag to compare

config [2.0.0-beta.2]

  • feat: Support nullable in options of type 'array' and 'object'
  • feat: Add unknown type to options. They support any type and are not validated

core [5.0.0-beta.2]

  • feat: add MocksServer.Config interface allowing to type the configuration, and to extend it from plugins

main [5.0.0-beta.3]

Changed

  • chore: Upgrade plugins versions

plugin-admin-api [5.0.0-beta.3]

  • chore: Fix peerDependencies

plugin-inquirer-cli [5.0.0-beta.3]

  • chore: Fix peerDependencies

plugin-openapi [3.0.0-beta.3]

  • chore: Fix peerDependencies

plugin-proxy [5.0.0-beta.3]

  • chore: Fix peerDependencies

Fix plugins peerDependencies

24 May 06:55
2c8d55f
Compare
Choose a tag to compare
Pre-release

main [5.0.0-beta.2]

Changed

  • chore: Upgrade plugins versions

plugin-admin-api [5.0.0-beta.2]

  • chore: Fix peerDependencies

plugin-inquirer-cli [5.0.0-beta.2]

  • chore: Fix peerDependencies

plugin-openapi [3.0.0-beta.2]

  • chore: Fix peerDependencies

plugin-proxy [5.0.0-beta.2]

  • chore: Fix peerDependencies

Migrating to TypeScript

23 May 16:57
c067954
Compare
Choose a tag to compare
Pre-release

core [5.0.0-beta.1]

Changed

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

main [5.0.0-beta.1]

Changed

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

admin-api-client [8.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

config [2.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

cypress-commands [7.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

logger [2.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

nested-collections [3.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

plugin-admin-api [5.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

plugin-inquirer-cli [5.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

plugin-openapi [3.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

plugin-proxy [5.0.0-beta.1]

  • chore: Prepublish all unreleased changes. Detailed changelog will be published in next stable release

Fix OpenAPI paths with multiple params

09 Apr 15:51
bf9dd81
Compare
Choose a tag to compare

main

[4.0.1]

Fixed

  • chore(deps): Update OpenAPI plugin to 2.0.1. Fix conversion of paths with multiple parameters in OpenAPI plugin. (#464)
  • chore(deps): Update dependencies

plugin-open-api

[2.0.1]

Fixed

  • fix(#464): Fix conversion of paths with multiple parameters

admin-api-client-data-provider

[6.1.2]

Changed

  • chore(deps): Update dependencies

core

[4.0.1]

Changed

  • chore(deps): Update dependencies

logger

[1.1.1]

Changed

  • chore(deps): Update dependencies

Remove legacy

14 Sep 04:41
6f37a97
Compare
Choose a tag to compare

core [4.0.0]

Removed

  • feat: Remove legacy routesHandlers option
  • feat: Remove legacy core.addRoutesHandler method
  • feat: Remove legacy core.loadMocks method
  • feat: Remove legacy core.loadRoutes method
  • feat: Remove legacy core.onChangeMocks method
  • feat: Remove legacy core.onChangeAlerts method
  • feat: Remove legacy core.onChangeLogs method
  • feat: Remove legacy core.restartServer method
  • feat: Remove legacy core.addRouter method
  • feat: Remove legacy core.removeRouter method
  • feat: Remove context property from alerts.flat collection items
  • feat: Remove legacy core.alertsApi getter. Now core.alerts can be used instead
  • feat: Remove legacy core.mocks getter
  • feat: Remove legacy core.tracer getter
  • feat: Remove legacy core.logs getter
  • feat: Remove legacy mocks.selected option
  • feat: Remove legacy mocks.delay option
  • feat: Remove legacy core.mock.current setter
  • feat: Remove legacy core.mock.restoreRoutesVariants method
  • feat: Remove legacy core.mock.customRoutesVariants getter
  • feat: Remove legacy core.mock.current getter
  • feat: Remove legacy core.mock.ids getter
  • feat: Remove legacy core.mock.plainMocks getter
  • feat: Remove legacy core.mock.plainRoutes
  • feat: Remove legacy core.mock.plainRoutesVariants
  • feat: Remove legacy core.mock.error getter
  • feat: Remove support for defining plugins as objects, functions, etc. Now, only classes are supported. If the class has not a static id, the alerts, config and logger properties won’t be available in the core passed to the constructor. If the class has an id getter, those properties will be received in start, stop, init and register methods, but not in the constructor.
  • feat: Remove default route handler. Now the type property is mandatory in variants
  • feat: Do not support handler property in variants, which was an alias for type. From now, only type is supported (and required, unless disabled property is true)
  • feat: Ignore version property in variant handlers. From now, all handlers are considered to be defined in “v4” format
  • feat: Do not support plainResponsePreview getter in variant handlers. Now only preview getter is supported
  • feat: Do not support routeVariants or routesVariants properties in collections. Now, only routes is supported
  • feat: Remove legacy methods passed to the plugins as parameters: loadMocks, loadRoutes, addAlert, removeAlert, core. Now, only the core is passed as argument (with namespaced alerts, logger and config)

Changed

  • feat: core.alerts getter now returns the root Alerts API, not a flat collection of alerts.
  • test: Migrate functional tests to core package from core-e2e (those that can be used to get coverage)
  • feat: Use namespaces logger when tracing variant requests

Added

  • feat: Add support for .cjs files
  • feat: Add core.mock.routes.delay getter
  • feat: Add route method and url to route not found logs.

main [4.0.0]

Changed

  • chore(deps): Update @mocks-server/plugin-admin-api to 4.0.0
  • chore(deps): Update @mocks-server/core to 4.0.0
  • chore(deps): Update @mocks-server/plugin-proxy to 4.0.0
  • chore(deps): Update dependencies

admin-api-client [7.0.0]

Removed

  • feat: Remove default client methods. Class AdminApiClient has to be used instead.

admin-api-client-data-provider [6.1.1]

Changed

  • chore(deps): Update dependencies

admin-api-paths [5.0.0]

Removed

  • feat: Remove legacy paths

cypress-commands [6.1.1]

Changed

  • chore(deps): Update dependencies

plugin-admin-api [4.0.0]

Removed

  • feat: Remove custom router "/admin" from mock server. Admin API is only available at its own server from now.

Added

  • feat: Add url and method to route not found log

Changed

  • chore(deps): Update dependencies
  • chore(deps): Require @mocks-server/core@4.x in peerDependencies

plugin-inquirer-cli [4.0.0]

Removed

  • feat: Remove support for legacy mocks.delay option

Changed

  • chore(deps): Update dependencies
  • chore(deps): Require @mocks-server/core@4.x in peerDependencies

plugin-openapi [2.0.0]

Changed

  • chore(deps): Update dependencies
  • test: Use new core.alerts API
  • chore(deps): Require @mocks-server/core@4.x in peerDependencies

plugin-proxy [4.0.0]

Changed

  • feat: Rename "proxy-v4" handler into "proxy". Remove legacy proxy handler
  • chore(deps): Update dependencies
  • chore(deps): Require @mocks-server/core@4.x in peerDependencies

Config file options

01 Sep 11:36
ab1fdb6
Compare
Choose a tag to compare

config [1.4.0]

Added

  • feat: Add 'fileSearchFrom' and 'fileSearchStop' options

core [3.12.0]

Added

  • feat: Update @mocks-server/config to 1.4.0. Add 'config.fileSearchFrom' and 'config.fileSearchStop' options

main [3.12.0]

Added

  • feat: Update @mocks-server/core to 3.12.0. Add 'config.fileSearchFrom' and 'config.fileSearchStop' options

OpenAPI support

25 Aug 12:18
eeb9b1e
Compare
Choose a tag to compare

plugin-openapi [1.0.0]

Added

  • feat: First release

core [3.11.0]

Added

  • feat: Support asynchronies in files. Files now can export a function. In that case, the loader will receive the result of the function. If function returns a promise, it will receive the result of the promise once it is resolved (rejected promises are treated as file load errors).
  • Added: Support null value in "from" property in collections

Changed

  • chore(deps): Update @mocks-server/config to 1.3.0

Fixed

  • fix: Collections and routes validation was throwing when undefined was passed as value

config [1.3.0]

Added

  • feat: Add 'nullable' property to option. Nullable types are 'string', 'number' and 'boolean'

main [3.11.0]

Added

  • feat(#384): Add @mocks-server/plugin-openapi to preinstalled plugins.

Changed

  • chore(deps): Update @mocks-server/core dependency to 3.11.0

HTTPS support

11 Aug 15:30
48d00d2
Compare
Choose a tag to compare

core [3.10.0]

Added

  • feat(#390): Add https support.
  • feat(#390): Add server.https.enabled, server.https.cert and server.https.key options

admin-api-client [6.2.0]

Added

  • feat(#390): Add https and agent options to the configClient method

admin-api-client-data-provider [6.1.0]

Added

  • feat(#390): Add protocol option to configClient method

admin-api-paths [4.2.0]

Added

  • feat: Add HTTPS_PROTOCOL constant

config [1.2.1]

Fixed

  • docs: Fix allowUnknownArguments docs

cypress-commands [6.1.0]

Added

  • feat(#390): Add https option to the mocksConfigClient command and the AdminApiClient class.
  • feat(#390): Add MOCKS_SERVER_ADMIN_API_HTTPS environment variable, allowing to enable https in the default client.

main [3.10.0]

Changed

  • chore(deps): Update @mocks-server/core dependency to 3.10.0

plugin-admin-api [3.4.0]

Added

  • feat(#390): Add HTTPS support
  • feat(#390): Add https.enabled, https.cert and https.key options

plugin-inquirer-cli [3.3.0]

Added

  • feat(#390): Change displayed protocol based on the value of the server.https.enabled option

Fixed

  • fix(#408): Refresh interface when port changes.