Skip to content

Releases: miragejs/miragejs

v0.1.48

30 Oct 11:27
Compare
Choose a tag to compare

What's Changed

🚀 Enhancements

🐛 Bugfixes

🏠 Internal

New Contributors

Full Changelog: v0.1.47...v0.1.48

v0.1.47

10 Jan 00:39
Compare
Choose a tag to compare

🚀 Enhancements

  • Typescript: Allow arbitrary model updates, not only Collections by @lanhhv84 in #1066

🐛 Bugfixes

New Contributors

Full Changelog: v0.1.46...v0.1.47

v0.1.46

08 Nov 23:58
Compare
Choose a tag to compare

What's Changed

🚀 Enhancements

🐛 Bugfixes

🗂 Types

  • Align passthrough type declaration with implementation by @brzosthub in #1061

New Contributors

Full Changelog: v0.1.45...v0.1.46

v0.1.45

02 Jun 13:46
19c53df
Compare
Choose a tag to compare

🚀 Enhancements

🐛 Bugfixes

  • #1045 - Fixed assert about changing Pretender config by @cah-briangantzler

New Contributors

Full Changelog: v0.1.44...v0.1.45

v0.1.44

13 May 01:06
05f5524
Compare
Choose a tag to compare

🐛 Bugfixes

🏠 Internal

  • #1036 Extract pretender code to its own module for future move to another package by @cah-briangantzler

    This is a step towards decoupling pretender from Mirage, with the goal of Mirage supporting MSW or other mocking layers. There should not be any user-facing changes here, so long as you were not using internal methods like server._getFullPath(). If you were, you may need to change these to server.interceptor._getFullPath().

  • Dependency updates

New Contributors

  • @cah-briangantzler made their first contribution in #1036

Full Changelog: v0.1.43...v0.1.44

v0.1.43

02 Dec 17:13
Compare
Choose a tag to compare

What's Changed

🐛 Bugfixes

🏠 Internal

New Contributors

Full Changelog: v0.1.42...v0.1.43

v0.1.42

23 Sep 22:07
5b1bcd3
Compare
Choose a tag to compare

🚀 Enhancements

  • #695 [TypeScript] Basic support for functions in factories
  • #977 [TypeScript] Add type for head request handler

🐛 Bugfixes

  • #643 Model.toJSON should copy attrs
  • #667 [TypeScript] Fix DbLookup Type for db
  • #984 [TypeScript] Remove type assertion that fails in TS 4.0
  • #978 Passthrough no longer results in error in native code for react native

📝 Docs

  • ac2727a Improve sort example in docs
  • #655 Update doc comments to use createServer

🏠 Internal

  • Dependency updates

v0.1.41

22 Sep 21:20
d7d5523
Compare
Choose a tag to compare

🏠 Internal

  • Dependency updates

v0.1.40

22 May 13:07
2ecdcb4
Compare
Choose a tag to compare

🚀 Enhancements

  • #481 Mark Mirage as tree-shakable via sideEffects key.

    Prior to this change, Webpack (in common tools like Create React App + Vue CLI) would not tree-shake Mirage from production builds, since Mirage does indeed have side effects. However, these side effects are only relevant during development, and should not prevent Mirage from being tree-shaken from production builds.

    The sideEffects key is an escape hatch and can be used to tell Webpack exactly this. With this change, apps with modern build setups that use Mirage like this

    import { Server } from 'miragejs'
    
    if (process.env.NODE_ENV !== 'production') {
      new Server()
    }

    should get all of miragejs automatically tree-shaken from their production builds!

🏠 Internal

  • Dependency updates

v0.1.39

20 May 01:29
9de5663
Compare
Choose a tag to compare

🚀 Enhancements

  • Introduce createServer #467

    Mirage now provides a createServer function as an alternative to new Server. This function was added for type-safe interactions with the server in the context of your config. See #467 for more details.

📝 Docs

  • Update serializer docs

🏠 Internal

  • Dependency updates