Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 14 upgrade #263

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "14"
- "16"
cache:
yarn: true
addons:
Expand Down
3 changes: 1 addition & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,5 @@
}
}
}
},
"defaultProject": "ng-recaptcha"
}
}
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ng-recaptcha-base",
"private": true,
"version": "9.0.0",
"version": "10.0.0",
"scripts": {
"demo:file-gen": "ts-node --project ./tsconfig.node.json ./projects/demo/bin/file-gen.ts",
"demo:serve": "yarn demo:file-gen && ng serve demo",
Expand All @@ -27,34 +27,34 @@
},
"peerDependencies": {},
"devDependencies": {
"@angular-devkit/build-angular": "^13.0.1",
"@angular-eslint/builder": "13.0.0-alpha.0",
"@angular-eslint/eslint-plugin": "13.0.0-alpha.0",
"@angular-eslint/eslint-plugin-template": "13.0.0-alpha.0",
"@angular-eslint/schematics": "13.0.0-alpha.0",
"@angular-eslint/template-parser": "13.0.0-alpha.0",
"@angular/animations": "^13.0.0",
"@angular/cdk": "^12.0.0",
"@angular/cli": "^13.0.1",
"@angular/common": "^13.0.0",
"@angular/compiler": "^13.0.0",
"@angular/compiler-cli": "^13.0.0",
"@angular/core": "^13.0.0",
"@angular/forms": "^13.0.0",
"@angular/material": "^12.0.0",
"@angular/platform-browser": "^13.0.0",
"@angular/platform-browser-dynamic": "^13.0.0",
"@angular/router": "^13.0.0",
"@angular-devkit/build-angular": "^14.0.0",
"@angular-eslint/builder": "14.0.0-alpha.0",
"@angular-eslint/eslint-plugin": "14.0.0-alpha.0",
"@angular-eslint/eslint-plugin-template": "14.0.0-alpha.0",
"@angular-eslint/schematics": "14.0.0-alpha.0",
"@angular-eslint/template-parser": "14.0.0-alpha.0",
"@angular/animations": "^14.0.0",
"@angular/cdk": "^14.0.0",
"@angular/cli": "^14.0.0",
"@angular/common": "^14.0.0",
"@angular/compiler": "^14.0.0",
"@angular/compiler-cli": "^14.0.0",
"@angular/core": "^14.0.0",
"@angular/forms": "^14.0.0",
"@angular/material": "^14.0.0",
"@angular/platform-browser": "^14.0.0",
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/router": "^14.0.0",
"@types/core-js": "^2.5.4",
"@types/jasmine": "^3.8.1",
"@types/node": "^12",
"@types/node": "^16",
"@types/query-string": "^6.3.0",
"@typescript-eslint/eslint-plugin": "5.3.0",
"@typescript-eslint/parser": "5.3.0",
"conventional-changelog-cli": "^2.1.1",
"conventional-github-releaser": "^3.1.5",
"coveralls": "^3.1.1",
"eslint": "^8.1.0",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"highlight.js": "^11.1.0",
"http-server": "^0.12.3",
Expand All @@ -67,14 +67,14 @@
"karma-jasmine": "^4.0.1",
"karma-jasmine-html-reporter": "^1.7.0",
"lint-staged": "^11.0.1",
"ng-packagr": "^13.0.2",
"ng-packagr": "^14.0.0",
"prettier": "^2.3.2",
"protractor": "^7.0.0",
"query-string": "^7.0.1",
"rimraf": "^3.0.2",
"rxjs": "^6.5.3",
"ts-node": "^10.1.0",
"typescript": "^4.4.4",
"rxjs": "^7.5.5",
"ts-node": "^10.8.1",
"typescript": "^4.7.3",
"typescript-eslint": "^0.0.1-alpha.0",
"zone.js": "~0.11.4"
}
Expand Down
2 changes: 1 addition & 1 deletion projects/demo/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@import "./base.css";
@import "./highlight.css";
@import "~@angular/material/prebuilt-themes/indigo-pink.css";
@import "@angular/material/prebuilt-themes/indigo-pink.css";
4 changes: 2 additions & 2 deletions projects/ng-recaptcha/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ng-recaptcha",
"description": "Angular component for Google reCAPTCHA",
"version": "9.0.0",
"version": "10.0.0",
"author": "Ruslan Arkhipau <dethariel@gmail.com>",
"license": "MIT",
"repository": {
Expand All @@ -16,7 +16,7 @@
"ng-recaptcha"
],
"peerDependencies": {
"@angular/core": "^13.0.0"
"@angular/core": "^14.0.0"
},
"dependencies": {
"@types/grecaptcha": "^3.0.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, NgZone } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from "@angular/forms";
import { UntypedFormControl, UntypedFormGroup, FormsModule, ReactiveFormsModule, Validators } from "@angular/forms";
import { By } from "@angular/platform-browser";
import { BehaviorSubject } from "rxjs";

Expand Down Expand Up @@ -120,9 +120,9 @@ describe("RecaptchaValueAccessorDirective -> formGroup", () => {
})
class TestComponent {
public loading$ = new BehaviorSubject<boolean>(false);
public formGroup = new FormGroup({
public formGroup = new UntypedFormGroup({
// eslint-disable-next-line @typescript-eslint/unbound-method
captcha: new FormControl(null, [Validators.required]),
captcha: new UntypedFormControl(null, [Validators.required]),
});

public testHideForm(): void {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2017",
"target": "es2020",
"module": "es2020",
"lib": ["es2020", "dom"],
"paths": {
Expand Down
Loading