Skip to content

Update pdfjs-viewer docs for v4.6.1: the hashed data folder - #112

Merged
alekswebnet merged 2 commits into
mainfrom
docs/pdfjs-viewer-4.6.1
Nov 24, 2026
Merged

alekswebnet merged 2 commits into
mainfrom
docs/pdfjs-viewer-4.6.1

Conversation

@alekswebnet

@alekswebnet alekswebnet commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Docs for @missing-elements/pdfjs-viewer 4.6.1 (pdfjs-viewer#88).

  • Bump the pinned package to 4.6.1. The CDN examples now show @4.6.1.
  • Vite plugin: the caching paragraph used to say the data keeps fixed URLs and suggested a short cache or assets-base. It now says the plugin puts viewer.mjs, pdf.mjs and their data in a folder named after a hash of their content, such as assets/pdfjs-viewer-84204294/. An app's own assetFileNames still decides where the two files go, and caching the build's assets as immutable is safe.
  • Migrating: a new "From 4.6.0" step. The plugin's output moves into the hashed folder, and the cache rule the 4.6.0 docs suggested can be removed.

Validation

  • pnpm build passes, and every href="#…" on _site/pdfjs-viewer/index.html matches an id.
  • The installed 4.6.1 package contains the plugin with the hashed folder (outputOptions and getFolderName in plugins/vite.js).

🤖 Generated with Claude Code


Summary by cubic

Docs for @missing-elements/pdfjs-viewer 4.6.1, whose Vite plugin now puts viewer.mjs, pdf.mjs, and their data in a folder named after a hash of their content, such as assets/pdfjs-viewer-84204294/.

Docs

  • The caching paragraph no longer suggests a short cache or assets-base for fixed URLs; an upgrade that changes the files gets a new folder, so immutable caching is safe.
  • The pinned package bumps to 4.6.1, so the CDN examples now show @4.6.1.

Migration

  • Adds a "From 4.6.0" step: the plugin's output moves into the hashed folder, so a short cache rule set up per the 4.6.0 docs no longer matches and can be removed.

Written for commit 49ef52e. Summary will update on new commits.

View guided diff Turn on auto-fix

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>
@socket-security

socket-security Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​missing-elements/​pdfjs-viewer@​4.6.0 ⏵ 4.6.1100 +28100100 +5100 +10100 +31

View full report

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

Comment thread src/pdfjs-viewer/index.md Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alekswebnet
alekswebnet merged commit 3812b2f into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant