Releases: mocks-server/main
Releases · mocks-server/main
Improve typings
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
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
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
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
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
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
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 fromalerts.flat
collection items - feat: Remove legacy
core.alertsApi
getter. Nowcore.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
andlogger
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 fortype
. From now, onlytype
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 onlypreview
getter is supported - feat: Do not support
routeVariants
orroutesVariants
properties in collections. Now, onlyroutes
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
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
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
core [3.10.0]
Added
- feat(#390): Add https support.
- feat(#390): Add
server.https.enabled
,server.https.cert
andserver.https.key
options
admin-api-client [6.2.0]
Added
- feat(#390): Add
https
andagent
options to theconfigClient
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 themocksConfigClient
command and theAdminApiClient
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
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.