From 09243b9db18a414744dbc3b6477a64d2e763fca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Einar=20Bjartnes?= <88324093+bjorn-einar-bjartnes-4ss@users.noreply.github.com> Date: Fri, 4 Aug 2023 13:51:13 +0200 Subject: [PATCH 1/7] Fix project references to avoid github read issues when npm i --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2d88716..3031c8f 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,10 @@ "@angular/router": "^14.0.0", "bootstrap": "^4.3.1", "core-js": "^3.1.3", - "ng-dynamic-breadcrumb": "projects/ng-dynamic-breadcrumb", - "ng7-bootstrap-breadcrumb": "projects/ng7-bootstrap-breadcrumb", - "ng7-dynamic-breadcrumb": "projects/ng7-dynamic-breadcrumb", - "ng7-mat-breadcrumb": "projects/ng7-mat-breadcrumb", + "ng-dynamic-breadcrumb": "./projects/ng-dynamic-breadcrumb", + "ng7-bootstrap-breadcrumb": "./projects/ng7-bootstrap-breadcrumb", + "ng7-dynamic-breadcrumb": "./projects/ng7-dynamic-breadcrumb", + "ng7-mat-breadcrumb": "./projects/ng7-mat-breadcrumb", "rxjs": "~6.6.3", "tslib": "^2.3.0", "zone.js": "~0.11.4" From b772d1a7790dec187054051a605ea3cd8edc9283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Einar=20Bjartnes?= <88324093+bjorn-einar-bjartnes-4ss@users.noreply.github.com> Date: Fri, 4 Aug 2023 13:55:56 +0200 Subject: [PATCH 2/7] Use ng update to update to v15 ng update @angular/animations@15 @angular/cdk@15 @angular/common@15 @angular/compiler@15 @angular/core@15 @angular/forms@15 @angular/material@15 @angular/platform-browser@15 @angular/platform-browser-dynamic@15 @angular/router@15 --- package.json | 26 +++++++++---------- .../src/lib/ng7-mat-breadcrumb.module.ts | 2 +- src/app/app-routing.module.ts | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 3031c8f..5a564cc 100644 --- a/package.json +++ b/package.json @@ -11,16 +11,16 @@ }, "private": true, "dependencies": { - "@angular/animations": "^14.0.0" , - "@angular/cdk": "^14.0.0", - "@angular/common": "^14.0.0", - "@angular/compiler": "^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", + "@angular/animations": "^15.2.9", + "@angular/cdk": "^15.2.9", + "@angular/common": "^15.2.9", + "@angular/compiler": "^15.2.9", + "@angular/core": "^15.2.9", + "@angular/forms": "^15.2.9", + "@angular/material": "^15.2.9", + "@angular/platform-browser": "^15.2.9", + "@angular/platform-browser-dynamic": "^15.2.9", + "@angular/router": "^15.2.9", "bootstrap": "^4.3.1", "core-js": "^3.1.3", "ng-dynamic-breadcrumb": "./projects/ng-dynamic-breadcrumb", @@ -34,8 +34,8 @@ "devDependencies": { "@angular-devkit/build-angular": "^14.0.0", "@angular/cli": "^14.0.0", - "@angular/compiler-cli": "^14.0.0", - "@angular/language-service": "^14.0.0", + "@angular/compiler-cli": "^15.2.9", + "@angular/language-service": "^15.2.9", "@types/jasmine": "~3.8.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^14.0.0", @@ -57,4 +57,4 @@ "contributors": [ "Raja Rama Mohan Thavalam " ] -} +} \ No newline at end of file diff --git a/projects/ng7-mat-breadcrumb/src/lib/ng7-mat-breadcrumb.module.ts b/projects/ng7-mat-breadcrumb/src/lib/ng7-mat-breadcrumb.module.ts index b5d36bf..b29f312 100644 --- a/projects/ng7-mat-breadcrumb/src/lib/ng7-mat-breadcrumb.module.ts +++ b/projects/ng7-mat-breadcrumb/src/lib/ng7-mat-breadcrumb.module.ts @@ -4,7 +4,7 @@ import { RouterModule } from '@angular/router'; import { CommonModule } from '@angular/common'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MatToolbarModule } from '@angular/material/toolbar'; -import { MatListModule } from '@angular/material/list'; +import { MatLegacyListModule as MatListModule } from '@angular/material/legacy-list'; @NgModule({ declarations: [Ng7MatBreadcrumbComponent], diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 8816bec..c6d6781 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -63,7 +63,7 @@ const routes: Routes = [ ]; @NgModule({ - imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })], + imports: [RouterModule.forRoot(routes, {})], exports: [RouterModule] }) export class AppRoutingModule { From 5125944bf4c164e9f08d8e662df0ee9a9771e10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Einar=20Bjartnes?= <88324093+bjorn-einar-bjartnes-4ss@users.noreply.github.com> Date: Fri, 4 Aug 2023 14:02:44 +0200 Subject: [PATCH 3/7] ng update to v16 ng update @angular/animations@16 @angular/cdk@16 @angular/common@16 @angular/compiler@16 @angular/core@16 @angular/forms@16 @angular/material@16 @angular/platform-browser@16 @angular/platform-browser-dynamic@16 @angular/router@16 @angular/compiler-cli@16 @angular/language-service@16 @angular-devkit/build-angular@16 --- package.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 5a564cc..7f3da73 100644 --- a/package.json +++ b/package.json @@ -11,16 +11,16 @@ }, "private": true, "dependencies": { - "@angular/animations": "^15.2.9", - "@angular/cdk": "^15.2.9", - "@angular/common": "^15.2.9", - "@angular/compiler": "^15.2.9", - "@angular/core": "^15.2.9", - "@angular/forms": "^15.2.9", - "@angular/material": "^15.2.9", - "@angular/platform-browser": "^15.2.9", - "@angular/platform-browser-dynamic": "^15.2.9", - "@angular/router": "^15.2.9", + "@angular/animations": "^16.1.8", + "@angular/cdk": "^16.1.7", + "@angular/common": "^16.1.8", + "@angular/compiler": "^16.1.8", + "@angular/core": "^16.1.8", + "@angular/forms": "^16.1.8", + "@angular/material": "^16.1.7", + "@angular/platform-browser": "^16.1.8", + "@angular/platform-browser-dynamic": "^16.1.8", + "@angular/router": "^16.1.8", "bootstrap": "^4.3.1", "core-js": "^3.1.3", "ng-dynamic-breadcrumb": "./projects/ng-dynamic-breadcrumb", @@ -29,13 +29,13 @@ "ng7-mat-breadcrumb": "./projects/ng7-mat-breadcrumb", "rxjs": "~6.6.3", "tslib": "^2.3.0", - "zone.js": "~0.11.4" + "zone.js": "~0.13.1" }, "devDependencies": { - "@angular-devkit/build-angular": "^14.0.0", + "@angular-devkit/build-angular": "^16.1.7", "@angular/cli": "^14.0.0", - "@angular/compiler-cli": "^15.2.9", - "@angular/language-service": "^15.2.9", + "@angular/compiler-cli": "^16.1.8", + "@angular/language-service": "^16.1.8", "@types/jasmine": "~3.8.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^14.0.0", @@ -47,11 +47,11 @@ "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", - "ng-packagr": "^14.0.0", + "ng-packagr": "^16.1.0", "protractor": "~7.0.0", "ts-node": "~8.2.0", "tslint": "~6.1.0", - "typescript": "^4.2.3" + "typescript": "^5.1.6" }, "author": "Raja Rama Mohan Thavalam", "contributors": [ From d8432c7843a95e3db11c1aea6ae860c9f8bf5553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Einar=20Bjartnes?= <88324093+bjorn-einar-bjartnes-4ss@users.noreply.github.com> Date: Fri, 4 Aug 2023 14:09:38 +0200 Subject: [PATCH 4/7] Ignoring angular folder --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index f7528bf..c32751e 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,5 @@ testem.log Thumbs.db package-lock.json + +/.angular \ No newline at end of file From 4fd3112916cf79c5c626474e0871483cabb8a052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Einar=20Bjartnes?= <88324093+bjorn-einar-bjartnes-4ss@users.noreply.github.com> Date: Fri, 4 Aug 2023 14:11:25 +0200 Subject: [PATCH 5/7] ng update @angular/cli@16 --- package.json | 2 +- projects/ng-dynamic-breadcrumb/src/test.ts | 6 ------ projects/ng-dynamic-breadcrumb/tsconfig.lib.json | 1 - projects/ng7-bootstrap-breadcrumb/src/test.ts | 6 ------ projects/ng7-bootstrap-breadcrumb/tsconfig.lib.json | 1 - projects/ng7-dynamic-breadcrumb/src/test.ts | 6 ------ projects/ng7-dynamic-breadcrumb/tsconfig.lib.json | 1 - projects/ng7-mat-breadcrumb/src/test.ts | 6 ------ projects/ng7-mat-breadcrumb/tsconfig.lib.json | 1 - src/test.ts | 6 ------ tsconfig.json | 5 +++-- 11 files changed, 4 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 7f3da73..bf824e7 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "devDependencies": { "@angular-devkit/build-angular": "^16.1.7", - "@angular/cli": "^14.0.0", + "@angular/cli": "^15.2.9", "@angular/compiler-cli": "^16.1.8", "@angular/language-service": "^16.1.8", "@types/jasmine": "~3.8.0", diff --git a/projects/ng-dynamic-breadcrumb/src/test.ts b/projects/ng-dynamic-breadcrumb/src/test.ts index ee9915d..e63a876 100644 --- a/projects/ng-dynamic-breadcrumb/src/test.ts +++ b/projects/ng-dynamic-breadcrumb/src/test.ts @@ -8,14 +8,8 @@ import { platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: any; - // 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().map(context); diff --git a/projects/ng-dynamic-breadcrumb/tsconfig.lib.json b/projects/ng-dynamic-breadcrumb/tsconfig.lib.json index 92d8245..307caea 100644 --- a/projects/ng-dynamic-breadcrumb/tsconfig.lib.json +++ b/projects/ng-dynamic-breadcrumb/tsconfig.lib.json @@ -3,7 +3,6 @@ "compilerOptions": { "outDir": "../../out-tsc/lib", "declarationMap": true, - "target": "es2015", "declaration": true, "inlineSources": true, "types": [], diff --git a/projects/ng7-bootstrap-breadcrumb/src/test.ts b/projects/ng7-bootstrap-breadcrumb/src/test.ts index b1cc186..50aa0ae 100644 --- a/projects/ng7-bootstrap-breadcrumb/src/test.ts +++ b/projects/ng7-bootstrap-breadcrumb/src/test.ts @@ -9,14 +9,8 @@ import { platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: any; - // 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().map(context); diff --git a/projects/ng7-bootstrap-breadcrumb/tsconfig.lib.json b/projects/ng7-bootstrap-breadcrumb/tsconfig.lib.json index f689945..20e2948 100644 --- a/projects/ng7-bootstrap-breadcrumb/tsconfig.lib.json +++ b/projects/ng7-bootstrap-breadcrumb/tsconfig.lib.json @@ -3,7 +3,6 @@ "compilerOptions": { "outDir": "../../out-tsc/lib", "declarationMap": true, - "target": "es2015", "module": "es2015", "moduleResolution": "node", "declaration": true, diff --git a/projects/ng7-dynamic-breadcrumb/src/test.ts b/projects/ng7-dynamic-breadcrumb/src/test.ts index b1cc186..50aa0ae 100644 --- a/projects/ng7-dynamic-breadcrumb/src/test.ts +++ b/projects/ng7-dynamic-breadcrumb/src/test.ts @@ -9,14 +9,8 @@ import { platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: any; - // 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().map(context); diff --git a/projects/ng7-dynamic-breadcrumb/tsconfig.lib.json b/projects/ng7-dynamic-breadcrumb/tsconfig.lib.json index f689945..20e2948 100644 --- a/projects/ng7-dynamic-breadcrumb/tsconfig.lib.json +++ b/projects/ng7-dynamic-breadcrumb/tsconfig.lib.json @@ -3,7 +3,6 @@ "compilerOptions": { "outDir": "../../out-tsc/lib", "declarationMap": true, - "target": "es2015", "module": "es2015", "moduleResolution": "node", "declaration": true, diff --git a/projects/ng7-mat-breadcrumb/src/test.ts b/projects/ng7-mat-breadcrumb/src/test.ts index b1cc186..50aa0ae 100644 --- a/projects/ng7-mat-breadcrumb/src/test.ts +++ b/projects/ng7-mat-breadcrumb/src/test.ts @@ -9,14 +9,8 @@ import { platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: any; - // 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().map(context); diff --git a/projects/ng7-mat-breadcrumb/tsconfig.lib.json b/projects/ng7-mat-breadcrumb/tsconfig.lib.json index f689945..20e2948 100644 --- a/projects/ng7-mat-breadcrumb/tsconfig.lib.json +++ b/projects/ng7-mat-breadcrumb/tsconfig.lib.json @@ -3,7 +3,6 @@ "compilerOptions": { "outDir": "../../out-tsc/lib", "declarationMap": true, - "target": "es2015", "module": "es2015", "moduleResolution": "node", "declaration": true, diff --git a/src/test.ts b/src/test.ts index a6f15af..7632e27 100644 --- a/src/test.ts +++ b/src/test.ts @@ -7,14 +7,8 @@ import { platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: any; - // 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().map(context); diff --git a/tsconfig.json b/tsconfig.json index 8709281..8983868 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "moduleResolution": "node", "experimentalDecorators": true, "importHelpers": true, - "target": "es5", + "target": "ES2022", "typeRoots": [ "node_modules/@types" ], @@ -42,6 +42,7 @@ "ng-dynamic-breadcrumb/*": [ "dist/ng-dynamic-breadcrumb/*" ] - } + }, + "useDefineForClassFields": false } } \ No newline at end of file From e12599fc482508dae7db466a9204f92e7cc89bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Einar=20Bjartnes?= <88324093+bjorn-einar-bjartnes-4ss@users.noreply.github.com> Date: Fri, 4 Aug 2023 14:12:51 +0200 Subject: [PATCH 6/7] ng update @angular/cli@16 --- angular.json | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/angular.json b/angular.json index 6921db6..1c9537a 100644 --- a/angular.json +++ b/angular.json @@ -301,7 +301,6 @@ } } }, - "defaultProject": "ng7-dynamic-breadcrumb-lib", "cli": { "analytics": false } diff --git a/package.json b/package.json index bf824e7..c54506b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "devDependencies": { "@angular-devkit/build-angular": "^16.1.7", - "@angular/cli": "^15.2.9", + "@angular/cli": "^16.1.7", "@angular/compiler-cli": "^16.1.8", "@angular/language-service": "^16.1.8", "@types/jasmine": "~3.8.0", From 4827d1cd8fe17fa4c714daa65d877bb36394595c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Einar=20Bjartnes?= <88324093+bjorn-einar-bjartnes-4ss@users.noreply.github.com> Date: Fri, 4 Aug 2023 14:40:04 +0200 Subject: [PATCH 7/7] Upgrade version to 10 to indicate ng 16 compat --- projects/ng-dynamic-breadcrumb/package.json | 13 ++++++------- projects/ng7-bootstrap-breadcrumb/package.json | 11 ++++++----- projects/ng7-dynamic-breadcrumb/package.json | 11 ++++++----- projects/ng7-mat-breadcrumb/package.json | 13 +++++++------ 4 files changed, 25 insertions(+), 23 deletions(-) diff --git a/projects/ng-dynamic-breadcrumb/package.json b/projects/ng-dynamic-breadcrumb/package.json index 4547893..648bbcd 100644 --- a/projects/ng-dynamic-breadcrumb/package.json +++ b/projects/ng-dynamic-breadcrumb/package.json @@ -1,10 +1,10 @@ { "name": "ng-dynamic-breadcrumb", - "description": "Angular 14 Dynamic Breadcrumb", - "version": "8.0.0", + "description": "Angular 16 Dynamic Breadcrumb", + "version": "10.0.0", "peerDependencies": { - "@angular/common": "^14.0.0", - "@angular/core": "^14.0.0" + "@angular/common": "^16.0.0", + "@angular/core": "^16.0.0" }, "main": "bundles/ng-dynamic-breadcrumb.umd.js", "module": "fesm5/ng-dynamic-breadcrumb.js", @@ -45,9 +45,8 @@ "angular 11 Breadcrumbs", "angular12 Breadcrumbs", "angular 12 Breadcrumbs", - "angular 14 Breadcrumbs" - - + "angular 14 Breadcrumbs", + "angular 16 Breadcrumbs" ], "bugs": { "url": "https://github.com/rajaramtt/ng7-dynamic-breadcrumb/issues" diff --git a/projects/ng7-bootstrap-breadcrumb/package.json b/projects/ng7-bootstrap-breadcrumb/package.json index 73aae6f..241970d 100644 --- a/projects/ng7-bootstrap-breadcrumb/package.json +++ b/projects/ng7-bootstrap-breadcrumb/package.json @@ -1,10 +1,10 @@ { "name": "ng7-bootstrap-breadcrumb", - "description": "Angular 14 bootstrap Dynamic Breadcrumb", - "version": "8.0.0", + "description": "Angular 16 bootstrap Dynamic Breadcrumb", + "version": "10.0.0", "peerDependencies": { - "@angular/common": "^14.0.0", - "@angular/core": "^14.0.0", + "@angular/common": "^16.0.0", + "@angular/core": "^16.0.0", "bootstrap": "^4.3.1" }, "main": "bundles/ng7-dynamic-breadcrumb.umd.js", @@ -48,7 +48,8 @@ "angular11 Breadcrumbs", "angular 11 Breadcrumbs", "angular12 Breadcrumbs", - "angular 14 Breadcrumbs" + "angular 14 Breadcrumbs", + "angular 16 Breadcrumbs" ], "bugs": { "url": "https://github.com/rajaramtt/ng7-dynamic-breadcrumb/issues" diff --git a/projects/ng7-dynamic-breadcrumb/package.json b/projects/ng7-dynamic-breadcrumb/package.json index 608eba8..b00976e 100644 --- a/projects/ng7-dynamic-breadcrumb/package.json +++ b/projects/ng7-dynamic-breadcrumb/package.json @@ -1,10 +1,10 @@ { "name": "ng7-dynamic-breadcrumb", - "description": "Angular 14 Dynamic Breadcrumb", - "version": "8.0.0", + "description": "Angular 16 Dynamic Breadcrumb", + "version": "10.0.0", "peerDependencies": { - "@angular/common": "^14.0.0", - "@angular/core": "^14.0.0" + "@angular/common": "^16.0.0", + "@angular/core": "^16.0.0" }, "main": "bundles/ng7-dynamic-breadcrumb.umd.js", "module": "fesm5/ng7-dynamic-breadcrumb.js", @@ -44,7 +44,8 @@ "angular11 Breadcrumbs", "angular 11 Breadcrumbs", "angular12 Breadcrumbs", - "angular 14 Breadcrumbs" + "angular 14 Breadcrumbs", + "angular 16 Breadcrumbs" ], "bugs": { diff --git a/projects/ng7-mat-breadcrumb/package.json b/projects/ng7-mat-breadcrumb/package.json index 8854f06..70d6bcd 100644 --- a/projects/ng7-mat-breadcrumb/package.json +++ b/projects/ng7-mat-breadcrumb/package.json @@ -1,11 +1,11 @@ { "name": "ng7-mat-breadcrumb", - "description": "Angular 14 Material Breadcrumb NPM Module", - "version": "8.0.0", + "description": "Angular 16 Material Breadcrumb NPM Module", + "version": "10.0.0", "peerDependencies": { - "@angular/common": "^14.0.0", - "@angular/core": "^14.0.0", - "@angular/material": "^14.0.0" + "@angular/common": "^16.0.0", + "@angular/core": "^16.0.0", + "@angular/material": "^16.0.0" }, "license": "MIT", "repository": { @@ -33,7 +33,8 @@ "angular11 Breadcrumbs", "angular 11 Breadcrumbs", "angular12 Breadcrumbs", - "angular 14 Breadcrumbs" + "angular 14 Breadcrumbs", + "angular 16 Breadcrumbs" ], "bugs": { "url": "https://github.com/rajaramtt/ng7-dynamic-breadcrumb/issues"