Skip to content

Commit

Permalink
Merge pull request #8 from natereprogle/main
Browse files Browse the repository at this point in the history
Update ngx-turnstile to support Angular 16.
  • Loading branch information
AleksanderBodurri authored Sep 1, 2023
2 parents 9faddfa + dbf7c8c commit c265612
Show file tree
Hide file tree
Showing 12 changed files with 3,100 additions and 2,542 deletions.
16 changes: 12 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-turnstile/src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/ngx-turnstile/tsconfig.spec.json",
"karmaConfig": "projects/ngx-turnstile/karma.conf.js"
}
Expand Down Expand Up @@ -60,7 +63,10 @@
"outputPath": "dist/ngx-turnstile-demo",
"index": "projects/ngx-turnstile-demo/src/index.html",
"main": "projects/ngx-turnstile-demo/src/main.ts",
"polyfills": "projects/ngx-turnstile-demo/src/polyfills.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/ngx-turnstile-demo/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -124,8 +130,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-turnstile-demo/src/test.ts",
"polyfills": "projects/ngx-turnstile-demo/src/polyfills.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/ngx-turnstile-demo/tsconfig.spec.json",
"karmaConfig": "projects/ngx-turnstile-demo/karma.conf.js",
"inlineStyleLanguage": "scss",
Expand Down
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,39 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^14.2.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
"@angular/core": "^14.2.0",
"@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.2.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
"@angular/animations": "^16.0.4",
"@angular/common": "^16.0.4",
"@angular/compiler": "^16.0.4",
"@angular/core": "^16.0.4",
"@angular/forms": "^16.0.4",
"@angular/platform-browser": "^16.0.4",
"@angular/platform-browser-dynamic": "^16.0.4",
"@angular/router": "^16.0.4",
"rxjs": "~7.8.1",
"tslib": "^2.5.2",
"zone.js": "~0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.6",
"@angular-devkit/build-angular": "^16.0.4",
"@angular-eslint/builder": "14.1.2",
"@angular-eslint/eslint-plugin": "14.1.2",
"@angular-eslint/eslint-plugin-template": "14.1.2",
"@angular-eslint/schematics": "14.1.2",
"@angular-eslint/template-parser": "14.1.2",
"@angular/cli": "~14.2.6",
"@angular/compiler-cli": "^14.2.0",
"@types/jasmine": "~4.0.0",
"@typescript-eslint/eslint-plugin": "5.37.0",
"@typescript-eslint/parser": "5.37.0",
"@angular-eslint/schematics": "16.0.3",
"@angular-eslint/template-parser": "16.0.3",
"@angular/cli": "~16.0.4",
"@angular/compiler-cli": "^16.0.4",
"@types/jasmine": "~4.3.2",
"@typescript-eslint/eslint-plugin": "5.59.8",
"@typescript-eslint/parser": "5.59.8",
"eslint": "^8.23.1",
"jasmine-core": "~4.3.0",
"jasmine-core": "~5.0.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.1.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"ng-packagr": "^14.2.0",
"ng-packagr": "^16.0.1",
"prettier": "^3.0.3",
"typescript": "~4.7.2"
"typescript": "~5.0.4"
}
}
4 changes: 2 additions & 2 deletions projects/ngx-turnstile-demo/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"files": ["*.ts"],
"parserOptions": {
"project": [
"projects/ngx-turnstile-demo/tsconfig.app.json",
"projects/ngx-turnstile-demo/tsconfig.spec.json"
"tsconfig.app.json",
"tsconfig.spec.json"
],
"createDefaultProgram": true
},
Expand Down
52 changes: 0 additions & 52 deletions projects/ngx-turnstile-demo/src/polyfills.ts

This file was deleted.

4 changes: 3 additions & 1 deletion projects/ngx-turnstile-demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"outDir": "../../out-tsc/app",
"types": []
},
"files": ["src/main.ts", "src/polyfills.ts"],
"files": [
"src/main.ts"
],
"include": ["src/**/*.d.ts"]
}
1 change: 0 additions & 1 deletion projects/ngx-turnstile-demo/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"outDir": "../../out-tsc/spec",
"types": ["jasmine"]
},
"files": ["src/test.ts", "src/polyfills.ts"],
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
}
4 changes: 2 additions & 2 deletions projects/ngx-turnstile/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"files": ["*.ts"],
"parserOptions": {
"project": [
"projects/ngx-turnstile/tsconfig.lib.json",
"projects/ngx-turnstile/tsconfig.spec.json"
"tsconfig.lib.json",
"tsconfig.spec.json"
],
"createDefaultProgram": true
},
Expand Down
6 changes: 3 additions & 3 deletions projects/ngx-turnstile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"cloudflare-turnstile"
],
"peerDependencies": {
"@angular/common": "^14.2.0",
"@angular/core": "^14.2.0"
"@angular/common": "^16.0.0",
"@angular/core": "^16.0.0"
},
"dependencies": {
"tslib": "^2.3.0"
"tslib": "^2.5.2"
}
}
2 changes: 1 addition & 1 deletion projects/ngx-turnstile/src/lib/ngx-turnstile.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';

@Injectable({
providedIn: 'root',
providedIn: 'root'
})
export class NgxTurnstileService {
constructor() {}
Expand Down
1 change: 0 additions & 1 deletion projects/ngx-turnstile/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"outDir": "../../out-tsc/spec",
"types": ["jasmine"]
},
"files": ["src/test.ts"],
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"module": "es2020",
"target": "es2022",
"module": "es2022",
"lib": ["es2020", "dom"]
},
"angularCompilerOptions": {
Expand Down
Loading

0 comments on commit c265612

Please sign in to comment.