Commit graph

843 commits

Author SHA1 Message Date
Yiyu He
6a5c2e529a Merge pull request #595 from nvartolomei/master
Fix param tag on Application.use method
2015-11-14 22:57:45 +08:00
Nicolae Vartolomei
61f7c6b5c5 Fix param tag on Application.use method 2015-11-14 15:46:29 +02:00
Yiyu He
667628d333 Merge pull request #592 from nswbmw/master
update examples in readme
2015-11-08 23:13:14 +08:00
nswbmw
aac3d70895 update readme 2015-11-08 13:26:50 +08:00
fengmk2
da6c63da59 Merge pull request #588 from koajs/539-babel-test
test: add a babel example
2015-11-07 12:12:40 +08:00
jongleberry
a09000357d add docs for babel 2015-11-06 09:45:53 -08:00
jongleberry
65f645d341 use babel-plugin-transform-async-to-generator 2015-11-06 09:40:44 -08:00
jongleberry
eb0bd4c2c3 test: fix use-strict typo 2015-11-06 09:38:00 -08:00
jongleberry
51b51331ba us eslint-plugin-babel for better listing 2015-11-06 09:37:35 -08:00
jongleberry
a6547bcbce ⬆️ babel and use async arrow functions 2015-11-05 08:49:20 -08:00
jongleberry
09ada29881 test: add a babel example 2015-11-05 08:47:08 -08:00
dead_horse
848a9c885b ocd 2015-11-06 00:42:14 +08:00
Yiyu He
6e76e20f43 Merge pull request #589 from frankxin/patch-1
correct a spelling error : appropriately
2015-11-05 10:50:07 +08:00
dead_horse
34e8325a39 Release 2.0.0-alpha.3 2015-11-05 10:41:00 +08:00
Yiyu He
b83405f052 Merge pull request #586 from koajs/url
ensure parseurl always working as expected
2015-11-05 10:37:11 +08:00
frank
4b5ef85f29 correct a spelling error : appropriately 2015-11-05 10:13:07 +08:00
dead_horse
08057e386a ensure parseurl always working as expected 2015-11-04 15:08:49 +08:00
jongleberry
ad6f752cff eslint: add prefer-arrow-callback 2015-11-02 11:25:12 -08:00
broucz
4b1a1da652 test: switch all functions to arrow functions
closes #553

Update test: application -> use() should throw if not a function

Fix lint

Use arrow function

Refactor test using arrow function

Remove non mandatory brackets

fix for merge

Fix: missing refactor after merge

Use arrow function for old generator
2015-11-02 11:22:05 -08:00
TJ Holowaychuk
5bfe0d4081 Merge pull request #579 from stojanovic/fix/todo-headers
Remove 'TODO' comment for this.res._headers
2015-10-31 12:23:38 -07:00
Slobodan Stojanovic
0470997854 Remove 'TODO' comment for this.res._headers
Node probably doesn't plan to change this so there's no point of having 'TODO' comment in the code.
2015-10-31 19:21:40 +01:00
TJ Holowaychuk
439f051776 Merge pull request #570 from koajs/fix-app-inspect
fix Application.inspect() – missing .proxy value. Closes #563
2015-10-31 11:15:09 -07:00
TJ Holowaychuk
308ceee47d Merge pull request #574 from stojanovic/fix/test-todo
Remove TODO from the response type test
2015-10-31 06:10:16 -07:00
Slobodan Stojanovic
275356a5ce Remove TODO from the response type test 2015-10-31 14:01:26 +01:00
blaz
3560651bbc Add usage of koa-convert for legacy middleware
closes #565
closes #538
2015-10-30 20:20:00 -07:00
Julian Gruber
eb03d9f61e Merge pull request #573 from stojanovic/feat/node-5
Add node 5 to travis
2015-10-30 10:04:49 +01:00
Slobodan Stojanovic
a135d932a0 Add node 5 to travis 2015-10-30 07:34:23 +01:00
TJ Holowaychuk
aa1fbbff4a fix Application.inspect() – missing .proxy value. Closes #563
fix trailing comma
2015-10-29 09:56:15 -07:00
Slobodan Stojanovic
b08facb7bd Fix indentation and add .eslint rules
closes #555
2015-10-29 09:55:34 -07:00
Slobodan Stojanovic
6d3b81fe50 Update benchmark, remove --harmony flag and use arrow functions
closes #567

Fix benchmark middleware - in promises body is on ctx not on this
2015-10-28 14:26:04 -07:00
Tejas Manohar
ae9edb6dc9 docs: babel-node required -> Babel
closes #562
2015-10-28 12:31:10 -07:00
jongleberry
664161a227 2.0.0-alpha.2 2015-10-27 16:31:24 -07:00
Felix Becker
ebb4850709 Remove co dependency
closes #558
closes #557

Change tests to use plain functions and promises

Add test

return promise in middleware

Change benchmarks to use plain functions and promises

typeerror
2015-10-27 16:24:25 -07:00
Tejas Manohar
ded7a17140 deprecate env-specific logging in v2
closes #561
2015-10-27 16:21:19 -07:00
jongleberry
72680825d0 Merge pull request #542 from menems/master
Add 2.0.0 Examples #538
2015-10-27 16:11:33 -07:00
blaz
d280122cf4 Add 2.0.0 Examples 2015-10-28 00:02:27 +01:00
Slobodan Stojanovic
5d4df1086d Add arrow functions rules to .eslint file
closes #549
2015-10-25 13:26:57 -07:00
Slobodan Stojanovic
cc1d41f5e3 Refactor tests - add arrow functions
Refactor tests - move .should to the same line as arrow function
2015-10-25 13:26:36 -07:00
broucz
e859c602d1 Update test: application -> use() should throw if not a function
closes #550

Fix lint

Use arrow function

Remove not necessary import
2015-10-25 12:53:05 -07:00
fundon
db7da4eb4f update bench case
closes #544
2015-10-25 12:48:26 -07:00
TJ Holowaychuk
0cbe1cab6f Merge pull request #547 from stojanovic/master
Refactor application.js - use arrow function in callback and remove EventEmitter from 'event' module
2015-10-24 17:49:32 -07:00
Julian Gruber
0363608eba Merge pull request #548 from HarleyKwyn/patch-1
Fix typo in example for Koa instantiation
2015-10-24 21:37:31 +02:00
Kwyn Alice Meagher
dce805b0ad Fix typo in example for Koa instantiation
need a capital Koa constant
2015-10-24 12:35:08 -07:00
Slobodan Stojanovic
dac250b3af Refactor - EventEmitter is already exported by 'events' module
The 'events' module already exports 'EventEmitter' constructor function - https://github.com/nodejs/node/pull/2921
2015-10-24 17:30:25 +02:00
Slobodan Stojanovic
0df400fa60 Refactor application.js - use arrow function in callback 2015-10-24 16:19:56 +02:00
Julian Gruber
c86e3faeb1 Merge pull request #546 from stojanovic/master
Update docs - add template strings and arrow functions where applicable
2015-10-24 14:18:08 +02:00
Slobodan Stojanovic
863fce310b Update docs - add template strings and arrow functions where applicable 2015-10-24 14:01:53 +02:00
Julian Gruber
95a5bcd3e0 Merge pull request #545 from Pana/master
Update docs
2015-10-24 11:52:56 +02:00
pana
b6b0d02df9 update docs 2015-10-24 17:21:47 +08:00
jongleberry
773aed6622 history: add 1.1.1 2015-10-22 16:40:55 -07:00