From 83fd9832c3d1468378a77316b3a65eb067b76cfc Mon Sep 17 00:00:00 2001 From: Alan Smith Date: Wed, 10 Aug 2016 13:20:30 +0100 Subject: [PATCH] Removed promises pollyfill, updated readme and version bump (#36) * Removed promises pollyfill, updated readme and version bump * updated appveyor node version * Updated Travis CI test file --- .travis.yml | 3 +-- README.md | 8 ++++++-- appveyor.yml | 8 +------- package.json | 7 +++++-- src/AutoLaunchLinux.coffee | 1 - src/AutoLaunchMac.coffee | 1 - src/AutoLaunchWindows.coffee | 1 - src/index.coffee | 2 -- 8 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 05d299e..ad30de5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ language: node_js node_js: - - "0.10" - - "0.11" + - "4.0.0" diff --git a/README.md b/README.md index 2800d3a..0c91ed3 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,11 @@ node-auto-launch --- -Launch applications or executables at login (Mac, Windows and Linux). Perfect for [NW.js](https://github.com/nwjs/nw.js) and [Electron](http://electron.atom.io/) apps. +Launch applications or executables at login (Mac, Windows and Linux). Perfect for [NW.js](https://github.com/nwjs/nw.js) and [Electron](http://electron.atom.io/) apps. Also handles Electron updates on Windows so the correct version of your app is launched when using the auto updater. + +## Notes + - Node V4 or greater is required. + - With v3.0 the ES6-Promise dependency has been removed. This module automatically overwrote Promise in the global namespace. If upgrading to v3 check to make sure this will not affect your project. ## Installation @@ -41,7 +45,7 @@ appLauncher.isEnabled().then(function(enabled){ if(enabled) return; return appLauncher.enable() }).then(function(err){ - + }); ``` diff --git a/appveyor.yml b/appveyor.yml index 8bd7021..b860333 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,13 +1,7 @@ # Test against these versions of Node.js. environment: matrix: - - nodejs_version: "0.10" - - nodejs_version: "0.11" - -# Allow failing jobs for bleeding-edge Node.js versions. -matrix: - allow_failures: - - nodejs_version: "0.11" + - nodejs_version: "4.0.0" platform: - x86 diff --git a/package.json b/package.json index 1c14675..89891bf 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,14 @@ { "name": "auto-launch", - "version": "2.1.0", + "version": "3.0.0", "description": "Launch node applications or executables at login (Mac, Windows, and Linux)", "main": "dist/index.js", "scripts": { "test": "gulp test" }, + "engines" : { + "node": ">=4.0.0" + }, "repository": { "type": "git", "url": "https://github.com/4ver/node-auto-launch" @@ -14,6 +17,7 @@ "login", "launch", "node-webkit", + "electron", "boot", "login-items" ], @@ -40,7 +44,6 @@ "homepage": "https://github.com/4ver/node-auto-launch", "dependencies": { "applescript": "^1.0.0", - "es6-promise": "^3.1.2", "mkdirp": "^0.5.1", "untildify": "^2.1.0", "winreg": "1.0.1" diff --git a/src/AutoLaunchLinux.coffee b/src/AutoLaunchLinux.coffee index f2fe9a8..7135a21 100644 --- a/src/AutoLaunchLinux.coffee +++ b/src/AutoLaunchLinux.coffee @@ -1,7 +1,6 @@ fs = require('fs') mkdirp = require('mkdirp') untildify = require('untildify') -Promise = require('es6-promise').Promise module.exports = getDir: (opts) -> diff --git a/src/AutoLaunchMac.coffee b/src/AutoLaunchMac.coffee index 60be0c1..8aa5cfa 100644 --- a/src/AutoLaunchMac.coffee +++ b/src/AutoLaunchMac.coffee @@ -1,5 +1,4 @@ applescript = require 'applescript' -Promise = require('es6-promise').Promise tellTo = 'tell application "System Events" to ' diff --git a/src/AutoLaunchWindows.coffee b/src/AutoLaunchWindows.coffee index 3a44cc6..2bbbe9d 100644 --- a/src/AutoLaunchWindows.coffee +++ b/src/AutoLaunchWindows.coffee @@ -1,7 +1,6 @@ fs = require 'fs' path = require 'path' Winreg = require 'winreg' -Promise = require('es6-promise').Promise regKey = new Winreg hive: Winreg.HKCU diff --git a/src/index.coffee b/src/index.coffee index e8a01cd..a90a105 100644 --- a/src/index.coffee +++ b/src/index.coffee @@ -1,5 +1,3 @@ -Promise = require('es6-promise').Promise - # Public: REPLACE_WITH_DESCRIPTION module.exports = class AutoLaunch