Commit Graph

762 Commits (664161a227a9e6253c10313886107581ab05fc5f)

Author SHA1 Message Date
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
jongleberry c2206a287d 2.0.0-alpha.1 2015-10-22 16:37:49 -07:00
jongleberry 2e8cdab8bc support async functions
closes #530
closes #415
2015-10-22 16:34:59 -07:00
jongleberry 16db0f60c4 eslint: add no-var rule 2015-10-22 15:46:47 -07:00
jongleberry e7c72d7873 ⬆️ istanbul@0.4 2015-10-22 15:43:15 -07:00
Santiago Sotomayor 0c438ed435 unset content-type when the type is unknown
closes #532
closes #536
2015-10-22 15:39:16 -07:00
TJ Holowaychuk 653d7ed26d Merge pull request #529 from aquascaper/api-index-typo
Fixed typo in docs/api/index.md
2015-10-13 13:21:08 -07:00
Arjun 3045b283fd Fixed typo in docs/api/index.md 2015-10-13 16:09:01 -04:00
jongleberry e6d76da1e5 Merge pull request #525 from targos/eslint
eslint
2015-10-13 10:18:05 -07:00
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