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