From d7688f9943814b44ab20b7d4b079ab50f7ca36df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Mon, 17 Aug 2026 21:11:12 -0400 Subject: [PATCH] fix(docs): load the player from latest, not a pinned minor (#3320) * fix(docs): load the player from latest, not a pinned minor The catalog pages pinned the player CDN URL to a minor line, and that pin sat one line behind after the last release. Every page kept rendering, on the older build, so nothing surfaced it: the only symptom was that a fix published to npm never appeared on the docs. The generator derived its pin from the player's package.json, which is correct only if every page is regenerated on the release that moves it. That is the step that did not happen, and it has to happen across 175 generated pages plus three hand-written files for the pin to be true. A version carried in step across 178 places will be stale, and stale here is silent. Ask for latest instead and there is nothing to carry. This costs the ability to hold the docs back from a bad player release. Paid deliberately: the pin did not buy that either, it only delayed the good releases too. A test asserts no pinned version comes back, and fails if it stops finding the references at all, so it cannot pass by matching nothing. * refactor(scripts): list tracked files instead of walking the tree The pin guard hand-rolled a recursive directory walk with its own skip list and size cap, which the audit flagged: helpers living in a test file earn no coverage, so their complexity lands straight on the CRAP score. git already knows which files to read, and ignores node_modules and build output for us, so one call replaces the walker and both findings go away. --- docs/catalog/blocks/app-showcase.mdx | 2 +- docs/catalog/blocks/apple-money-count.mdx | 2 +- docs/catalog/blocks/beat-freeze-cut.mdx | 2 +- .../blocks/blue-sweater-intro-video.mdx | 2 +- docs/catalog/blocks/camcorder-hud.mdx | 2 +- docs/catalog/blocks/chatgpt-exchange.mdx | 2 +- .../catalog/blocks/chromatic-radial-split.mdx | 2 +- docs/catalog/blocks/cinematic-zoom.mdx | 2 +- docs/catalog/blocks/claude-exchange.mdx | 2 +- docs/catalog/blocks/code-3d-extrude.mdx | 2 +- docs/catalog/blocks/code-diff.mdx | 2 +- docs/catalog/blocks/code-highlight.mdx | 2 +- docs/catalog/blocks/code-morph.mdx | 2 +- .../catalog/blocks/code-particle-assemble.mdx | 2 +- docs/catalog/blocks/code-scroll.mdx | 2 +- docs/catalog/blocks/code-shader-dissolve.mdx | 2 +- .../code-snippet-apple-terminal-basic.mdx | 2 +- ...code-snippet-apple-terminal-clear-dark.mdx | 2 +- ...ode-snippet-apple-terminal-clear-light.mdx | 2 +- .../code-snippet-apple-terminal-grass.mdx | 2 +- .../code-snippet-apple-terminal-homebrew.mdx | 2 +- .../code-snippet-apple-terminal-man-page.mdx | 2 +- .../code-snippet-apple-terminal-novel.mdx | 2 +- .../code-snippet-apple-terminal-ocean.mdx | 2 +- .../code-snippet-apple-terminal-pro.mdx | 2 +- .../code-snippet-apple-terminal-red-sands.mdx | 2 +- ...-snippet-apple-terminal-silver-aerogel.mdx | 2 +- ...de-snippet-apple-terminal-solid-colors.mdx | 2 +- .../catalog/blocks/code-snippet-dark-2026.mdx | 2 +- .../blocks/code-snippet-dark-modern.mdx | 2 +- .../catalog/blocks/code-snippet-dark-plus.mdx | 2 +- docs/catalog/blocks/code-snippet-flight.mdx | 2 +- .../code-snippet-high-contrast-light.mdx | 2 +- .../blocks/code-snippet-high-contrast.mdx | 2 +- .../blocks/code-snippet-light-2026.mdx | 2 +- .../blocks/code-snippet-light-modern.mdx | 2 +- .../blocks/code-snippet-light-plus.mdx | 2 +- docs/catalog/blocks/code-snippet-monokai.mdx | 2 +- .../blocks/code-snippet-solarized-light.mdx | 2 +- .../code-snippet-visual-studio-dark.mdx | 2 +- .../code-snippet-visual-studio-light.mdx | 2 +- docs/catalog/blocks/code-typing.mdx | 2 +- docs/catalog/blocks/cross-warp-morph.mdx | 2 +- docs/catalog/blocks/data-chart.mdx | 2 +- docs/catalog/blocks/domain-warp-dissolve.mdx | 2 +- .../blocks/editorial-flash-overlay.mdx | 2 +- docs/catalog/blocks/flash-through-white.mdx | 2 +- docs/catalog/blocks/flowchart-vertical.mdx | 2 +- docs/catalog/blocks/flowchart.mdx | 2 +- docs/catalog/blocks/freeze-frame-dressing.mdx | 2 +- docs/catalog/blocks/glitch.mdx | 2 +- docs/catalog/blocks/gravitational-lens.mdx | 2 +- docs/catalog/blocks/hw-frame.mdx | 2 +- docs/catalog/blocks/hw-path-text.mdx | 2 +- docs/catalog/blocks/hw-pipeline.mdx | 2 +- .../catalog/blocks/hw-scribble-transition.mdx | 2 +- docs/catalog/blocks/hw-text-cloud.mdx | 2 +- docs/catalog/blocks/hw-title.mdx | 2 +- docs/catalog/blocks/instagram-follow.mdx | 2 +- docs/catalog/blocks/light-leak.mdx | 2 +- .../blocks/liquid-glass-context-menu.mdx | 2 +- .../blocks/liquid-glass-media-controls.mdx | 2 +- .../blocks/liquid-glass-notification.mdx | 2 +- docs/catalog/blocks/liquid-glass-widgets.mdx | 2 +- docs/catalog/blocks/logo-outro.mdx | 2 +- docs/catalog/blocks/lt-accent-underline.mdx | 2 +- docs/catalog/blocks/lt-bold-block.mdx | 2 +- docs/catalog/blocks/lt-clean-bar.mdx | 2 +- docs/catalog/blocks/lt-color-block.mdx | 2 +- docs/catalog/blocks/lt-dark-card.mdx | 2 +- docs/catalog/blocks/lt-kicker-name.mdx | 2 +- docs/catalog/blocks/lt-mask-reveal.mdx | 2 +- docs/catalog/blocks/lt-side-rule.mdx | 2 +- docs/catalog/blocks/lt-soft-pill.mdx | 2 +- docs/catalog/blocks/lt-stack-bars.mdx | 2 +- docs/catalog/blocks/macos-notification.mdx | 2 +- docs/catalog/blocks/mk-background.mdx | 2 +- docs/catalog/blocks/mk-callout-highlight.mdx | 2 +- .../blocks/mk-clone-wall-transition.mdx | 2 +- docs/catalog/blocks/mk-line-graph.mdx | 2 +- docs/catalog/blocks/mk-placeholder-grid.mdx | 2 +- docs/catalog/blocks/mk-progress-stat.mdx | 2 +- docs/catalog/blocks/mk-specs-list.mdx | 2 +- docs/catalog/blocks/news-ticker.mdx | 2 +- .../blocks/north-korea-locked-down.mdx | 2 +- docs/catalog/blocks/nyc-paris-flight.mdx | 2 +- .../blocks/organic-light-leak-overlay.mdx | 2 +- docs/catalog/blocks/reddit-post.mdx | 2 +- docs/catalog/blocks/ridged-burn.mdx | 2 +- docs/catalog/blocks/ripple-waves.mdx | 2 +- docs/catalog/blocks/sdf-iris.mdx | 2 +- docs/catalog/blocks/spain-map.mdx | 2 +- docs/catalog/blocks/spotify-card.mdx | 2 +- docs/catalog/blocks/swirl-vortex.mdx | 2 +- docs/catalog/blocks/thermal-distortion.mdx | 2 +- docs/catalog/blocks/thread-message-stack.mdx | 2 +- docs/catalog/blocks/tiktok-follow.mdx | 2 +- docs/catalog/blocks/transitions-3d.mdx | 2 +- docs/catalog/blocks/transitions-blur.mdx | 2 +- docs/catalog/blocks/transitions-cover.mdx | 2 +- .../blocks/transitions-destruction.mdx | 2 +- docs/catalog/blocks/transitions-dissolve.mdx | 2 +- .../catalog/blocks/transitions-distortion.mdx | 2 +- docs/catalog/blocks/transitions-grid.mdx | 2 +- docs/catalog/blocks/transitions-light.mdx | 2 +- .../catalog/blocks/transitions-mechanical.mdx | 2 +- docs/catalog/blocks/transitions-other.mdx | 2 +- docs/catalog/blocks/transitions-push.mdx | 2 +- docs/catalog/blocks/transitions-radial.mdx | 2 +- docs/catalog/blocks/transitions-scale.mdx | 2 +- docs/catalog/blocks/ui-3d-reveal.mdx | 2 +- docs/catalog/blocks/us-map-bubble.mdx | 2 +- docs/catalog/blocks/us-map-flow.mdx | 2 +- docs/catalog/blocks/us-map-hex.mdx | 2 +- docs/catalog/blocks/us-map.mdx | 2 +- docs/catalog/blocks/vfx-text-cursor.mdx | 2 +- docs/catalog/blocks/vpn-youtube-spot.mdx | 2 +- docs/catalog/blocks/whip-pan.mdx | 2 +- docs/catalog/blocks/world-map.mdx | 2 +- docs/catalog/blocks/x-post.mdx | 2 +- docs/catalog/blocks/yt-comment-card.mdx | 2 +- docs/catalog/blocks/yt-lcd-background.mdx | 2 +- docs/catalog/blocks/yt-logo-intro.mdx | 2 +- docs/catalog/blocks/yt-lower-third.mdx | 2 +- docs/catalog/blocks/yt-prism-title.mdx | 2 +- docs/catalog/blocks/yt-vertical-fill.mdx | 2 +- .../catalog/components/animated-bar-chart.mdx | 2 +- docs/catalog/components/arc-motion-path.mdx | 2 +- .../components/camera-rig-depth-stack.mdx | 2 +- docs/catalog/components/caption-clip-wipe.mdx | 2 +- .../components/caption-editorial-emphasis.mdx | 2 +- docs/catalog/components/caption-emoji-pop.mdx | 2 +- .../catalog/components/caption-glitch-rgb.mdx | 2 +- .../components/caption-gradient-fill.mdx | 2 +- docs/catalog/components/caption-highlight.mdx | 2 +- .../components/caption-kinetic-slam.mdx | 2 +- .../components/caption-matrix-decode.mdx | 2 +- .../components/caption-neon-accent.mdx | 2 +- docs/catalog/components/caption-neon-glow.mdx | 2 +- .../components/caption-parallax-layers.mdx | 2 +- .../components/caption-particle-burst.mdx | 2 +- .../components/caption-pill-karaoke.mdx | 2 +- .../components/caption-weight-shift.mdx | 2 +- docs/catalog/components/checkout-flow.mdx | 2 +- docs/catalog/components/confetti.mdx | 2 +- docs/catalog/components/grain-overlay.mdx | 2 +- .../catalog/components/grid-pixelate-wipe.mdx | 2 +- docs/catalog/components/hw-arrow.mdx | 2 +- docs/catalog/components/hw-boil.mdx | 2 +- docs/catalog/components/hw-box-label.mdx | 2 +- docs/catalog/components/hw-callout-circle.mdx | 2 +- docs/catalog/components/hw-underline.mdx | 2 +- .../components/keyframe-scrub-stack.mdx | 2 +- docs/catalog/components/mesh-gradient-bg.mdx | 2 +- docs/catalog/components/mk-emphasis-type.mdx | 2 +- docs/catalog/components/mk-usage-arc.mdx | 2 +- docs/catalog/components/morph-text.mdx | 2 +- docs/catalog/components/motion-blur.mdx | 2 +- .../components/onboarding-stepper-flow.mdx | 2 +- docs/catalog/components/parallax-unzoom.mdx | 2 +- docs/catalog/components/parallax-zoom.mdx | 2 +- .../components/settings-toggle-flow.mdx | 2 +- docs/catalog/components/shimmer-sweep.mdx | 2 +- docs/catalog/components/signup-flow.mdx | 2 +- docs/catalog/components/spotlight-card.mdx | 2 +- docs/catalog/components/stagger-lattice.mdx | 2 +- .../components/svg-line-draw-loader.mdx | 2 +- .../catalog/components/terminal-simulator.mdx | 2 +- .../components/three-orbiting-cards.mdx | 2 +- docs/catalog/components/vignette.mdx | 2 +- docs/catalog/components/x-follow-card.mdx | 2 +- docs/catalog/components/yt-camera-move.mdx | 2 +- docs/catalog/components/yt-circle-pointer.mdx | 2 +- .../components/yt-feather-highlight.mdx | 2 +- docs/catalog/components/yt-screen-warp.mdx | 2 +- docs/catalog/index.mdx | 2 +- docs/snippets/catalog-overview-player.jsx | 4 +- docs/snippets/variables-explorer.jsx | 6 +- package.json | 2 +- scripts/generate-catalog-pages.ts | 26 +++--- scripts/player-cdn-pin.test.ts | 82 +++++++++++++++++++ 181 files changed, 283 insertions(+), 189 deletions(-) create mode 100644 scripts/player-cdn-pin.test.ts diff --git a/docs/catalog/blocks/app-showcase.mdx b/docs/catalog/blocks/app-showcase.mdx index 900980082..10e6811cf 100644 --- a/docs/catalog/blocks/app-showcase.mdx +++ b/docs/catalog/blocks/app-showcase.mdx @@ -9,7 +9,7 @@ import { InstallCommand } from "/snippets/install-command.jsx"; className="w-full aspect-video rounded-xl border-0 bg-zinc-100 dark:bg-zinc-800" title="app-showcase preview" loading="lazy" - srcDoc={` +