Skip to content

Commit

Permalink
Merge pull request #158 from dblock/document-bodyparser
Browse files Browse the repository at this point in the history
Documented body-parser changes from #155. [ci skip]:
  • Loading branch information
dblock committed Feb 5, 2017
2 parents f4b84e8 + 5ebf3f8 commit 0c3aedb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### 2.5.0 (Next)

* [#152](https://github.com/alexa-js/alexa-app/issues/152): Mount a JSON body-parser after verifier middleware in express integration - [@dblock](https://github.com/dblock).
* [#152](https://github.com/alexa-js/alexa-app/issues/152): Mounted a JSON body-parser after verifier middleware and removed `bodyParser.urlencoded` in Express integration - [@dblock](https://github.com/dblock).
* [#150](https://github.com/alexa-js/alexa-app/pull/150): Added `preRequest` and `postRequest` to express integration - [@dblock](https://github.com/dblock).
* [#150](https://github.com/alexa-js/alexa-app/pull/150): Dump schema and utterances in debug mode - [@dblock](https://github.com/dblock).
* [#144](https://github.com/alexa-js/alexa-app/pull/144): Simplified and refactored the `express` interface - [@mreinstein](https://github.com/mreinstein).
Expand Down
10 changes: 9 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Upgrading to >= 2.5.0

#### Changes in express integration
#### Changes in Express integration interface

The interface for mounting alexa-app with Express.js has changed from taking the app, path and debug option to receiving an object.

Expand All @@ -28,6 +28,14 @@ app.express({

See [#144](https://github.com/alexa-js/alexa-app/pull/144) and [#150](https://github.com/alexa-js/alexa-app/pull/150) for more information.

#### Changes in body-parsers

The `.urlencoded` body-parser has been removed.

The `.json` body-parser is only mounted when `checkCert: false`, because `verifier-middleware` acts as a body-parser as well.

See [#155](https://github.com/alexa-js/alexa-app/pull/155) for more information.

#### Changed session object behavior

When working with the session, `session.get` will return a deep copy of the value stored in the session. If this value is an object and you make direct changes to the object, you must call `session.set` again in order for the changes to propagate to the session.
Expand Down

0 comments on commit 0c3aedb

Please sign in to comment.