All notable changes to this project will be documented in this file starting from version v0.10.0. This project adheres to Semantic Versioning.
- Update dependencies to support sameSite.
- Update dependencies.
- Update dependencies.
- Update dependencies.
- Change error response to application/json as default.
- Update response.status method for HTTP/2.
- Improve context.end.
- Remove internal error listener.
- Update dependencies.
- Improve code.
- Update dependencies.
- Update dependencies.
- Update dependencies.
- Update dependencies.
- Update dependencies.
- Update dependencies.
- Add "server" header to response.
- Remove default "x-powered-by" header.
- Remove lastHandler.
- Remove ctx.onPreEnd.
- Use normal function to run middlewares instead of generator function.
- Test in Node.js v8.
- Change Context's private properties.
- Update node engines to
>= 4.5.0
.
- Update dependencies.
- Update dependencies.
- Update dependencies.
- Improve response header method.
- Update dependencies.
- Fix malformed content-type header causing exception on charset get.
- Fix tests for new version of http-errors.
- Log error for deprecated "mainFn"
- Change default status code to 421
- Update dependencies.
- Don't unset
Vary
header when error. - Add
secure
options to cookies. - Update dependencies.
- Suppport "toThunk" object as middleware.
- Set header 'x-content-type-options: nosniff' when error.
- Update dependencies.
- Add test case.
- Update dependencies.
- Update dependencies.
- Execute after hooks in LIFO order.
- Update dependencies.
- Update dependencies.
- Improve tests.
- Do not recommend
mainFn
. It will be deprecated in next version. - Improve code.
- Update dependencies.
- Add TypeScript typings.
- Add
context.after(hook)
, instead ofcontext.onPreEnd
(this will be deprecated). After hooks should be consumed only once.
- Removed toa's
options.debug
.
- Rewrited with ES2015, Required Node.js>=v4.
- Add
context.ended
,context.finished
,context.closed
.
- Subdomains should be [] if the host is an ip.
- Update dependencies.
- Add
request.origin
,context.origin
.
- Fixed documents.
- Removed unnecessary error processing logic.
- Destroy the previous body stream after response finished.
- Used lower case header. #4
- Update dependencies.
- Cleared up code.
- Update dependencies.
- Cleared up code.
- Improve Context prototype.
- Improve code.
- Improve error message.
- Changed
describe
tosuite
in tests
ctx.throw
usedctx.createError
.
- Improve code.
- Fixed ctx.end().
- Improve code.
- Update readme.
- Supported more middleware function Style.
- Add
async/await
example.
- Improve code.
- When context emit "end" event, context.headerSent should be true (about stream body).
- Improve code, classify context, request and response.
- Changed context "finished" event to "finishe" event and "close" event.
- Improve code.
- Fixed respond function and "finished" event.
- Fixed stream body.
- Fixed error'context.
- Fixed error respond.
- Improve performance, add bench.
- Fixed stream body [#3]
- Update dependencies.
- Update dependencies.
- Improve error response headers.
- Update dependencies.
- Update dependencies, use T-man to test.
- Update dependencies.
- Update dependencies, improve code and file structure.
- Update dependencies, improve code.
- Fixed stream body
- Changed
end
event, it is emited inrespond()
now. - Add
finished
event, which will be emited after a HTTP request closes, finishes, or errors. - Removed mainFn's argument
thunk
, it is instead byctx.thunk
.
- Retain CORS headers when throw error
- Update dependencies
- Do not send a content-type when the type is unknown (koa_#536)
- Improve code
- Fixed stream body response
- Ensure parseurl always working as expected
- Fixed stream response.
- Improve code
- Update dependencies, thunks update to v4.x with a break changed
- Improve test
- Update dependencies
- Removed
context.onerror
method - Update dependencies
- Update documents
onstop
handler will executecontext.onPreEnd
queue- Add
context.createError
- Fixed context.toJSON
- Update dependencies
- Don't unset headers while context throw non-error object.
- Fixed
context.end
with[email protected]
- Supported
onstop
options for Toa constructor, addcontext.end()
to stop request process. - Add
app.toListener()
- Toa constructor will not create server by default, server will be created in
app.listen()
if omit in constructor. - Improve test and documents
- Coverage test
- Changed to JavaScript Standard Style
- Mounted
thunk
function to context. - Removed
app.onmessage
, it become to a moduletoa-pm
. - Update with
koa
v0.21.0.