File: HISTORY.md

package info (click to toggle)
node-mocks-http 1.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 292 kB
  • ctags: 240
  • sloc: makefile: 4; sh: 2
file content (129 lines) | stat: -rw-r--r-- 3,245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
v 1.5.1
-------

  * Add support for the `.vary()` response method

v 1.5.0
-------

Documentation changes, a new feature, and better behaviors, including:

  * Added `jsonp` method that takes a status code and a payload, see [PR #79][79]
  * Now able to attach non-standard properties to the mock request object. [PR #74][74]
  * param now takes a default value, see [PR #76][76]
  * Emit `end` when redirecting, see [PR #77][77]
  * Documentation changes, see [PR #64][64], [PR #75][75], [PR #78][78]

  [64]: https://github.com/howardabrams/node-mocks-http/issues/64
  [74]: https://github.com/howardabrams/node-mocks-http/issues/74
  [75]: https://github.com/howardabrams/node-mocks-http/issues/75
  [76]: https://github.com/howardabrams/node-mocks-http/issues/76
  [77]: https://github.com/howardabrams/node-mocks-http/issues/77
  [78]: https://github.com/howardabrams/node-mocks-http/issues/78
  [79]: https://github.com/howardabrams/node-mocks-http/issues/79


v 1.4.4
-------

  Bug fix release, including the following:
  * Fixed for [#67][67]
  * Merge fix for [#68][68]
  * Merge fix for [#70][70]
  * Merge fix for [#73][73]

  [67]: https://github.com/howardabrams/node-mocks-http/issues/67
  [68]: https://github.com/howardabrams/node-mocks-http/issues/68
  [70]: https://github.com/howardabrams/node-mocks-http/issues/70
  [73]: https://github.com/howardabrams/node-mocks-http/issues/73

v 1.2.0
---

  * Adds a `.header` and `.get` method to the request.

v 1.1.0
---

  * Adds a `.header`, `.set`, and `.get` method to the response.

v 1.0.4
---

  * Adds the MIT license

v 1.0.3
---

  * Merged changes by [invernizzie](https://github.com/invernizzie):
    to address [#11](https://github.com/howardabrams/node-mocks-http/pull/11)

  * Merged changes by [ericchaves](https://github.com/ericchaves):
    > I extended your library a little but so it could also handle
    > some structured responses. By doing so res.send now evaluate the
    > data passed and search for either a statusCode or httpCode to be
    > used, and also for a body to send as _data.
    >
    > It still working as expected (at least tests passed) for regular
    > HTTP responses.
    >
    > Although I did it with node-restify in mind, it should work well
    > for all other libs.

v 1.0.2
---

  * Adds a `.json()` method to the response. (Thanks, diachedelic)
  * Cleaned up all source files so ./run-tests passes.
  * Cleaned up jshint issues.

v 1.0.1
---

  * Adds support for response redirect and render

v 0.0.9
---

  * Adds support for response cookies

v 0.0.8
---

  * Adds support for request headers
  * Fix wrong function name of set cookies

v 0.0.7
---

  * Adds support for request cookies

v 0.0.6
---

  * Adds support for request files

v 0.0.5
---

  * Fixed a bug where `response.send()` can take two parameters, the status code and the data to send.

v 0.0.4
---

  * Adds a `request.session` that can be set during construction (or via calling the `_setSessionVariable()` method, and read as an object.

v 0.0.3
---

  * Adds a `request.query` that can be set during construction and read as an object.

v 0.0.2
---

  * Code refactoring of the `Response` mock.

v 0.0.1
---

  * Initial code banged out one late night...