Skip to content

Commit b5040d1

Browse files
authored
Merge pull request #1022 from cyrilletuzi:v20
Angular 20
2 parents 2de2766 + 6527794 commit b5040d1

38 files changed

+1639
-1221
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
test-minimum:
3939

40-
name: Test with Angular@19.0.0 and minimum dependencies requirements
40+
name: Test with Angular@20.0.0 and minimum dependencies requirements
4141
runs-on: ubuntu-latest
4242
timeout-minutes: 10
4343

@@ -46,15 +46,15 @@ jobs:
4646
- name: Setup Node
4747
uses: actions/setup-node@v3
4848
with:
49-
node-version: '18'
49+
node-version: '20.19'
5050
- name: Install dependencies
5151
run: npm ci
5252
env:
5353
CI: true
5454
- name: Build the lib (with the current version, as it is what is published on npm)
5555
run: npm run build
5656
- name: Downgrade dependencies to minimal required version
57-
run: npm install typescript@5.6.3 [email protected] better-typescript-lib@2.9.0 [email protected] [email protected] @angular/common@19.0.0 @angular/compiler@19.0.0 @angular/core@19.0.0 @angular/platform-browser@19.0.0 @angular/router@19.0.0 @angular/cli@19.0.0 @angular/compiler-cli@19.0.0 @angular-devkit/build-angular@19.0.0 --legacy-peer-deps
57+
run: npm install typescript@5.8.2 [email protected] better-typescript-lib@2.11.0 [email protected] [email protected] @angular/common@20.0.0 @angular/compiler@20.0.0 @angular/core@20.0.0 @angular/platform-browser@20.0.0 @angular/router@20.0.0 @angular/cli@20.0.0 @angular/compiler-cli@20.0.0 @angular/build@20.0.0 --legacy-peer-deps
5858
env:
5959
CI: true
6060
- name: Run unit tests

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This library is fully documented and so you will find detailed [migration guides](https://github.com/cyrilletuzi/angular-async-local-storage/blob/main/MIGRATION.md).
44

5+
## 20.0.0 (2025-05-29)
6+
7+
### Breaking changes
8+
9+
- Angular 20 is required.
10+
511
## 19.0.0 (2024-11-19)
612

713
### Breaking changes

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2016-2024 Cyrille Tuzi
3+
Copyright (c) 2016-2025 Cyrille Tuzi
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MIGRATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [Migration to version 17](./docs/MIGRATION_TO_V17.md)
1414
- [Migration to version 18](./docs/MIGRATION_TO_V18.md)
1515
- [Migration to version 19](./docs/MIGRATION_TO_V19.md)
16+
- [Migration to version 19](./docs/MIGRATION_TO_V20.md)
1617

1718
[Full changelog available here.](./CHANGELOG.md)
1819

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This library has a simple API similar to native `localStorage`, but internally s
2828
Install the package:
2929

3030
```bash
31-
# For Angular LTS (Angular >= 17):
31+
# For Angular LTS (Angular >= 18):
3232
ng add @ngx-pwa/local-storage
3333
```
3434

@@ -37,7 +37,7 @@ ng add @ngx-pwa/local-storage
3737
If for any reason `ng add` does not work, follow the [manual installation guide](https://github.com/cyrilletuzi/angular-async-local-storage/blob/main/docs/MANUAL_INSTALLATION.md).
3838

3939
> [!NOTE]
40-
> Angular versions <= 15 are [officially outdated](https://angular.dev/reference/versions).
40+
> Angular versions <= 17 are [officially outdated](https://angular.dev/reference/versions).
4141
4242
### Upgrading
4343

angular.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"architect": {
1212
"build": {
1313
"builder": "@angular/build:ng-packagr",
14-
"options": {
15-
"project": "lib/ng-package.json"
16-
},
1714
"configurations": {
1815
"production": {
1916
"tsConfig": "lib/tsconfig.lib.prod.json"
@@ -40,8 +37,8 @@
4037
"builder": "@angular-eslint/builder:lint",
4138
"options": {
4239
"lintFilePatterns": [
43-
"lib/**/*.ts",
44-
"lib/**/*.html"
40+
"lib/src/**/*.ts",
41+
"lib/src/**/*.html"
4542
]
4643
}
4744
}
@@ -56,16 +53,13 @@
5653
"build": {
5754
"builder": "@angular/build:application",
5855
"options": {
59-
"outputPath": "dist/demo",
60-
"index": "testing-apps/demo/src/index.html",
6156
"browser": "testing-apps/demo/src/main.ts",
6257
"polyfills": [
6358
"zone.js"
6459
],
6560
"tsConfig": "testing-apps/demo/tsconfig.app.json",
6661
"assets": [],
67-
"styles": [],
68-
"scripts": []
62+
"styles": []
6963
},
7064
"configurations": {
7165
"production": {
@@ -117,16 +111,13 @@
117111
"build": {
118112
"builder": "@angular/build:application",
119113
"options": {
120-
"outputPath": "dist/iframe",
121-
"index": "testing-apps/iframe/src/index.html",
122114
"browser": "testing-apps/iframe/src/main.ts",
123115
"polyfills": [
124116
"zone.js"
125117
],
126118
"tsConfig": "testing-apps/iframe/tsconfig.app.json",
127119
"assets": [],
128-
"styles": [],
129-
"scripts": []
120+
"styles": []
130121
},
131122
"configurations": {
132123
"production": {
@@ -178,16 +169,13 @@
178169
"build": {
179170
"builder": "@angular/build:application",
180171
"options": {
181-
"outputPath": "dist/localforage",
182-
"index": "testing-apps/localforage/src/index.html",
183172
"browser": "testing-apps/localforage/src/main.ts",
184173
"polyfills": [
185174
"zone.js"
186175
],
187176
"tsConfig": "testing-apps/localforage/tsconfig.app.json",
188177
"assets": [],
189-
"styles": [],
190-
"scripts": []
178+
"styles": []
191179
},
192180
"configurations": {
193181
"production": {

docs/MANUAL_INSTALLATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ If it causes an error, please file an issue. In the meantime, you can proceed to
1515
Install the right version according to your Angular one via [`npm`](http://npmjs.com):
1616

1717
```bash
18+
# For Angular 20:
19+
npm install @ngx-pwa/local-storage@^20.0.0
20+
1821
# For Angular 19:
1922
npm install @ngx-pwa/local-storage@^19.0.0
2023

2124
# For Angular 18:
2225
npm install @ngx-pwa/local-storage@^18.0.0
23-
24-
# For Angular 17:
25-
npm install @ngx-pwa/local-storage@^17.0.0
2626
```
2727

2828
> [!NOTE]
29-
> Angular versions <= 16 are [officially outdated](https://angular.dev/reference/versions).
29+
> Angular versions <= 17 are [officially outdated](https://angular.dev/reference/versions).
3030
3131
[Back to general documentation](../README.md)

docs/MIGRATION_TO_NEW_PACKAGE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ But **do not worry: the previous package is still here** and will be as long as
1414
- v16 for Angular 16,
1515
- v17 for Angular 17,
1616
- v18 for Angular 18,
17-
- v19 for Angular 19.
17+
- v19 for Angular 19,
18+
- v20 for Angular 20.
1819

19-
[Angular <= 15 are officially outdated](https://angular.dev/reference/versions#actively-supported-versions).
20+
[Angular <= 17 are officially outdated](https://angular.dev/reference/versions#actively-supported-versions).
2021

2122
## Installing the new package
2223

docs/MIGRATION_TO_V19.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ ng update @ngx-pwa/local-storage
1717
> [!IMPORTANT]
1818
> RxJS 6 is *not* supported.
1919
20+
Done, no code changes.
21+
2022
## More documentation
2123

2224
- [Full changelog for v19](../CHANGELOG.md)

docs/MIGRATION_TO_V20.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Migration guide to version 20
2+
3+
## How to update
4+
5+
```bash
6+
ng update @ngx-pwa/local-storage
7+
```
8+
9+
> [!IMPORTANT]
10+
> If your project is actually in a version < 19, please do the [other migrations](../MIGRATION.md) first in an incremental way. **The version 9 migration is especially important**, as a wrongly done migration could lead to the loss of all previously stored data.
11+
12+
## Breaking changes
13+
14+
- Angular 20 is required.
15+
- RxJS >= 7.6 is required.
16+
17+
> [!IMPORTANT]
18+
> RxJS 6 is *not* supported.
19+
20+
Done, no code changes.
21+
22+
## More documentation
23+
24+
- [Full changelog for v20](../CHANGELOG.md)
25+
- [Other migration guides](../MIGRATION.md)
26+
- [Main documentation](../README.md)

0 commit comments

Comments
 (0)