From e86fed4429da30c435aeaa5cda093bf55e2ca306 Mon Sep 17 00:00:00 2001 From: DavideColacci Date: Wed, 4 Sep 2024 12:47:42 +0200 Subject: [PATCH] Update to angular 15 --- example/package.json | 26 +++++++++++++------------- example/src/test.ts | 12 ------------ example/tsconfig.json | 5 +++-- package.json | 14 +++++++------- 4 files changed, 23 insertions(+), 34 deletions(-) diff --git a/example/package.json b/example/package.json index c4eb760..2a20d44 100644 --- a/example/package.json +++ b/example/package.json @@ -10,23 +10,23 @@ }, "private": true, "dependencies": { - "@angular/animations": "^14.0.0", - "@angular/common": "^14.0.0", - "@angular/compiler": "^14.0.0", - "@angular/core": "^14.0.0", - "@angular/forms": "^14.0.0", - "@angular/platform-browser": "^14.0.0", - "@angular/platform-browser-dynamic": "^14.0.0", - "@angular/router": "^14.0.0", + "@angular/animations": "^15.2.10", + "@angular/common": "^15.2.10", + "@angular/compiler": "^15.2.10", + "@angular/core": "^15.2.10", + "@angular/forms": "^15.2.10", + "@angular/platform-browser": "^15.2.10", + "@angular/platform-browser-dynamic": "^15.2.10", + "@angular/router": "^15.2.10", "ngx-json-viewer": "../dist", "rxjs": "~7.5.0", "tslib": "^2.3.0", "zone.js": "~0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "^14.0.3", - "@angular/cli": "~14.0.3", - "@angular/compiler-cli": "^14.0.0", + "@angular-devkit/build-angular": "^15.2.11", + "@angular/cli": "~15.2.11", + "@angular/compiler-cli": "^15.2.10", "@types/jasmine": "~4.0.0", "jasmine-core": "~4.1.0", "karma": "~6.3.0", @@ -34,6 +34,6 @@ "karma-coverage": "~2.2.0", "karma-jasmine": "~5.0.0", "karma-jasmine-html-reporter": "~1.7.0", - "typescript": "~4.7.2" + "typescript": "~4.9.5" } -} +} \ No newline at end of file diff --git a/example/src/test.ts b/example/src/test.ts index c04c876..51bb020 100644 --- a/example/src/test.ts +++ b/example/src/test.ts @@ -7,20 +7,8 @@ import { platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: { - context(path: string, deep?: boolean, filter?: RegExp): { - (id: string): T; - keys(): string[]; - }; -}; - // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( BrowserDynamicTestingModule, platformBrowserDynamicTesting(), ); - -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().forEach(context); diff --git a/example/tsconfig.json b/example/tsconfig.json index ff06eae..1407cb6 100644 --- a/example/tsconfig.json +++ b/example/tsconfig.json @@ -16,12 +16,13 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "es2020", + "target": "ES2022", "module": "es2020", "lib": [ "es2020", "dom" - ] + ], + "useDefineForClassFields": false }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, diff --git a/package.json b/package.json index 64b3d78..e18980f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-json-viewer", - "version": "3.2.1", + "version": "4.0.0", "description": "JSON formatter / viewer for Angular", "keywords": [ "angular", @@ -23,14 +23,14 @@ }, "dependencies": {}, "devDependencies": { - "@angular/common": "^14.0.0", - "@angular/compiler": "^14.0.0", - "@angular/compiler-cli": "^14.0.0", - "@angular/core": "^14.0.0", - "ng-packagr": "^14.0.2", + "@angular/common": "^15.2.10", + "@angular/compiler": "^15.2.10", + "@angular/compiler-cli": "^15.2.10", + "@angular/core": "^15.2.10", + "ng-packagr": "^15.2.2", "rxjs": "~7.5.0", "tslib": "^2.3.0", - "typescript": "~4.7.2", + "typescript": "~4.8.2", "zone.js": "~0.11.4" } }