@curveball/core
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -0,3 +1,20 @@ | ||
Changelog | ||
========= | ||
0.9.2 (2019-11-04) | ||
------------------ | ||
* `rawBody()` had an incorrect type. It should _always_ return a `Buffer` if | ||
the first argument is omitted. | ||
0.9.1 (2019-09-19) | ||
------------------ | ||
* The server now sets a `application/hal+json` content-type if nothing else | ||
was set. This fixes a regression from 0.9.0. | ||
0.9.0 (2019-09-13) | ||
================== | ||
------------------ | ||
@@ -11,3 +28,3 @@ * `Request` and `Response` types are now abstract classes instead of | ||
0.8.6 (2019-03-30) | ||
================== | ||
------------------ | ||
@@ -19,3 +36,3 @@ * Correctly set status for HTTP exceptions in sub-requests. | ||
0.8.3 (2019-03-29) | ||
================== | ||
------------------ | ||
@@ -26,3 +43,3 @@ * Correctly set status for HTTP exceptions in sub-requests. | ||
0.8.2 (2019-03-29) | ||
================== | ||
------------------ | ||
@@ -35,3 +52,3 @@ * Subrequests should behave as regular requests and catch any exceptions. | ||
0.8.1 (2018-11-01) | ||
================== | ||
------------------ | ||
@@ -45,3 +62,3 @@ * Now exporting an `invokeMiddleware` function that can be used to | ||
0.8.0 (2018-10-12) | ||
================== | ||
------------------ | ||
@@ -58,3 +75,3 @@ * It's now possible to pass objects as Middlewares. If an object has a member | ||
0.7.0 (2018-10-04) | ||
================== | ||
------------------ | ||
@@ -70,3 +87,3 @@ * The `Context` object now has an `ip` method that can be used to get the ip | ||
0.6.0 (2018-09-05) | ||
================== | ||
------------------ | ||
@@ -79,3 +96,3 @@ * Request and Response object are now generic. `Response<T>` implies the body | ||
0.5.0 (2018-08-31) | ||
================== | ||
------------------ | ||
@@ -92,3 +109,3 @@ * #74: Added `method`, `path`, `status`, `accepts`, `push`, `sendInformational`, | ||
0.4.3 (2018-07-09) | ||
================== | ||
------------------ | ||
@@ -99,3 +116,3 @@ * `Application.buildContextFromHttp` is now public. | ||
0.4.2 (2018-07-04) | ||
================== | ||
------------------ | ||
@@ -108,3 +125,3 @@ * #71: Fixed error messages when a HTTP/2 client disables or refuses a push | ||
0.4.1 (2018-07-01) | ||
================== | ||
------------------ | ||
@@ -115,3 +132,3 @@ * #57: `Response.type` is now settable. | ||
0.4.0 (2018-07-01) | ||
================== | ||
------------------ | ||
@@ -127,3 +144,3 @@ * #4: Support for HTTP/2 push via the `Response.push()` method. | ||
0.3.1 (2018-06-29) | ||
================= | ||
----------------- | ||
@@ -136,3 +153,3 @@ * Added License, Code of Conduct. | ||
0.3.0 (2018-06-26) | ||
================== | ||
------------------ | ||
@@ -151,3 +168,3 @@ * #5: Support for informational status codes such as `100 Continue` and | ||
0.2.0 (2018-06-25) | ||
================== | ||
------------------ | ||
@@ -164,3 +181,3 @@ * #19: Added `Request.rawBody()` method. | ||
0.1.2 (2018-06-24) | ||
================== | ||
------------------ | ||
@@ -171,3 +188,3 @@ * Set `script` and `types` correctly in `package.json`. | ||
0.1.1 (2018-06-24) | ||
================== | ||
------------------ | ||
@@ -178,3 +195,3 @@ * Fixed npm package distribution. Was shipping the wrong files. | ||
0.1.0 (2018-06-24) | ||
================== | ||
------------------ | ||
@@ -186,4 +203,4 @@ * Created `Request`, `Response`, `Application`, `Context`, `Headers` classes. | ||
0.0.1 (2018-06-23) | ||
================== | ||
------------------ | ||
* First published on npm.js to claim package name. |
@@ -65,3 +65,3 @@ /// <reference types="node" /> | ||
*/ | ||
abstract rawBody(encoding?: string, limit?: string): Promise<string>; | ||
abstract rawBody(encoding: string, limit?: string): Promise<string>; | ||
abstract rawBody(encoding?: undefined, limit?: string): Promise<Buffer>; | ||
@@ -68,0 +68,0 @@ /** |
{ | ||
"name": "@curveball/core", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Curveball is a framework writting in Typescript for Node.js", | ||
@@ -39,3 +39,3 @@ "main": "dist/index.js", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.5", | ||
"@types/node": "^12.7.9", | ||
"@types/node-fetch": "^2.5.0", | ||
@@ -42,0 +42,0 @@ "@types/sinon": "^7.0.13", |
265896