Skip to content

Commit

Permalink
v0.11.0
Browse files Browse the repository at this point in the history
- Replaced object.observe() with the new ES6 Proxy - Solves #42, #60,
#72
- Only Support Node Version >= 6.4.0
- New MVC Test Suite
  • Loading branch information
adamhalasz committed Mar 2, 2017
1 parent 79b77f6 commit 8e0f30f
Show file tree
Hide file tree
Showing 12 changed files with 257 additions and 101 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
@@ -1,8 +1,10 @@
language: node_js
node_js:
- "6.0.0"
- "5.3.0"
- "4.2.4"
- "8.0.0"
- "7.7.1"
- "7.5.0"
- "6.10.0"
- "6.4.0"
addons:
hosts:
- test.local.com
Expand Down
94 changes: 52 additions & 42 deletions Changelog.md
@@ -1,39 +1,49 @@
## v0.10.8 ** - 2016 June 13
## v0.11.0 ** - March 2, 2017
- Replaced object.observe() with the new ES6 Proxy
- Only Support Node Version >= 6.4.0
- New MVC Test Suite

## v0.10.9 ** - January 31, 2017
- Bug Fix: User decoreURIComponent on the signal.body
- New Example: Simple File Serving Example


## v0.10.8 ** - June 13, 2016
- Upgrade `diet-qs` with the new `querystrings` module that fixes nested Query String to Array conversions.
- New Utils Controller
- Moved isset() into the Util Controller

## v0.10.6 ** - 2016 May 10
## v0.10.6 ** - May 10, 2016
- Ports are now wildcards for every hostname. Listening on a Port (`app.listen(8000)`) will accept any Hostname request within that Port. Listening on a Hostname (`app2.listen('http://test.com:8000/')`) within that Port will have priority.

## v0.10.5 ** - 2016 April 29
## v0.10.5 ** - April 29, 2016
- `Error.stack` not always present on Error in controllers/router.js by @demarius
- `initialized` is not constant in index.js (es6, strict mode fix)
- Replaced Native Object.observe with `object.observe` module to support observe in Node >= v6.0.0

## v0.10.4 ** - 2016 March 10
## v0.10.4 ** - March 10, 2016
- Check if path contains query in Signal#redirect by @demarius

## v0.10.3 - v0.10.4 ** - 2016 March 3
=======
## v0.10.4 ** - 2016 March 24
## v0.10.4 ** - March 24, 2016
- Check if path contains query in Signal#redirect. Thanks @demarius

## v0.10.3 ** - 2016 March 24
## v0.10.3 ** - March 24, 2016
>>>>>>> Stashed changes
- AB Load Testing Comparison between Vanilla Node, Diet.js and Express.js

## v0.10.2 ** - 2016 Feburary 17
## v0.10.2 ** - Feburary 17, 2016
- add second argument `isLast` to **$.end(yourData, isLast)**, **$.json(yourData, isLast)**, **$.success(yourData, isLast)** and **$.failure(yourData, isLast)**. Setting `isLast` to true will stop the execution of the middleware chain completely
```
// usage
$.end('hello world', true)
```

## v0.10.1 ** - 2016 January 25
## v0.10.1 ** - January 25, 2016
- Check existence of app.routes and routes in hosts.js and iterator.js

## v0.10.0 ** - 2016 January 24 - Major Release
## v0.10.0 ** - January 24, 2016 - Major Release
- Drop support for Node versions below v4.2.4
- Middleware renamed to Controller
- Introducing ES6 Generator Controllers (`yield` and `*`)
Expand Down Expand Up @@ -73,23 +83,23 @@
- Events
- Generators

## v0.9.23 - v0.9.26 ** - 2016 January 4
## v0.9.23 - v0.9.26 ** - January 4, 2016
- Introducing `app.model()`
- Introducing `app.view()`
- Introducing `app.controller()`
- Added support for `yo` (generator-diet)
- Support for node 4.2.4, 5.3.0

## v0.9.22** - 2015 October 24
## v0.9.22** - October 24, 2015
- Body/footer separation in host.js for clarity

## v0.9.21** - 2015 October 24
## v0.9.21** - October 24, 2015
- Don't JSON stringify `$.failure()` and `$.success()` responses because `$.end()` does it too

## v0.9.19 - v0.9.20** - 2015 October 23
## v0.9.19 - v0.9.20** - October 23, 2015
- Fixed a https bug in host.js - if the port was undefined in the header it used 80. For https it should be 443. Now it's using the server's configuration to choose a default fallback protocol.

## v0.9.16 - **v0.9.18** - 2015 October
## v0.9.16 - **v0.9.18** - October, 2015
- Chainable Server Instance Creation, Listening and Routing. Now you can do stuff like:
```
server()
Expand All @@ -100,32 +110,32 @@ server()
```
- Fixed bugs with `$.end`

## v0.9.8 - **v0.9.16** - 2015 June - October
## v0.9.8 - **v0.9.16** - June - October, 2015
- `$.end()` now serves JSON responses on requests where the `"x-requested-with"` == `"XMLHttpRequest"` or the `"Authorization"` header is set and contains `"Bearer"` or `"Token"` in it's value
- `$.end()` now accepts JSON objects as a value and sends it as a JSON response
- app.html now enables $.html as the default response when using $.end
- Added `$.html()` - by default it just sets the content-header to html - to ovewrite it set a handler for `$.htmlModule (input)` in your diet header modules
- Bug Fixes
- Added Unit Tests for the new `$.end()` function

## v0.9.7 - 2015 June
## v0.9.7 - June, 2015
- Fixed a bug that didn't allow registering named addresses without a port

## v0.9.6 - 2015 June
## v0.9.6 - June, 2015
- Fixed a bug in server options that caused to display the diet header for every server instance

## v0.9.5 - 2015 June
## v0.9.5 - June, 2015
- A server instance now has an options attribute `server(options)`
- Added `options.silent` to server options which if set to `true` disables all logs generated by diet for that Server Instance

## v0.9.4 - 2015 June
## v0.9.4 - June, 2015
- Treat localhost addresses equally (127.0.0.1, 192.168.99.100, localhost)
- Listen on multiple addresses without redirects or host configs

## v0.9.3 - 2015 May
## v0.9.3 - May, 2015
- The body for POST and PUT methods now require the appropriate "Content-Type" header to be parsed. For URL encoded body "application/x-www-form-urlencoded" is required, for JSON requests "application/json". If no "Content-Type" is specified then $.body contains the raw body content.

## v0.9.2 - 2015 February
## v0.9.2 - February, 2015
- Support for `options`, `put`, `head`, `patch`, `trace` and `delete` HTTP methods
- Added `app.put`
- Added `app.head`
Expand All @@ -136,12 +146,12 @@ server()
- Fixed body parsing mechanism. Every route's body is parsed that has a Content-Type or Transfer-Encoding Header. According to rfc2616-sec4


## v0.9.1 - 2014 December - Security Patch
## v0.9.1 - December, 2014 - Security Patch
- 100% Unit Test Coverage
- Build coverage with TravisCI
- Fixed a bug that didn't allow to create https server with other ports than 80

## v0.9.0 - 2014 December - Major Release
## v0.9.0 - December, 2014 - Major Release
- Completely rewritten source code
- New website with better documentation
- Dropped the `plugin system`
Expand All @@ -154,30 +164,30 @@ server()
- Changed app.error to record errors instead of ending the response
- Fixed many bugs

## v0.8.6 - 2014 October
## v0.8.6 - October, 2014
- Fixed a bug that caused starting an HTTPS server in failure with port 80

## v0.8.5 - 2014 September
## v0.8.5 - September, 2014
- Better Docs

## v0.8.4 - 2014 September
## v0.8.4 - September, 2014
- support for safe asynchronous error handling. replaced try catch with domains
- setting `signal.passed` to false also stops the plugin chain just as `signal.data.passed`

## v0.8.3 - 2014 September
## v0.8.3 - September, 2014
- fixed a bug in the chain. when `signal.data.passed` is `false` and `$.end()` is called the chain stops and other listeners on the same route will not be called.
- calling `$.error()` from now on sets `$.passed` to `false`

## v0.8.2 - 2014 September
## v0.8.2 - September, 2014
- updated `readme`


## v0.8.1 - 2014 September
## v0.8.1 - September, 2014
- added `app.server`
- cleaned up unnecessary `console.logs`


## v0.8.0 - 2014 September - **Major Release**
## v0.8.0 - September, 2014 - **Major Release**
- Unit Test Coverage 100%
- Deprecated `new App` now `require('diet')` returns a server object
- Replaced the `querystring` module with the new `diet-qs`
Expand All @@ -193,27 +203,27 @@ server()
- Added `examples`
- Fixed every known bug

## v0.7.x - 2014 August
## v0.7.x - August, 2014
- Started Unit Testing
- Fixed several bugs
- Better documentation
- Extended the `Signal $`

## v0.6.x - 2014 Summer
## v0.6.x - Summer, 2014
- Changed `new Domain` to `new App`
- Extended the `Signal $`
- Fixed several bugs
- Better documentation

## v0.5.x - 2014 Spring - **Major Release**
## v0.5.x - Spring, 2014 - **Major Release**
- **Rewrote diet completely from the ground up**
- Introducing` Plugins`
- Introducing the `new Domain` function
- Introducing the `Signal $`
- Introducing Sinatra like `Router`
- MIT Licensed

## v0.4.0 - 2013 Winter - 2014 Winter
## v0.4.0 - Winter, 2013 - Winter, 2014
- Separated the code into several modules
- Upload into diet-upload
- Cookies into diet-cookies
Expand All @@ -227,10 +237,10 @@ server()
- Next into nextjs
- Fixed Several Bugs

## v0.3.x - v0.4.0 2013 Spring & Summer - **Major Release**
## v0.3.x - v0.4.0 Spring & Summer 2013 - **Major Release**
- Fixed several bugs

## v0.2.5 - Started on 2013 Februray 20 - Winter
## v0.2.5 - Started on February 20, 2013 - Winter
- app.dictionary introduced
- response.head introduced
- response.html now includes arguments from response.head as a default
Expand All @@ -239,7 +249,7 @@ server()
- comet.onExit introduced
- cheerio introduced for html manipulation

## v0.2.4 - Started on 2013 Junuary 23 - Winer
## v0.2.4 - Started on January 23, 2013 - Winer
- Cross file locals introduced inside the `html` module
- Echo is now not part of the `html` module
- Introduced app.notFound for 404 error routing
Expand All @@ -250,26 +260,26 @@ server()
no longer requires "/public" as the public folder's name
instead uses the custom one specified in app.options.public

## v0.2.3 - Started on 2012 October 3 - Fall
## v0.2.3 - Started on October 3, 2012 - Fall
- MySQL data mapping
- MySQL is now based on the mysql.js javascript module
- MySQL API drastically changed
- Better form handling logic with `check` module
- Improved overall stability


## v0.2.2 - Started on 2012 - Spring
## v0.2.2 - Started on Spring, 2012
- Added subdomain support with app.subdomain()
- Better cookie set


## v0.2.1 - Started on 2011 - Winter
## v0.2.1 - Started on Winter, 2011
- Extension Apps with app.extend();
for a site which requires additional embeddable systems to improve it's customer experience, for example a forum, feedback or blog system
- Very Simple Image Processing API with ImageMagick


## v0.2.0 - Started on 2011 October 31 - Fall - **Major Release**
## v0.2.0 - Started on October 31, 2011 - Fall - **Major Release**
- Easy HTTP/HTTPS server creation
- Advanced Route Handling
- With Manual URL handling (ex: /home, /about, /work)
Expand All @@ -287,6 +297,6 @@ server()
- Stand alone HTTP Router - dropped expressjs
- Stand alone HTML Parser - dropped jade

## v0.1.0 - Started on 2011 June 1 - Summer
## v0.1.0 - Started on June 1, 2011 - Summer
- mysql support for express
- based on express and jade

0 comments on commit 8e0f30f

Please sign in to comment.