diff --git a/.gitignore b/.gitignore index aae26829..b39f2801 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ config.status* config/environments/*.js .idea .vscode +.nvmrc tools/munin/windshaft.conf logs/ pids/ diff --git a/HOWTO_RELEASE b/HOWTO_RELEASE index eedee1d0..75f7814e 100644 --- a/HOWTO_RELEASE +++ b/HOWTO_RELEASE @@ -4,8 +4,7 @@ 4. Recreate npm-shrinkwrap.json with: `npm install --no-shrinkwrap && npm shrinkwrap` 5. Commit package.json, npm-shrinwrap.json, NEWS 6. git tag -a Major.Minor.Patch # use NEWS section as content -7. Announce on cartodb@googlegroups.com -8. Stub NEWS/package for next version +7. Stub NEWS/package for next version Versions: diff --git a/NEWS.md b/NEWS.md index aa57784b..3f99d66d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,8 +1,21 @@ # Changelog -## 2.87.6 +## 2.88.2 Released 2017-mm-dd +## 2.88.1 +Released 2017-02-21 + +Announcements: +- Upgrades camshaft to [0.50.1](https://github.com/CartoDB/camshaft/releases/tag/0.50.1) + +## 2.88.0 +Released 2017-02-21 + +Announcements: + - Upgrades camshaft to [0.50.0](https://github.com/CartoDB/camshaft/releases/tag/0.50.0). + - Upgrades cartodb-psql to [0.7.1](https://github.com/CartoDB/node-cartodb-psql/releases/tag/0.7.1). + - Upgrades windshaft to [2.7.0](https://github.com/CartoDB/windshaft/releases/tag/2.7.0). ## 2.87.5 Released 2017-02-02 @@ -17,14 +30,12 @@ Released 2017-01-20 Bug fixes: - Be able to not compute NULL categories and null values in aggregation dataviews #617. - ## 2.87.3 Released 2016-12-19 Bug fixes: - Fix overviews-related dataviews problems. See https://github.com/CartoDB/Windshaft-cartodb/pull/604 - ## 2.87.2 Released 2016-12-19 diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index b4cc67cc..f7215943 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -338,6 +338,8 @@ LayergroupController.prototype.staticMap = function(req, res, width, height, zoo LayergroupController.prototype.sendResponse = function(req, res, body, status, headers) { var self = this; + req.profiler.done('res'); + res.set('Cache-Control', 'public,max-age=31536000'); // Set Last-Modified header diff --git a/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js b/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js index b9487095..46efd100 100644 --- a/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js @@ -4,6 +4,13 @@ var dot = require('dot'); dot.templateSettings.strip = false; var queue = require('queue-async'); var PSQL = require('cartodb-psql'); +/** + * cartodb-psql creates `global.Promise` as an empty constructor. + * However, `turbo-carto` relies on a polyfil that fails to create the polyfil + * as it finds `global.Promise` but it doesn't find `Promise.resolve`. + */ +global.Promise = global.Promise || function() {}; +global.Promise.resolve = global.Promise.resolve || function() {}; var turboCarto = require('turbo-carto'); var SubstitutionTokens = require('../../../utils/substitution-tokens'); diff --git a/package.json b/package.json index 8864bd9f..eb25b960 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "windshaft-cartodb", - "version": "2.87.6", + "version": "2.88.2", "description": "A map tile server for CartoDB", "keywords": [ "cartodb"