Skip to content

Remove unused static/prebid/prebidjs-shim.js#659

Open
aram356 wants to merge 1 commit intomainfrom
chore/remove-unused-prebidjs-shim
Open

Remove unused static/prebid/prebidjs-shim.js#659
aram356 wants to merge 1 commit intomainfrom
chore/remove-unused-prebidjs-shim

Conversation

@aram356
Copy link
Copy Markdown
Collaborator

@aram356 aram356 commented Apr 24, 2026

Closes #658

Summary

  • Removes static/prebid/prebidjs-shim.js, which is dead code.
  • No code or doc references need updating.

Why

  • Nothing serves or references the file. The Fastly adapter only serves /static/tsjs=… paths (crates/trusted-server-adapter-fastly/src/main.rs:156); there is no handler for /static/prebid/*.
  • The /static/prebid/* mentions in crates/trusted-server-core/src/integrations/prebid.rs and docs are about the script_patterns wildcard that intercepts publisher <script> tags — a separate feature that does not depend on this file.
  • Added in c79068c1, predating the tsjs bundle pipeline. The Prebid module is now delivered as a deferred tsjs-prebid.min.js bundle.

Test plan

  • cargo build succeeds
  • cargo test --workspace passes
  • cargo clippy --workspace --all-targets --all-features -- -D warnings passes
  • Confirm no remaining references to prebidjs-shim in the repo

The file was never served or referenced. Nothing in the Rust adapter,
JS build pipeline, configs, or docs points to it. The only
/static/prebid/* mentions in code and docs relate to the script_patterns
wildcard that intercepts publisher Prebid tags — a separate feature that
does not depend on this shim.

Predates the tsjs bundle pipeline, where the Prebid module is now loaded
as a deferred tsjs-prebid.min.js bundle.
@aram356 aram356 self-assigned this Apr 24, 2026
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.

Remove unused static/prebid/prebidjs-shim.js

1 participant