UNPKG

1.33 kBMarkdownView Raw
1## 0.4.0 (May 4, 2014)
2- Adds support for Node v0.10.24 and up.
3- Adds the `connection` event to Mitm to get the remote `Net.Socket`. You can
4 use this to intercept and test any TCP code.
5 If you need the client side socket for any reason, listen to `connect` on
6 Mitm.
7
8- Replaces the `Http.ClientRequest` given to the `request` event on Mitm with
9 a proper `Http.IncomingMessage` — just like a regular Node server would
10 receive.
11 This ensures the requests you make are properly parseable according to HTTP
12 specs (assuming Node.js itself is implemented according to spec) and also lets
13 you assert on the content of `POST` requests.
14
15 ```javascript
16 var mitm = Mitm()
17 Http.request({host: "x.org"}).end()
18 mitm.on("request", function(req) { req.headers.host.must.equal("x.org") })
19 ```
20
21- Replaces [Concert.js][concert] with Node's EventEmitter for now as I was not
22 sure the extra features were required.
23 Remember kids, _if in doubt, leave it out_.
24
25[concert]: https://github.com/moll/js-concert
26
27## 0.3.0 (Apr 26, 2014)
28- Adds support for calling `Net.connect` with `port` and `host` arguments.
29
30## 0.2.0 (Apr 19, 2014)
31- Does not store requests on an instance of `Mitm` any longer.
32- Adds `socket` event to `Mitm`.
33- Updated to work with Node v0.11.12.
34
35## 0.1.337 (Mar 11, 2014)
36- First private release.
37
\No newline at end of file