This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
Releases: mocks-server/core
Releases · mocks-server/core
Fix routes validator
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
Fixed
- docs: Remove broken npm dependencies badge
Support NodeJS v17
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
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
Changed
- chore(deps): Update devDependencies
Fixed
- fix: Disable validations if ajv-errors initialization fails. Add an alert with a link to https://mocks-server.org/docs/how-to-fix-ajv-errors-installation in that case
Update dependencies
Changed
- chore(deps): update dependencies
- chore: Change Sonar project
Fix response validation
Fixed
- fix: make body property in response not mandatory
Changed
- chore(deps): update dependencies
Validations
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
Added
- feat: Add
babelRegister
andbabelRegisterOptions
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