Skip to content

Commit 9fffe64

Browse files
committed
Release Angular 21.0.0 compatibility line
1 parent dcf5b64 commit 9fffe64

8 files changed

Lines changed: 1680 additions & 2061 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [21.0.0] - 2026-08-20
4+
### Changed
5+
- Added Angular 21 support using the official Angular 20→21 migrations.
6+
- Updated Angular, CLI, and build tooling to 21.2.21, ng-packagr to 21.2.7,
7+
and Angular ESLint to 21.4.
8+
- Changed the Angular peer range and safe publish tag for the `v21` line.
9+
10+
311
## [20.0.1] - 2026-08-20
412
### Fixed
513
- Exported the documented CDN/window modules and Plotly public types.

package-lock.json

Lines changed: 1648 additions & 2035 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-plotly.js",
3-
"version": "20.0.1",
3+
"version": "21.0.0",
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
@@ -15,31 +15,31 @@
1515
},
1616
"private": true,
1717
"dependencies": {
18-
"@angular/common": "20.3.29",
19-
"@angular/core": "20.3.29",
20-
"@angular/platform-browser": "20.3.29",
18+
"@angular/common": "21.2.21",
19+
"@angular/core": "21.2.21",
20+
"@angular/platform-browser": "21.2.21",
2121
"plotly.js-dist": "2.35.3",
2222
"rxjs": "7.8.2",
2323
"tslib": "2.8.1",
2424
"zone.js": "0.15.1"
2525
},
2626
"devDependencies": {
27-
"@angular/build": "20.3.34",
28-
"@angular/cli": "20.3.34",
29-
"@angular/compiler": "20.3.29",
30-
"@angular/compiler-cli": "20.3.29",
27+
"@angular/build": "21.2.21",
28+
"@angular/cli": "21.2.21",
29+
"@angular/compiler": "21.2.21",
30+
"@angular/compiler-cli": "21.2.21",
3131
"@eslint/js": "9.39.5",
3232
"@types/jasmine": "5.1.9",
3333
"@types/node": "24.10.1",
34-
"angular-eslint": "20.7.0",
34+
"angular-eslint": "21.4.0",
3535
"eslint": "9.39.5",
3636
"jasmine-core": "5.10.0",
3737
"karma": "6.4.4",
3838
"karma-chrome-launcher": "3.2.0",
3939
"karma-coverage": "2.2.1",
4040
"karma-jasmine": "5.1.0",
4141
"karma-jasmine-html-reporter": "2.3.0",
42-
"ng-packagr": "20.3.2",
42+
"ng-packagr": "21.2.7",
4343
"typescript": "5.9.3",
4444
"typescript-eslint": "8.67.0"
4545
},

projects/demo_app/src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import { provideZoneChangeDetection } from '@angular/core';
12
import { platformBrowser } from '@angular/platform-browser';
23

34
import { AppModule } from './app/app.module';
45

56

6-
platformBrowser().bootstrapModule(AppModule)
7+
platformBrowser().bootstrapModule(AppModule, {
8+
applicationProviders: [provideZoneChangeDetection()],
9+
})
710
.catch(err => console.error(err));

projects/plotly/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "angular-plotly.js",
3-
"version": "20.0.1",
3+
"version": "21.0.0",
44
"license": "MIT",
55
"peerDependencies": {
6-
"@angular/common": ">=20.0.0 <21.0.0",
7-
"@angular/core": ">=20.0.0 <21.0.0"
6+
"@angular/common": ">=21.0.0 <22.0.0",
7+
"@angular/core": ">=21.0.0 <22.0.0"
88
},
99
"dependencies": {
1010
"tslib": "^2.8.1"
1111
},
1212
"publishConfig": {
1313
"access": "public",
14-
"tag": "angular20"
14+
"tag": "angular21"
1515
}
1616
}

projects/plotly/tsconfig.lib.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
"outDir": "../../out-tsc/lib",
88
"declaration": true,
99
"inlineSources": true,
10-
"types": [],
11-
"lib": [
12-
"dom",
13-
"es2018"
14-
]
10+
"types": []
1511
},
1612
"angularCompilerOptions": {
1713
"skipTemplateCodegen": true,

scripts/verify-package.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ const requiredFiles = [
1010
'LICENSE',
1111
'CHANGELOG.md',
1212
'angular-plotly.png',
13-
'index.d.ts',
1413
'package.json',
1514
];
1615

1716
await Promise.all(requiredFiles.map(file => access(resolve(output, file))));
1817

1918
const rootPackage = JSON.parse(await readFile(resolve(root, 'package.json'), 'utf8'));
2019
const libraryPackage = JSON.parse(await readFile(resolve(output, 'package.json'), 'utf8'));
20+
const declarationsPath = libraryPackage.typings ?? 'index.d.ts';
21+
const bundlePath = libraryPackage.module;
22+
requiredFiles.push(declarationsPath, bundlePath);
23+
await Promise.all([declarationsPath, bundlePath].map(file => access(resolve(output, file))));
2124
if (rootPackage.version !== libraryPackage.version) {
2225
throw new Error(`Package versions differ: root=${rootPackage.version}, library=${libraryPackage.version}`);
2326
}
@@ -30,7 +33,7 @@ for (const dependency of ['@angular/common', '@angular/core']) {
3033
}
3134
}
3235

33-
const declarations = await readFile(resolve(output, 'index.d.ts'), 'utf8');
36+
const declarations = await readFile(resolve(output, declarationsPath), 'utf8');
3437
for (const symbol of [
3538
'PlotlyComponent',
3639
'PlotlyModule',

tsconfig.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
"importHelpers": true,
1818
"target": "ES2022",
1919
"module": "es2020",
20-
"lib": [
21-
"es2020",
22-
"dom"
23-
],
2420
"paths": {
2521
"angular-plotly.js": [
2622
"dist/plotly",

0 commit comments

Comments
 (0)