Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Releases: mocks-server/core

Fix routes validator

03 Mar 09:26
50d2be9
Compare
Choose a tag to compare

Fixed

  • fix: validation of added route handlers was not working due to ajv cache

Changed

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

Fix docs

04 Dec 11:43
d253600
Compare
Choose a tag to compare

Fixed

  • docs: Remove broken npm dependencies badge

Support NodeJS v17

04 Dec 11:19
9ea623e
Compare
Choose a tag to compare

Changed

  • chore: Support any NodeJs version >=12.x.
  • chore: Run tests also in NodeJs 17 in pipelines. Remove tests execution using NodeJs 15
  • chore: Update dependencies
  • test: Use 127.0.0.1 instead of localhost when requesting in tests for Node 17 support

Fixed

  • fix: Fix ajv dependency issue message when creating alert

Support application/x-www-form-urlencoded

07 Jul 06:20
7392271
Compare
Choose a tag to compare

Added

  • feat(#201): Parsing of body with content-type application/x-www-form-urlencoded

Changed

  • chore(deps): Update devDependencies

Disable validation if ajv initialization fails

29 May 18:56
f5fd158
Compare
Choose a tag to compare

Changed

  • chore(deps): Update devDependencies

Fixed

Update dependencies

24 May 09:05
7719928
Compare
Choose a tag to compare

Changed

  • chore(deps): update dependencies
  • chore: Change Sonar project

Fix response validation

06 May 06:35
dbe9dd4
Compare
Choose a tag to compare

Fixed

  • fix: make body property in response not mandatory

Changed

  • chore(deps): update dependencies

Validations

05 May 18:52
ec2e5bb
Compare
Choose a tag to compare

Added

  • feat: Validate that routes and mocks files export an array (#101)
  • feat: Validate routes and route variants format (#101)
  • feat: Validate mocks format (#101)
  • feat: Add an alert when mocks contains non existent routeVariants (#101)
  • feat: Ignore mocks, routes and route variants with duplicated ids (#101)
  • feat: Add an alert if mock "from" property is not valid (not correspondent to any mock id) (#101)
  • feat: Add an alert if there are many variants of the same route in the same mock (#101)
  • feat: Support defining http methods in lowercase
  • chore: Support Node.js v16.x

Changed

  • chore(deps): update dependencies

Fixed

  • fix: Routes with delay 0 had delay null in plain representation

Babel support

14 Apr 05:15
f8c2a27
Compare
Choose a tag to compare

Added

  • feat: Add babelRegister and babelRegisterOptions low level configuration options, allowing to enable Babel when loading mocks and routes (#151);
  • feat: Add lowLevelConfig getter to core, returning low level configuration properties.

Changed

  • chore: update node versions in pipeline
  • chore(deps): update dependencies

Multiple methods in routes. Cors options.

23 Mar 19:27
ea1daed
Compare
Choose a tag to compare

Added

  • feat: Support array of methods in routes (#139)
  • feat: Support OPTIONS, HEAD and TRACE http methods in routes (#140)
  • feat: Add cors and corsPreFlight options (#140)

Changed

  • chore(deps): Update dependencies