Skip to content

Releases: mocks-server/main

Fix scaffold

24 May 04:50
933e05e
Compare
Choose a tag to compare

core

[3.0.1] - 2022-05-23

Fixed

  • fix(scaffold): Fix help url in configuration scaffold
  • fix(scaffold): Give a default value to plugins.register property in scaffold in order to avoid null values

config

[1.0.1] - 2022-05-23

Changed

  • docs: Remove Mocks Server logo and title in order to make clearer that this module is not coupled to Mocks Server and it can be used in any other project

Configuration namespaces

23 May 10:48
87e3505
Compare
Choose a tag to compare

Further info: https://www.mocks-server.org/docs/guides-migrating-from-v2

core

[3.0.0] - 2022-05-23

Removed

  • feat: BREAKING CHANGE. The Core object now is export as default, not as a property
  • feat: BREAKING CHANGE. The Behavior object has been removed and it is not exported any more.
  • feat: BREAKING CHANGE. The addFixturesHandler, onChangeLegacyMocks, addSetting and onChangeSettings methods have been removed from the Core API.
  • feat: BREAKING CHANGE. The settings, behaviors and fixtures getters have been removed from the Core API.
  • feat: BREAKING CHANGE. The pathLegacy, behavior and watchLegacy options are not supported any more.
  • feat: BREAKING CHANGE. The --behavior command line argument has been removed.
  • feat: BREAKING CHANGE. The load:mocks:legacy and change:mocks:legacy events are not emitted any more.
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Changed

  • feat: BREAKING CHANGE. Renamed plugins displayName property into id. Plugins as classes now are required to have an static property id. Otherwise config is received only in register method.
  • feat: BREAKING CHANGE. Configuration format changed. All options have been renamed or moved into namespaces. Please check the docs in the website for further info.
  • feat: BREAKING CHANGE. Change arguments passed to the plugins. Now there is only one argument with an object containing everything.
  • feat: BREAKING CHANGE. Response preview in route variants now is null when the response is defined as a function
  • feat: BREAKING CHANGE. Change cors and corsPreflight options. Create a namespace cors. Allow passing any option to the cors middleware.
  • feat: BREAKING CHANGE. ajv-errors is not used any more. Now, better-ajv-errors is used to provide better feedback about validations. So ajv-errors properties for json schemas are not supported any more.
  • refactor: Use callbacks internally instead of events. Remove Orchestrator
  • refactor: Move Settings and Config to a separated package
  • refactor: FilesLoader is not loaded as a plugin any more in the core, now it is a core internal element.

Added

  • feat: A namespaced configuration object is passed to plugins if they have an id property.
  • feat: Configuration can now be defined also in environment variables.
  • feat: Configuration can now be defined in different file formats, using cosmiconf.
  • feat: Add config getter to core.
  • feat: Add options to configure body parser middlewares.

Fixed

  • chore: Fix repository property in package.json

admin-api-client

[5.0.0] - 2022-05-23

Changed

  • feat: BREAKING CHANGE. Change main property in package.json. Now it points to index.cjs.js file

Removed

  • feat: BREAKING CHANGE. Remove legacy methods readBehaviors, readBehavior, readFixtures and readFixture.
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Fixed

  • chore: Fix repository property in package.json

admin-api-client-data-provider

[5.0.0] - 2022-05-23

Removed

  • feat: BREAKING CHANGE: Remove v1 legacy methods related to behaviors and fixtures.
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Fixed

  • docs: Fix docs examples
  • chore: Fix repository property in package.json

admin-api-paths

[3.0.0] - 2022-05-23

Removed

  • feat: BREAKING CHANGE. Remove LEGACY, BEHAVIORS and FIXTURES path
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Fixed

  • chore: Fix repository property in package.json

config

[1.0.0] - 2022-05-23

Added

  • feat: First release

cypress-commands

[4.0.0] - 2022-05-23

Removed

  • feat: BREAKING CHANGE. Remove mocksSetBehavior v1 legacy command
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Fixed

  • chore: Fix repository property in package.json

main

[3.0.0] - 2022-05-23

Changed

  • feat: BREAKING CHANGE. Export Core as default export. Stop exporting v1 legacy Behavior object
  • feat: BREAKING CHANGE. Update core version to v3.0.0. Update plugins to latest versions also. Please check their own docs for further info.
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Fixed

  • chore: Fix repository property in package.json

plugin-admin-api

[3.0.0] - 2022-05-23

Added

  • feat(#249): Always add cors middleware to admin-api plugin. Even when it is disabled in the core for mocked routes.

Removed

  • feat: BREAKING CHANGE. Remove legacy APIs under the /legacy path
  • feat: BREAKING CHANGE. Remove adminApiDeprecatedPaths option.
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Changed

  • feat: BREAKING CHANGE. Change received arguments to make the plugin compatible with core v3
  • feat: BREAKING CHANGE. Use new configuration method. Now plugin options have to be defined in the plugins.adminApi namespace.

Fixed

  • chore: Fix repository property in package.json

plugin-inquirer-cli

[3.0.0] - 2022-05-23

Added

  • feat: Add emojis option allowing to disable emojis.

Removed

  • feat: BREAKING CHANGE. Remove support for v1 legacy mode
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Changed

  • feat: BREAKING CHANGE. Change received arguments to make the plugin compatible with core v3
  • feat: BREAKING CHANGE. Use new configuration method. Now plugin options have to be defined in the plugins.inquirerCli namespace.

Fixed

  • chore: Fix repository property in package.json

plugin-proxy

[2.0.0] - 2022-05-23

Changed

  • feat: BREAKING CHANGE. Change received arguments to make the plugin compatible with core v3.
  • feat: BREAKING CHANGE. Drop support for Node.js 12.x

Added

  • feat: BREAKING CHANGE. Add validation schema

Fixed

  • chore: Fix repository property in package.json

Migrate all packages to monorepo

28 Mar 10:28
aab9edf
Compare
Choose a tag to compare

[2.6.3] - 2022-03-28

Changed

  • chore(deps): Update dependencies
  • chore(deps): Update devDependencies

Migrate cypress-commands to monorepo

23 Mar 09:42
246acb6
Compare
Choose a tag to compare

@mocks-server/cypress-commands

[3.0.1] - 2022-03-23

Changed

  • chore(deps): Update devDependencies
  • chore: Migrate to monorepo

@mocks-server/plugin-proxy

[unreleased]

Changed

  • docs: Modify readme badges

Fix routes validator

03 Mar 13:59
8673c1d
Compare
Choose a tag to compare

@mocks-server/main

[2.6.2] - 2022-03-03

Changed

  • chore(deps): Update @mocks-server/core. fix: validation of added route handlers was not working due to ajv cache
  • chore(deps): Update @mocks-server/plugin-proxy
  • chore(deps): Update devDependencies

@mocks-server/plugin-proxy

[1.0.4] - 2022-03-03

Changed

  • chore: Migrated to monorepo
  • chore(deps): Update @mocks-server/core
  • chore(deps): Update devDependencies

Monorepo

01 Mar 07:34
e54a3e1
Compare
Choose a tag to compare

Changed

  • chore(deps): Update devDependencies
  • chore(workflow): Migrate to monorepo. Move E2E tests to a separated package
  • refactor: Rename lib folder to src

Proxy route variants

05 Dec 19:13
7fb5299
Compare
Choose a tag to compare

Added

  • feat: Add @mocks-server/plugin-proxy. Support route variants of type "proxy"

Support NodeJS v17

05 Dec 09:56
9f46fab
Compare
Choose a tag to compare

Changed

  • chore: Support any NodeJs version >=12.0.0
  • chore: Run tests also in NodeJs 17 in pipelines. Remove tests execution using NodeJs 15
  • chore: Update devDependencies
  • chore: Update dependencies

Fixed

  • docs: Remove broken npm dependencies badge

Support application/x-www-form-urlencoded

07 Jul 07:34
32f1269
Compare
Choose a tag to compare

Changed

  • chore(deps): Update mocks-server/core dependency to 2.4.0 (Support application/x-www-form-urlencoded)
  • chore(deps): Update devDependencies

Update dependencies

29 May 19:07
cb894b5
Compare
Choose a tag to compare

Changed

  • chore(deps): Update mocks-server/core dependency to 2.3.3 (disable validations if ajv initialization fails)
  • chore(deps): Update devDependencies