Repository navigation
Update pdfjs-viewer docs for v4.6.1: the hashed data folder - #112
Merged
Merged
Conversation
The Vite plugin section now says the plugin puts the viewer files and their data in a folder named after a hash of their content, so caching the build's assets as immutable is safe. Migrating gets a 4.6.0 step: the cache rule the 4.6.0 docs suggested can go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
1 issue found across 3 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/pdfjs-viewer/index.md">
<violation number="1" location="src/pdfjs-viewer/index.md:538">
P2: The 4.6.0 docs suggested a short cache for the data folders, not an exclusion from an `immutable` rule. Match the wording to that advice so readers can find the rule they set.</violation>
</file>
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.
Summary
Docs for
@missing-elements/pdfjs-viewer4.6.1 (pdfjs-viewer#88).@4.6.1.assets-base. It now says the plugin putsviewer.mjs,pdf.mjsand their data in a folder named after a hash of their content, such asassets/pdfjs-viewer-84204294/. An app's ownassetFileNamesstill decides where the two files go, and caching the build's assets asimmutableis safe.Validation
pnpm buildpasses, and everyhref="#…"on_site/pdfjs-viewer/index.htmlmatches an id.outputOptionsandgetFolderNameinplugins/vite.js).🤖 Generated with Claude Code
Summary by cubic
Docs for
@missing-elements/pdfjs-viewer4.6.1, whose Vite plugin now putsviewer.mjs,pdf.mjs, and their data in a folder named after a hash of their content, such asassets/pdfjs-viewer-84204294/.Docs
assets-basefor fixed URLs; an upgrade that changes the files gets a new folder, soimmutablecaching is safe.@4.6.1.Migration
Written for commit 49ef52e. Summary will update on new commits.