Repository navigation
Include third-party license notices in the dist bundles - #1928
Merged
Merged
Conversation
The dist bundles inline npm packages under MIT and Apache-2.0: core-js polyfills and webpack's module shims in every bundle, and chevrotain, regexp-to-ast and tiny-emitter in the .full bundles. Both licenses require the notice in every copy, and a bundle is also used on its own, without the packages' own files. The banner now appends each bundled package's name, version and license file, read from the installed package at build time. A bundled package without a license file fails the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Performance comparison of head (768eaca) vs base (baa6557) |
7 of 12 tasks
sequba
added a commit
that referenced
this pull request
Nov 26, 2026
### Context The 4.0.0 section had several entries per change and entries for internal changes. This PR cuts it from 54 entries to 47. Merged: - The license change (#1885) and the invalid `gpl-v3` key (#1905) are now one breaking-change entry. - The four `TEXT` mask entries (#1716) are now two short ones: one for `TEXT`, one for `stringifyDateTime` and `stringifyDuration`. The details stay in the migration guide. - The `maxParserCacheSize` option and the parser cache growth fix (#1635) are now one entry under Added. Removed, because they aren't changes users act on: - The license check skip on handsontable.com (#1905). - The new license console messages (#1905). - The third-party license notices in the bundles (#1928). ### How did you test your changes? I read the rendered section. Every remaining entry keeps its link. ### AI assistance Claude Code made the edits, as the maintainer directed, and wrote this description. ### Compatibility with Excel and Google Sheets Not applicable. ### Public API changes None. ### Out of scope and follow-ups None. ### Types of changes - [ ] Breaking change (existing functionality no longer works as before) – agreed with the maintainers - [ ] New feature or improvement (a non-breaking change that adds functionality) - [ ] Bug fix (a non-breaking change that fixes an issue) - [ ] Additional language file, or a change to an existing language file (translations) - [x] Change to the documentation ### Related issues None. ### Checklist - [x] My pull request meets the [Definition of Done](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DEFINITION-OF-DONE.md). External contributors: see also [Contributing to HyperFormula](https://handsontable.com/docs/hyperformula/guide/contributing.html). - [x] I have signed the [Contributor License Agreement](https://goo.gl/forms/yuutGuN0RjsikVpM2). - [x] I read my own diff end to end before requesting a review. - [x] I added a [CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/develop/CHANGELOG.md) entry, written by [the changelog rules](https://github.com/handsontable/hyperformula/blob/develop/dev-docs/DOC-STANDARDS.md#the-changelog) – or none is needed (docs, tests or tooling only). - [x] I updated the documentation and JSDoc to match the change. - [ ] Breaking change only: I added a section to the migration guide. - [x] I updated the `dev-docs/` pages this change affects – or none needed it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The
dist/bundles contain code from npm packages whose licenses require their notice in every copy:core-js3.51.0useBuiltIns: 'usage'polyfills)webpack4.47.0webpack/buildinmodule shims)chevrotain6.5.0.fullbundlesregexp-to-ast0.4.0.fullbundlestiny-emitter2.1.0.fullbundlesUntil now, the banner held only HyperFormula's own
LICENSE.txt. A bundle loaded on its own, for example from a CDN, carried none of these notices. People who install from npm get the packages' ownLICENSEfiles innode_modules, but the bundles don't. The vendoredbesselandjStatcode already keeps its@licenseheader.The
BannerPluginin.config/webpack/base.jsnow takes a function. For each chunk, it collects the npm packages its modules come from and appends each package's name, version, license and license file text. They're read from the installed package at build time, so a new or updated dependency is covered without a code change. A bundled package without a license file fails the build instead of shipping without a notice.Alternative rejected: a hand-written list of notices, which falls out of date when a dependency changes. A plugin such as
license-webpack-pluginwould add a dependency for about 60 lines of code.hyperformula/dev-docs/BUILD.mdgets a section on the banner, including the constraint thatscript/check-file.jsexpects exactly two@licensecomments per bundle.How did you test your changes?
developmentandproductionwithwebpack ./lib/index.js --output-path <scratch>(same env asbundle:development/bundle:production). Each banner listscore-jsandwebpack, and the.fullbanners also listchevrotain,regexp-to-astandtiny-emitter. The.min.jsfiles keep the banner, because it's a/*!comment.node script/check-file.jspasses for all four bundles. The base bundles were run withNODE_PATHset to the repo'snode_modules, becausechevrotainis external and the scratch folder can't resolve it. The check runs the engine and asserts two@licensecomments.karma start --browsers ChromeHeadless(the browser suite builds with this config): 16,255 passed, 49 skipped. Firefox can't start in my local environment, so I didn't run it.No paired branch in
hyperformula-tests: no test change.AI assistance
Claude Code audited the shipped licenses and wrote the change, the dev-docs section and this description.
Compatibility with Excel and Google Sheets
Not applicable.
Public API changes
None.
Out of scope and follow-ups
hyperformula-uibundle wasn't audited for notices. It is MIT-licensed and has no runtime dependencies.languages/bundles don't use this banner. They contain no npm package code.Types of changes
Related issues
None.
Checklist
dev-docs/pages this change affects – or none needed it.🤖 Generated with Claude Code