This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…tier-6.x chore(deps): update dependency eslint-config-prettier to v6.15.0
…er plugin v1 uses path-v1 option
…on. Move watch option inside files-loader plugin
…d of full core instance
… new Mock, receives routes and mocks, and create express router
chore(deps): update dependency husky to v4.3.8
…ned as in config file
fix(deps): update dependency node-watch to v0.7.1
…gacy options to config scaffold
…tier-7.x chore(deps): update dependency eslint-config-prettier to v7
chore(deps): update dependency eslint to v7.20.0
v2.0 release
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
mock
option. Legacy mocks continue usingbehavior
for backward compatibilityloadRoutes
to pluginsaddRoutesHandlers
(closes Add fixtures handlers using the config file #21)Changed
path
andwatch
options inside files-loader pluginFixed
true
were not working when defined asfalse
in config fileRemoved
no behaviors
alert. As behaviors are legacy in v2, now it is not considered a problemBREAKING CHANGES
mocks-server.config.js
tomocks.config.js
features
andbehaviors
,path
option should be used insteadfeature
,behavior
option should be used insteadpathLegacy
instead ofpath
, which now is used to define the folder from which load routes and mocks in v2 format. Folder defined withpathLegacy
option will not be created automatically if it is not found, and the option is not requiredwatchLegacy
option instead ofwatch
, which now affects only to routes and mocks in v2 formatwatch
option now is a standard commander boolean, so, to disable watch, argument--no-watch
has to be provided. (--no-watchLegacy
for legacy v1 mocks folder) (closes Negative options format #107)booleanString
option type. Now onlynumber
,boolean
orstring
can be used.onLoadMocks
method,onChangeMocks
must be used insteadonLoadFiles
method. There is no alternative, as it is an internal event of the files-loader plugin and it should't be used by other external piecesloadLegacyMocks
.loadMocks
will be able to handle only v2 mocksonChangeLegacyMocks
instead ofonChangeMocks
, which only is triggered when v2 mocks changeaddCustomRouter
method.addRouter
has to be used insteadaddCustomSetting
method.addSetting
has to be used insteadfeatures
getter from Server. legacybehaviors
has to be used insteadserverError
getter. Use alerts insteadrestart
method, userestartServer
instead