From fb5c5f5864be62c62a40c9b9a999d140a46464db Mon Sep 17 00:00:00 2001 From: Nick Richardson Date: Tue, 7 Feb 2017 15:15:57 -0600 Subject: [PATCH] Upgrade to 4.0.0-beta --- README.MD | 3 ++- package.json | 20 ++++++++------------ src/hotkey.options.ts | 6 +++--- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/README.MD b/README.MD index 551eee0..fb70ad5 100644 --- a/README.MD +++ b/README.MD @@ -1,5 +1,6 @@ # angular2-hotkeys -Angular 2.4.x Compatible +Angular 2.4.x Compatible (v1.x.x) +Angular 4.0.0-beta.x Compatible (v2.x.x) ## Installation To install this library, run: diff --git a/package.json b/package.json index d744b8c..8563396 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular2-hotkeys", - "version": "1.0.3", + "version": "2.0.0", "scripts": { "lint": "tslint src/**/*.ts", "test": "tsc && karma start", @@ -33,20 +33,16 @@ "mousetrap": "^1.6.0" }, "devDependencies": { - "@angular/core": "^2.4.6", - "@angular/common": "^2.4.6", - "@angular/compiler": "^2.4.6", - "@angular/compiler-cli": "^2.4.6", - "@angular/platform-server": "^2.4.6", + "@angular/common": "4.0.0-beta.6", + "@angular/compiler": "4.0.0-beta.6", + "@angular/compiler-cli": "4.0.0-beta.6", + "@angular/core": "4.0.0-beta.6", + "@types/core-js": "^0.9.35", "codelyzer": "^0.0.28", "rxjs": "^5.0.1", "tslint": "^3.15.1", - "typescript": "2.0.2", - "zone.js": "0.7.2", - "@types/es6-shim": "^0.31.32", - "@types/protractor": "^4.0.0", - "@types/jasmine": "^2.5.40", - "@types/selenium-webdriver": "^2.53.39" + "typescript": "2.1.5", + "zone.js": "0.7.2" }, "engines": { "node": ">=0.8.0" diff --git a/src/hotkey.options.ts b/src/hotkey.options.ts index af67939..a2d785d 100644 --- a/src/hotkey.options.ts +++ b/src/hotkey.options.ts @@ -1,4 +1,4 @@ -import {OpaqueToken} from '@angular/core'; +import {InjectionToken} from '@angular/core'; export interface IHotkeyOptions { /** @@ -14,5 +14,5 @@ export interface IHotkeyOptions { */ cheatSheetDescription?: string; } -; -export const HotkeyOptions = new OpaqueToken('HotkeyOptions'); + +export const HotkeyOptions = new InjectionToken('HotkeyOptions');