Commit graph

1035 commits

Author SHA1 Message Date
Michaël Zasso
0a2d0dad75 add editorconfig 2015-10-13 09:23:57 +02:00
Michaël Zasso
b5c09a1719 test: fix style issues 2015-10-13 09:23:57 +02:00
Michaël Zasso
a157937969 lib: fix style issues 2015-10-13 09:23:57 +02:00
Michaël Zasso
24ccde947d add eslint and standard config 2015-10-13 09:23:06 +02:00
TJ Holowaychuk
bfa53fbc28 Merge pull request #528 from tejasmanohar/rid_of_instanceof_hack
get rid of instanceof hack in application constructor
2015-10-13 00:21:42 -07:00
Tejas Manohar
132b32b287 get rid of instanceof hack in application constructor 2015-10-13 02:17:47 -05:00
TJ Holowaychuk
c06d30286f Merge pull request #527 from tejasmanohar/module_exports
no more exports! only module.exports
2015-10-12 23:46:56 -07:00
TJ Holowaychuk
13983ede63 Merge pull request #526 from tejasmanohar/es2015_classes
refactor Application into an es6 class
2015-10-12 23:45:27 -07:00
Tejas Manohar
46f8d49e4c no more exports! only module.exports 2015-10-13 01:43:23 -05:00
Tejas Manohar
93ade5e2dd refactor Application into a class 2015-10-13 01:19:42 -05:00
Tejas Manohar
e8f79d43f9 modularize tests for application
closes #517

add index test for Application

add app.toJSON test

add test for app.inspect()

add tests for app.use()

add tests for app.onerror()

add tests for app.respond()

add tests for app.context()

add tests for app.request()

add tests for app.response

refactor for non-existence of test/app...js

no need for *.js

use helpers/ dir for non-tests
2015-10-12 00:08:06 -07:00
Jonathan Ong
ef467caabd readme: link to AUTHORS file 2015-10-12 00:04:58 -07:00
Jonathan Ong
27e8edc509 update AUTHORS 2015-10-12 00:04:06 -07:00
Robert Sköld
e900f0a44a Use shorthand functions
closes #519
2015-10-12 00:00:41 -07:00
Tejas Manohar
a27781abb5 add myself (tejasmanohar) to the authors list
closes #518
2015-10-11 23:59:05 -07:00
Jonathan Ong
00b3c97258 dev: use istanbul instead of istanbul-harmony
seems to work now…
2015-10-11 21:57:03 -07:00
Tejas Manohar
1a55281fee fix benchmarks- cant use const there 2015-10-11 21:22:33 -07:00
Tejas Manohar
a13ae6fc95 use template strings in readme es6 2015-10-11 21:22:33 -07:00
Tejas Manohar
88c35c1a0e update minimum node version in README 2015-10-11 21:22:33 -07:00
Tejas Manohar
91ecce1d76 use arrow fn to avoid var self = this 2015-10-11 21:22:33 -07:00
Tejas Manohar
ed19e67055 refactor to use ES6 template strings
replace string interp w/ templates in core

use string templating es6 in benchmarks

template strings in tests dir
2015-10-11 21:22:33 -07:00
Tejas Manohar
9f27c1c414 refactor to use ES6 const
change var to const for static require()'d modules

make constant var references in app use const keyword

refactor context to use es6 constants

refactor request to use es6 constants, let block-scope coming next

use const in response object for static refs

make context tests use es6 constants

experimental unit tests -> const

use const for static references in unit test over req

use const for static refs in res tests

update app tests to use const for static refs

make the context test use es6 constants for static refs

use constants in the README
es6 constants seem to work in --harmony on 0.12 too

use const's for immutable refs in benchmarks

ensure all JS files have blank newline at top

add newline to bottom of file where missing

add a webchat freenode link to irc channel

no need to assign error in catch{}-able test

app.silent option to turn off err logging

keep test env logging for backwards-compat
2015-10-11 21:22:33 -07:00
Jonathan Ong
07619f65c3 remove support for node < 4 2015-10-11 21:22:33 -07:00
Tejas Manohar
96c1e0998f don't use 'exports', only 'module.exports'
closes #513
2015-10-11 21:18:32 -07:00
Jonathan Ong
af0ae08dc4 1.1.0 2015-10-11 16:31:05 -07:00
Tejas Manohar
0b1b49cb8a use strict in all .js files
closes #508
2015-10-11 16:08:32 -07:00
fengmk2
f875eb0c30 Merge pull request #486 from tejasmanohar/app_silent
app.silent option to turn off err logging
2015-10-09 11:22:58 +08:00
Tejas Manohar
6c19c41c09 keep test env logging for backwards-compat 2015-10-08 19:02:36 -05:00
TJ Holowaychuk
65cc864c9b Merge pull request #491 from tejasmanohar/remove_err_assignment
no need to assign error in catch{}-able test
2015-10-08 14:39:15 -07:00
Tejas Manohar
e717733aa8 no need to assign error in catch{}-able test 2015-10-06 19:43:09 -05:00
TJ Holowaychuk
237e6c4f60 Merge pull request #490 from tejasmanohar/webchat_irc_link
add a webchat freenode link to irc channel
2015-10-06 09:22:19 -07:00
TJ Holowaychuk
65b59a9509 Merge pull request #489 from tejasmanohar/blank_newline_at_top
ensure all JS files have blank newline at top/bot
2015-10-06 09:21:40 -07:00
Tejas Manohar
10f9811e37 add a webchat freenode link to irc channel 2015-10-05 18:22:56 -05:00
Tejas Manohar
5e21238594 add newline to bottom of file where missing 2015-10-05 18:19:32 -05:00
Tejas Manohar
ea4754e332 ensure all JS files have blank newline at top 2015-10-05 18:18:03 -05:00
Tejas Manohar
c369b33b23 app.silent option to turn off err logging 2015-10-05 17:51:26 -05:00
dead_horse
b2bcbcec7c docs: add request.origin 2015-10-03 11:38:48 +08:00
TJ Holowaychuk
1ed691dde3 fix some test formatting 2015-10-02 18:49:20 -07:00
TJ Holowaychuk
2359b6a769 Merge pull request #483 from squarejaw/test-coverage
Increase test coverage
2015-10-02 18:44:49 -07:00
Bryan Bess
0192d21d73 Increase test coverage 2015-10-02 19:18:05 -05:00
fengmk2
039217ad4e Merge pull request #481 from squarejaw/typo
Fix typo in test
2015-09-26 22:46:23 +08:00
Bryan Bess
890244fc74 Fix typo 2015-09-26 09:23:17 -05:00
Yiyu He
b3d46bd69e Merge pull request #480 from chentsulin/ctx.origin
implement ctx.origin
2015-09-21 22:23:44 +08:00
C.T. Lin
85860587cc implement ctx.origin 2015-09-20 23:49:37 +08:00
mdemo
520163fe57 add node 4.x on travis ci 2015-09-10 01:36:38 +08:00
Jonathan Ong
9bf6bf1c07 improve verbage based on comments 2015-08-30 22:07:54 -07:00
llambda
30c8723705 Update Readme.md 2015-08-30 22:05:33 -07:00
fengmk2
f530219862 Merge pull request #475 from koajs/app-context-docs
Add docs for app.context
2015-08-31 12:06:53 +08:00
Travis Jeffery
e710b4b05f add app.context docs 2015-08-30 22:20:53 -05:00
dead_horse
6563e6ac3d get rid of 0.11 2015-08-30 23:42:44 +08:00