1 | ## 0.5.1 (May 28, 2014)
|
2 | - Fixes `Mitm.prototype.off` to remove bound events with
|
3 | (`mitm.off("request", listener)`).
|
4 |
|
5 | ## 0.5.0 (May 19, 2014)
|
6 | - Adds bypass functionality to not intercept a particular outgoing connection
|
7 | and let it connect as usual.
|
8 | Let a connection happen by calling `bypass` on the socket object given to the
|
9 | `connect` event:
|
10 |
|
11 | ```javascript
|
12 | var mitm = Mitm()
|
13 | mitm.on("connect", function(socket) { socket.bypass() })
|
14 | Net.connect({host: "example.org", port: 25})
|
15 | ```
|
16 |
|
17 | - Emits `connect` and `connection` on Mitm with the _options_ object given to
|
18 | `Net.connect`.
|
19 | You can use that with the above bypass functionality to bypass selectively:
|
20 |
|
21 | ```javascript
|
22 | mitm.on("connect", function(socket, opts) {
|
23 | if (opts.host == "sql.example.org" && opts.port = 5432) socket.bypass()
|
24 | })
|
25 | ```
|
26 |
|
27 | ## 0.4.1 (May 4, 2014)
|
28 | - Adds [Travis CI](https://travis-ci.org) badge to the README.
|
29 |
|
30 | ## 0.4.0 (May 4, 2014)
|
31 | - Adds support for Node v0.10.24 and up.
|
32 | - Adds the `connection` event to Mitm to get the remote `Net.Socket`. You can
|
33 | use this to intercept and test any TCP code.
|
34 | If you need the client side socket for any reason, listen to `connect` on
|
35 | Mitm.
|
36 |
|
37 | - Replaces the `Http.ClientRequest` given to the `request` event on Mitm with
|
38 | a proper `Http.IncomingMessage` — just like a regular Node server would
|
39 | receive.
|
40 | This ensures the requests you make are properly parseable according to HTTP
|
41 | specs (assuming Node.js itself is implemented according to spec) and also lets
|
42 | you assert on the content of `POST` requests.
|
43 |
|
44 | ```javascript
|
45 | var mitm = Mitm()
|
46 | Http.request({host: "x.org"}).end()
|
47 | mitm.on("request", function(req) { req.headers.host.must.equal("x.org") })
|
48 | ```
|
49 |
|
50 | - Replaces [Concert.js](https://github.com/moll/js-concert) with Node's
|
51 | EventEmitter for now as I was not sure the extra features were required.
|
52 | Remember kids, _if in doubt, leave it out_.
|
53 |
|
54 | ## 0.3.0 (Apr 26, 2014)
|
55 | - Adds support for calling `Net.connect` with `port` and `host` arguments.
|
56 |
|
57 | ## 0.2.0 (Apr 19, 2014)
|
58 | - Does not store requests on an instance of `Mitm` any longer.
|
59 | - Adds `socket` event to `Mitm`.
|
60 | - Updated to work with Node v0.11.12.
|
61 |
|
62 | ## 0.1.337 (Mar 11, 2014)
|
63 | - First private release.
|
64 |
|
\ | No newline at end of file |