Skip to content

Commit b7b3bb1

Browse files
committed
Merge remote-tracking branch 'origin/master' into rename-style-prop
# Conflicts: # projects/plotly/src/lib/plotly.component.ts
2 parents 56b0c4d + 43d3485 commit b7b3bb1

68 files changed

Lines changed: 10423 additions & 9060 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

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

.eslintrc.json

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

.github/dependabot.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
target-branch: master
6+
schedule: { interval: weekly }
7+
groups:
8+
angular: { patterns: ["@angular/*", "angular-eslint", "@angular-eslint/*", "ng-packagr", "typescript"] }
9+
development:
10+
dependency-type: development
11+
patterns: ["*"]
12+
update-types: ["minor", "patch"]
13+
ignore:
14+
- dependency-name: "@angular/*"
15+
update-types: ["version-update:semver-major"]
16+
- dependency-name: "angular-eslint"
17+
update-types: ["version-update:semver-major"]
18+
- dependency-name: "@angular-eslint/*"
19+
update-types: ["version-update:semver-major"]
20+
- dependency-name: "ng-packagr"
21+
update-types: ["version-update:semver-major"]
22+
- dependency-name: "typescript"
23+
update-types: ["version-update:semver-major"]
24+
- dependency-name: "eslint"
25+
update-types: ["version-update:semver-major"]
26+
- dependency-name: "@eslint/js"
27+
update-types: ["version-update:semver-major"]
28+
- dependency-name: "typescript-eslint"
29+
update-types: ["version-update:semver-major"]
30+
- dependency-name: "plotly.js-dist"
31+
update-types: ["version-update:semver-major"]
32+
- package-ecosystem: npm
33+
directory: /
34+
target-branch: v20
35+
schedule: { interval: weekly }
36+
groups:
37+
angular: { patterns: ["@angular/*", "angular-eslint", "@angular-eslint/*", "ng-packagr", "typescript"] }
38+
development:
39+
dependency-type: development
40+
patterns: ["*"]
41+
update-types: ["minor", "patch"]
42+
ignore:
43+
- dependency-name: "@angular/*"
44+
update-types: ["version-update:semver-major"]
45+
- dependency-name: "angular-eslint"
46+
update-types: ["version-update:semver-major"]
47+
- dependency-name: "@angular-eslint/*"
48+
update-types: ["version-update:semver-major"]
49+
- dependency-name: "ng-packagr"
50+
update-types: ["version-update:semver-major"]
51+
- dependency-name: "typescript"
52+
update-types: ["version-update:semver-major"]
53+
- dependency-name: "eslint"
54+
update-types: ["version-update:semver-major"]
55+
- dependency-name: "@eslint/js"
56+
update-types: ["version-update:semver-major"]
57+
- dependency-name: "typescript-eslint"
58+
update-types: ["version-update:semver-major"]
59+
- dependency-name: "plotly.js-dist"
60+
update-types: ["version-update:semver-major"]
61+
- dependency-name: "zone.js"
62+
update-types: ["version-update:semver-minor"]
63+
- package-ecosystem: npm
64+
directory: /
65+
target-branch: v21
66+
schedule: { interval: weekly }
67+
groups:
68+
angular: { patterns: ["@angular/*", "angular-eslint", "@angular-eslint/*", "ng-packagr", "typescript"] }
69+
development:
70+
dependency-type: development
71+
patterns: ["*"]
72+
update-types: ["minor", "patch"]
73+
ignore:
74+
- dependency-name: "@angular/*"
75+
update-types: ["version-update:semver-major"]
76+
- dependency-name: "angular-eslint"
77+
update-types: ["version-update:semver-major"]
78+
- dependency-name: "@angular-eslint/*"
79+
update-types: ["version-update:semver-major"]
80+
- dependency-name: "ng-packagr"
81+
update-types: ["version-update:semver-major"]
82+
- dependency-name: "typescript"
83+
update-types: ["version-update:semver-major"]
84+
- dependency-name: "eslint"
85+
update-types: ["version-update:semver-major"]
86+
- dependency-name: "@eslint/js"
87+
update-types: ["version-update:semver-major"]
88+
- dependency-name: "typescript-eslint"
89+
update-types: ["version-update:semver-major"]
90+
- dependency-name: "plotly.js-dist"
91+
update-types: ["version-update:semver-major"]

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches: [master, v20, v21, "v*"]
7+
push:
8+
branches: [master, v20, v21, "v*"]
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ci-${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build-test-package:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 20
21+
steps:
22+
- uses: actions/checkout@v7
23+
- uses: actions/setup-node@v7
24+
with:
25+
node-version: 24.15.0
26+
cache: npm
27+
- run: npm ci
28+
- run: npm run lint
29+
- run: npm test
30+
- run: npm run build:demo
31+
- run: npm audit --omit=dev --audit-level=high
32+
- run: npm run verify:package
33+
- run: npm run verify:consumer
34+
- uses: actions/upload-artifact@v7
35+
with:
36+
name: angular-plotly-package-${{ github.sha }}
37+
path: dist/plotly
38+
if-no-files-found: error
39+
retention-days: 14

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ speed-measure-plugin*.json
3838
/coverage
3939
/projects/plotly/coverage
4040
/projects/plotly/README.md
41+
/projects/plotly/LICENSE
42+
/projects/plotly/CHANGELOG.md
4143
/libpeerconnection.log
4244
npm-debug.log
4345
yarn-error.log

CHANGELOG.md

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

3+
## [22.0.0] - 2026-08-20
4+
### Changed
5+
- Added Angular 22 support using the official Angular 21→22 migrations.
6+
- Updated Angular to 22.1.3, CLI/build to 22.1.5, ng-packagr to 22.1.1,
7+
Angular ESLint to 22.1, ESLint to 10, and TypeScript to 6.0.3.
8+
- Changed the Angular peer range and safe publish tag for the active `main` line.
9+
10+
11+
## [21.0.0] - 2026-08-20
12+
### Changed
13+
- Added Angular 21 support using the official Angular 20→21 migrations.
14+
- Updated Angular, CLI, and build tooling to 21.2.21, ng-packagr to 21.2.7,
15+
and Angular ESLint to 21.4.
16+
- Changed the Angular peer range and safe publish tag for the `v21` line.
17+
18+
19+
## [20.0.1] - 2026-08-20
20+
### Fixed
21+
- Exported the documented CDN/window modules and Plotly public types.
22+
- Made Plotly initialization, destruction, debugging, and CDN failures deterministic.
23+
- Made browser-global integrations safe to instantiate during server rendering.
24+
- Made the demo consume the built package instead of library source files.
25+
26+
### Changed
27+
- Updated the Angular 20 line to supported Angular 20.3 tooling and Plotly 2.35.
28+
- Added reproducible package assets, package verification, and branch-aware CI.
29+
330

431
## [20.0.0] - 2025-06-07
532
### Changed

MAINTENANCE.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Maintenance and release policy
2+
3+
The package major identifies its supported Angular major. `master` tracks the
4+
latest Angular major; older supported majors use `vN` maintenance branches.
5+
6+
| Package line | Angular | Branch | npm tag | Status |
7+
| --- | --- | --- | --- | --- |
8+
| 20.x | 20.x | `v20` | `angular20` | LTS through 2026-11-28 |
9+
| 21.x | 21.x | `v21` | `angular21` | LTS |
10+
| 22.x | 22.x | `master` | `angular22`, `latest` | Active |
11+
12+
## Changes and forward ports
13+
14+
Fix an issue on the oldest affected maintained branch. Forward-port the merged
15+
commit in ascending major order with `git cherry-pick -x`, one linked pull
16+
request per branch. Do not forward-port Angular migrations, dependency-major
17+
changes, package versions, or release metadata.
18+
19+
`master` has no duplicate current-major branch. Before upgrading `master` to a new
20+
Angular major, create `vN` from its final commit and protect that branch.
21+
22+
## Releases
23+
24+
1. Open a release pull request that updates both package manifests and the
25+
changelog.
26+
2. Merge only after the required CI check passes on the release commit.
27+
3. In a clean checkout, run `npm ci`, `npm run lint`, `npm test`,
28+
`npm run build`, `npm audit --omit=dev --audit-level=high`, and
29+
`npm run verify:package`, and `npm run verify:consumer`.
30+
4. Publish `dist/plotly` with npm 2FA to the branch's `angularN` tag.
31+
5. Install and inspect the published version. Promote it to `latest` only when
32+
it is the current Angular major, then verify all expected npm dist-tags.
33+
6. Create a signed annotated `vN.x.y` tag on the release commit, push it, and
34+
create a GitHub Release from the changelog entry.
35+
36+
Never publish a maintenance branch directly to `latest`. Patch releases contain
37+
fixes and security updates; minor releases add backward-compatible features;
38+
major releases select a new Angular compatibility line.

0 commit comments

Comments
 (0)