docs: stop documenting private imageBundles property#1099
Merged
Conversation
…perty Commit 5f189e7 made ImageBundlePlugin.imageBundles private, but the docs still presented it as public API. - image-bundles.md: drop the plugin.imageBundles.length inspection example and reword the runtime-management prose to describe only the supported operations (removeImageBundle, getImageFromBundles) - CHANGELOG.md: replace the read-only access guidance that pointed at ?.imageBundles with ?.getImageFromBundles(key), the actual public read-only API used by CellsMixin.postProcessCellStyle
WalkthroughDocumentation and changelog text were updated to recommend using ChangesDocs and changelog update
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
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.



commit 5f189e7 made
ImageBundlePlugin.imageBundlesprivate (it is plugin-internal state and was never released), but several docs still presented it as public API.Overview
packages/website/docs/usage/image-bundles.md: drop theplugin.imageBundles.lengthinspection example (it no longer compiles) and reword the runtime-management prose to describe only the supported public operations (removeImageBundle,getImageFromBundles).CHANGELOG.md: the Unreleased migration note pointed read-only consumers at?.imageBundles. Replace it with?.getImageFromBundles(key), the actual public read-only API used byCellsMixin.postProcessCellStyle, and document itsnull/undefinedsemantics.No production code changes. The auto-generated TypeDoc API pages under
packages/website/generated/api-docs/already reflect the private visibility and regenerate on build.Notes
Docs-only fix, no new changelog entry needed (it only corrects existing unreleased changelog text), hence
skip-changelog.Summary by CodeRabbit