Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 32252a5

Browse files
committed
Merge branch 'stable' into tl
Conflicts: package.json test/integration/hook.cors_csrf.test.js test/unit/router.bind.test.js
2 parents 470038b + 9032ee7 commit 32252a5

File tree

7 files changed

+212
-197
lines changed

7 files changed

+212
-197
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
* [BUGFIX] Fix [RangeError: Maximum call stack size exceeded] error in PubSub hook
77
* [ENHANCEMENT] Support layout for Ractive template engine
88

9+
### 0.11.2
10+
11+
* [BUGFIX] Fixes to allow proper installation / execution in environments using Node 4 and/or NPM 3.
12+
13+
### 0.11.1
14+
15+
* Shhhh nothing to see here (version skipped)
916

1017
### 0.11.0
1118

lib/hooks/csrf/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = function(sails) {
7777
var allowCrossOriginCSRF = sails.config.csrf.origin.split(',').map(trim).indexOf(req.headers.origin) > -1;
7878

7979
if (sails.config.csrf.protectionEnabled) {
80-
var connect = require('express/node_modules/connect');
80+
var connect = require('connect');
8181

8282
try {
8383
return connect.csrf()(req, res, function() {

lib/hooks/session/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var signCookie = require('cookie-signature').sign;
2222

2323
// (this dependency is only here for sails.session.generate()-
2424
// which is really only here to enable socket lifecycle callbacks)
25-
var ConnectSession = require('express/node_modules/connect').middleware.session.Session;
25+
var ConnectSession = require('connect').middleware.session.Session;
2626

2727

2828

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sails",
33
"author": "Mike McNeil <@mikermcneil>",
4-
"version": "0.11.1-rc1",
4+
"version": "0.11.2",
55
"description": "API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)",
66
"homepage": "http://sailsjs.org",
77
"keywords": [
@@ -34,6 +34,7 @@
3434
"captains-log": "~0.11.8",
3535
"colors": "~0.6.2",
3636
"commander": "~2.1.0",
37+
"connect": "2.25.0",
3738
"connect-flash": "~0.1.1",
3839
"cookie": "0.1.2",
3940
"cookie-signature": "1.0.4",
@@ -71,13 +72,13 @@
7172
"sails-build-dictionary": "~0.10.1",
7273
"sails-disk": "~0.10.0",
7374
"sails-generate": "~0.12.0",
74-
"sails-hook-sockets": "^0.11.13",
75+
"sails-hook-sockets": "^0.11.25",
7576
"sails-stringfile": "~0.3.0",
7677
"sails-util": "~0.10.3",
7778
"semver": "~2.2.1",
7879
"skipper": "~0.5.5",
7980
"uid-safe": "^1.0.1",
80-
"waterline": "0.10.26"
81+
"waterline": "~0.10.17"
8182
},
8283
"devDependencies": {
8384
"root-require": "~0.2.0",
@@ -86,7 +87,6 @@
8687
"istanbul": "*",
8788
"wrench": "~1.5.1",
8889
"benchmark": "~1.0.0",
89-
"microtime": "~1.2.0",
9090
"colors": "~0.6.2",
9191
"expect.js": "~0.2.0",
9292
"should": "~2.1.1",

0 commit comments

Comments
 (0)