Skip to content

Commit

Permalink
feat(component): adjust dependencies for Angular 6 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
The peer dependency for `@angular/core` has been bumped to `^6.0.0`
  • Loading branch information
DethAriel committed May 17, 2018
1 parent 7da3fa9 commit 736c7ae
Show file tree
Hide file tree
Showing 5 changed files with 556 additions and 81 deletions.
3 changes: 1 addition & 2 deletions demo/src/app/examples/preload-api/preload-api-demo.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Injectable, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Observable } from 'rxjs/Observable';
import { BehaviorSubject, Observable } from 'rxjs';

import { RecaptchaLoaderService, RecaptchaModule } from 'ng-recaptcha';

Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,29 @@
"@types/grecaptcha": "^2.0.33"
},
"peerDependencies": {
"@angular/core": "^4.0.0 || ^5.0.0-beta.1"
"@angular/core": "^6.0.0"
},
"devDependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/common": "^6.0.0",
"@angular/compiler": "^6.0.0",
"@angular/compiler-cli": "^6.0.0",
"@angular/core": "^6.0.0",
"@angular/forms": "^6.0.0",
"@angular/platform-browser": "^6.0.0",
"@types/core-js": "^0.9.39",
"angular-precommit": "^1.0.3",
"codelyzer": "^3.0.1",
"codelyzer": "^4.3.0",
"conventional-changelog-cli": "^1.3.1",
"conventional-github-releaser": "^1.1.13",
"del-cli": "^0.2.1",
"gh-pages": "^0.12.0",
"husky": "^0.13.3",
"npm-run-all": "^4.1.2",
"replace-in-file": "^3.0.0-beta.2",
"rxjs": "^5.2.0",
"rxjs": "^6.1.0",
"tslint": "~5.7.0",
"typescript": "^2.2.1",
"zone.js": "^0.8.5"
"typescript": "~2.7.2",
"zone.js": "^0.8.26"
},
"homepage": "https://github.com/DethAriel/ng-recaptcha#readme"
}
4 changes: 1 addition & 3 deletions recaptcha/recaptcha-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
Optional,
PLATFORM_ID,
} from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Observable } from 'rxjs/Observable';
import { of } from 'rxjs/observable/of';
import { BehaviorSubject, Observable, of } from 'rxjs';

export const RECAPTCHA_LANGUAGE = new InjectionToken<string>('recaptcha-language');

Expand Down
2 changes: 1 addition & 1 deletion recaptcha/recaptcha.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Optional,
Output,
} from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { Subscription } from 'rxjs';

import { RecaptchaLoaderService } from './recaptcha-loader.service';
import { RECAPTCHA_SETTINGS, RecaptchaSettings } from './recaptcha-settings';
Expand Down
Loading

0 comments on commit 736c7ae

Please sign in to comment.