mimic

Seamless client side mocking

MIT License

Stars
397
Committers
19
mimic - v2.0.9 Latest Release

Published by morsdyce about 6 years ago

FIX (interceptor): When multiple mocks for the same url exist it ignored active status of the mock (#262)

Thanks to @kmichal for catching this bug

mimic - v2.0.8

Published by morsdyce about 6 years ago

  • fix(UI): Fix an issue where mimic UI wasn't loading if it was loaded after the page loaded
  • fix(bootstrapping): Fix a bug where checking process.env.NODE_ENV was not safe enough
mimic - v2.0.7

Published by morsdyce over 6 years ago

Chore (xhook): Update xhook dependency due to a bug failing XHR requests with responseType text

mimic - v2.0.6

Published by morsdyce over 6 years ago

  • fix(Interceptor): Fix a bug where turning off a mock would hold the request forever in pending state
  • fix(Master toggle): Fix master toggle not turning on and off mimic
mimic - V2.0.5

Published by morsdyce over 6 years ago

Fix an issue with main import file was not published to npm.

mimic - v2.0.4

Published by morsdyce over 6 years ago

  • fix (Production Check): Fix the production warning check being performed at compile time
  • fix (request log): fix an issue where no params showed as binary data in request log

This release is deprecated due to an issue with publishing to npm

mimic - v2.0.3

Published by morsdyce over 6 years ago

  • feat: Support loading mimic inside <head> tag
  • refactor (API): exported Group, Mock and Request models in the API level
  • fix (mocks): Allow duplicating a mock in the same group (#248)
  • feat (editor): Add codemirror plugins for closing and matching brackets (#249)
  • fix multipart requests, in which the params are an object instead of a string
  • feat: Add basic file upload support
  • refactor: (interceptor) Add support for custom interceptors
  • feat(Mocks): Add support for PATCH HTTP verb
  • feat(Developer experience): Add a warning when running Mimic in production mode
  • fix(Import): when importing a file validate that it is a supported format
  • fix(Keyboard shortcuts): Change delete mock shortcut to command+delete or ctrl+delete
  • fix(Request Log): Prevent request log failing due to binary data
mimic - v2.0.2

Published by morsdyce over 7 years ago

Changes

  • Add Polyfill fetch for nativescript.
  • Fix (hotkeys): Change toggle hotkey to alt+shift+m to prevent issues with phonetic keyboards.
  • Fix (Mock Sidebar): Fix mock urls rendering with html entities instead of the raw string.
  • Fix (Global toggle): Fix Global mimic toggle not affecting worker agents.
  • FEAT (Master Toggle): Persist master toggle via local settings.
  • Fix (latest requests): Change latest request mock active check to isActive to cover group state as well.
  • Fix (XHR mocks): Return a mock like the original XHR implementation in case of json responses.
  • Fix (remote): send request body when working in remote mode.
  • Fix (script tag) Support loading mimic inside tag.

General

  • Add block with other usages and add remark about submitting PRs to the next branch.
  • Add react-native and nativescript guides.
mimic - v2.0.1

Published by morsdyce over 7 years ago

Changes

  • Fix (Log): show request mock response when available
mimic - V2.0.0

Published by morsdyce over 7 years ago

Major release

We worked very hard for a long while to get this version out, but now it's here. A complete redesigned experience of using Mimic, we worked with the great @ilyabirman to rethink Mimic from scratch in terms of usability from our own personal experience of using it every day in our projects.

Please note that this includes breaking changes to the API thus the 2.0 version.

After a long time of using Mimic every day we decided that scenarios are no longer a concept that fits the more general use case for Mimic. So we replaced them with a more general concept as "Groups" therefore the entire scenario API has been removed and a new group api has been introduced.

Breaking Changes

Removed

  • scenarios
  • addScenario
  • toggleScenario
  • renameScenario
  • duplicateScenario
  • exportMock
  • exportScenario
  • exportScenarios

Changed

  • updateMockedRequest is now updateMock
  • removeMockedRequest is now removeMock
  • toggleMockedRequest is now toggleMock
  • record is now startRecording
  • mockedRequests is now mocks
  • activeMockedRequests is now activeMocks

Note that these methods changed not only in name but in parameters as well.

mimic - v1.2.0

Published by morsdyce over 7 years ago

Auto record mode

Now you can automatically record and mock every request that goes out in your browser.

Improved console output

You can see a quicker, more compact view of your mocked requests from Mimic

Changes

  • Feature (scenarios): Add confirmation modal when removing a scenario
  • Feature (Interceptor): Add auto recording of requests
  • Feature (request history): reverse requests list so the latest requests are shown on top
  • Feature (console): improve console output to better show the currently mocked request
  • Feature (Request History): Show requests by type (all, error, mocked, unmocked)
  • Feature (mock status codes): Add ability to add custom http status codes
  • Fix (interceptor): delay requests until data from local storage is fully loaded
  • Fix (web worker): Fix web worker not correctly mocking requests

Thanks to all the people who made this release happen.
@ilyagelman @iddan @liorpr

mimic - v1.1.2

Published by morsdyce almost 8 years ago

React Native support

We published support for react native. you can read more about setting it up here

Changes

  • fix (react-native): Fix default options for remote connections
  • feat(add scenario): Add ability to create a new scenario by pressing enter in new scenario dialog
  • fix(Import): Fix mocked request overriding when importing a scenario with new mocks
  • feat(Mock Editing): Add ability to give a name to a mock
  • feat(Mock editing): Allow to duplicate a mocked request
mimic - V1.1.0

Published by morsdyce almost 8 years ago

This release introduces support for mocking requests in react native.

More info on how to use Mimic with react native will be released soon.

mimic - V1.0.3

Published by morsdyce almost 8 years ago

New Features

  • Add support for web workers (#142)
  • Add ability to prettify exports in the API (#143)
  • Add new export dialog with ability to prettify exports and select specific mocks or scenarios (#143)

Bug fixes

  • fix(export): Remove an incorrect check of the content type to attempt parsing request parameters (#146)
  • Streamline the npm run test:integration command (#147)

General

  • Tests: Add Interceptor E2E tests (#147)
  • Added API Documentation to the website
mimic - v0.3.4

Published by morsdyce about 8 years ago

Bugfix: exporting a mock with request params in json format caused import to fail on a json parsing error.
Bugfix: json beautify failing when recieving an empty string
Bugfix: Fix interceptor failing on fetch POST requests with request body
Bugfix: Fix the correct scenario not being selected when editing a mocked request from request list

mimic - V0.3.3

Published by morsdyce about 8 years ago

Bugfix: Fix duplicated scenarios mocks were saving to the original scenario.
Feature: Added JSON auto formatting both on initial request load and on user paste.