Skip to content

Commit 2e67472

Browse files
authored
Feature/migracion angular 20 (#383)
1 parent fd85136 commit 2e67472

25 files changed

Lines changed: 3458 additions & 3208 deletions

.github/workflows/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v4
99
with:
1010
fetch-depth: 0
11-
- name: Use Node 16
11+
- name: Use Node 20
1212
uses: actions/setup-node@v4
1313
with:
1414
node-version: '20.x'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
/.sass-cache
3636
/connect.lock
3737
/coverage
38+
/.jest-cache
3839
/libpeerconnection.log
3940
npm-debug.log
4041
yarn-error.log

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## [2.7.0] - 2026-02-03
10+
11+
- Migrate to Angular 20
12+
913
## [2.6.2] - 2026-01-13
1014

1115
- Fix error code version

angular.json

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,6 @@
7171
}
7272
}
7373
},
74-
"ngx-jsonapi-e2e": {
75-
"root": "e2e",
76-
"sourceRoot": "e2e",
77-
"projectType": "application",
78-
"architect": {
79-
"e2e": {
80-
"builder": "@angular-devkit/build-angular:protractor",
81-
"options": {
82-
"protractorConfig": "./protractor.conf.js",
83-
"devServerTarget": "ngx-jsonapi:serve"
84-
}
85-
}
86-
}
87-
},
8874
"ngx-jsonapi-lib": {
8975
"projectType": "library",
9076
"root": "projects/ngx-jsonapi-lib",
@@ -126,13 +112,33 @@
126112
"flat": true,
127113
"skipTests": true,
128114
"prefix": "bc",
115+
"type": "component",
129116
"style": "css"
130117
},
131118
"@schematics/angular:directive": {
119+
"type": "directive",
132120
"prefix": "bc"
121+
},
122+
"@schematics/angular:service": {
123+
"type": "service"
124+
},
125+
"@schematics/angular:guard": {
126+
"typeSeparator": "."
127+
},
128+
"@schematics/angular:interceptor": {
129+
"typeSeparator": "."
130+
},
131+
"@schematics/angular:module": {
132+
"typeSeparator": "."
133+
},
134+
"@schematics/angular:pipe": {
135+
"typeSeparator": "."
136+
},
137+
"@schematics/angular:resolver": {
138+
"typeSeparator": "."
133139
}
134140
},
135141
"cli": {
136142
"analytics": false
137143
}
138-
}
144+
}

demo/app/books/components/books.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { BooksService, Book } from './../books.service';
88
import { AuthorsService } from './../../authors/authors.service';
99
import { PhotosService } from '../../photos/photos.service';
1010
// ActivatedRoute already imported above
11-
import { Observable } from 'rxjs';
11+
import { Observable, lastValueFrom } from 'rxjs';
1212

1313
@Component({
1414
selector: 'demo-books',
@@ -63,7 +63,7 @@ export class BooksComponent {
6363
},
6464
(error) => console.log('error books controller', error)
6565
);
66-
books$.toPromise().then((_success) => console.log('books loaded PROMISE'));
66+
lastValueFrom(books$).then((_success) => console.log('books loaded PROMISE'));
6767
}
6868

6969
public delete(book: Resource): void {

demo/polyfills.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33

44
// Zone.js is required by Angular itself
55
import 'zone.js';
6-
7-
// Optional: only if you need touch gesture support
8-
// import 'hammerjs';

demo/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"downlevelIteration": true,
44
"sourceMap": true,
55
"declaration": false,
6-
"moduleResolution": "node",
6+
"moduleResolution": "bundler",
77
"experimentalDecorators": true,
88
"lib": ["es2017", "dom"],
99
"outDir": "../out-tsc/app",

e2e/app.e2e-spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

e2e/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

e2e/tsconfig.e2e.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)