Skip to content

Releases: pretenderjs/pretender

1.3.0

28 Sep 22:56
Compare
Choose a tag to compare
  • 168 "Verb" methods now return handler
  • 166 HTTP options request type added

1.2.0

25 Aug 14:55
Compare
Choose a tag to compare

Update the dependency on route-recognizer.

1.1.0

22 Apr 04:26
Compare
Choose a tag to compare

#150 Update the dependency on FakeXMLHttpRequest

1.0.0

22 Apr 04:27
Compare
Choose a tag to compare

No changes. Just making the API stable.

0.13.0

22 Apr 04:27
Compare
Choose a tag to compare

#148 Support ArrayBuffer responses.

0.12.0

10 Jan 15:34
Compare
Choose a tag to compare

This small release includes:

  • #134 prepareBody now receives the headers as a second argument, in case you want to handle something like Content-Type

0.10.1

13 Oct 15:18
Compare
Choose a tag to compare
bump to 0.10.1

Many Maps

17 Jan 23:17
Compare
Choose a tag to compare

This version updates Pretender to allow easier sharing of route maps.

The constructor can now take many maps:

import adminMaps from "testing/maps/admin";
import photoMaps from "testing/maps/photos";

var server = new Pretender(photoMaps, adminMaps);

The map instance method is also a public API for calling a map later:

The HTTP verb methods can also be called on an instance individually:

var server = new Pretender();

... some setup of stuff ...
import adminMaps from "testing/maps/admin";
var server = new Pretender();
... more setup ...

server.map(adminMaps);