diff --git a/CHANGELOG.md b/CHANGELOG.md index 15cbf04..3f273b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,5 +3,6 @@ - [#40](https://github.com/martinic/ember-cli-deploy-couchdb/pull/40) Adjusting README with instructions for using ember-cli-deploy-build [@dehuszar](https://github.com/dehuszar) - Deprecation of baseURL in ember-cli >= 2.7.0 - Remove public folder +- Fix DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead. Thank you to all who took the time to contribute! diff --git a/index.js b/index.js index 868fc5d..99d7c92 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,7 @@ module.exports = { var db = this.readConfig('db'); this.log('Start Upload', { color: 'green' }); - var rsvp = new RSVP(function(resolve, reject) { + var promise = new RSVP.Promise(function(resolve, reject) { push(db, couchDir, function(error, response) { if(error) { this.log(error + ' ' + response, { color: 'red' }); @@ -119,7 +119,7 @@ module.exports = { } }.bind(this)); }.bind(this)); - return rsvp; + return promise; }, }); return new DeployPlugin(); diff --git a/package.json b/package.json index ced31de..f2b96c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-cli-deploy-couchdb", - "version": "0.1.3", + "version": "0.1.4", "description": "Ember CLI Deploy plugin for CouchDB.", "directories": { "doc": "doc",