Skip to content

feat: versioned CDN auto-update for embedding sites#89

Merged
PAMulligan merged 1 commit into
mainfrom
feat/cdn-auto-update
May 26, 2026
Merged

feat: versioned CDN auto-update for embedding sites#89
PAMulligan merged 1 commit into
mainfrom
feat/cdn-auto-update

Conversation

@PAMulligan
Copy link
Copy Markdown
Contributor

Summary

Re-lands the CDN/auto-update work that was reviewed in #88. #88 merged into chore/release-please instead of main (stacked-PR base didn't retarget because #87's branch wasn't deleted on merge), so this content never reached main. This is the same reviewed commit, cherry-picked onto current main.

  • Tracked cdn/ bundle served via https://cdn.jsdelivr.net/gh/PMDevSolutions/Claudius@1/cdn/claudius.iife.js (+ .css). @1 resolves the latest v1.x; patches/minors auto-flow, a new major never lands silently.
  • The release-please workflow rebuilds + commits cdn/ onto the release PR (so the tag carries the served bytes) and uploads to the Release.
  • window.ClaudiusWidgetVersion build stamp (verified 1.1.0).
  • README/DEPLOY document the CDN snippet + cdn.jsdelivr.net CSP requirement.

What happens on merge

This is a feat:, so once on main release-please will open a v1.2.0 release PR; merging that cuts the first cdn/-bearing tag and makes the @1 CDN URL live (the bootstrap step).

Cleanup

After this merges, the stale chore/release-please and chore/cdn-auto-update branches can be deleted.

- Add tracked cdn/ bundle (claudius.iife.js + claudius.css), served by jsDelivr
  at gh@<major>; the release workflow rebuilds and commits it onto the release
  PR so the tagged commit carries the served bytes, and uploads it to the
  GitHub Release.
- Stamp the build version into the bundle as window.ClaudiusWidgetVersion.
- Document the CDN embed snippet and CSP requirement in README and DEPLOY.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 26, 2026

Deploying chat-widget with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1f72de8
Status: ✅  Deploy successful!
Preview URL: https://13f76c26.chat-widget-ejc.pages.dev
Branch Preview URL: https://feat-cdn-auto-update.chat-widget-ejc.pages.dev

View logs

@PAMulligan PAMulligan merged commit ce180f0 into main May 26, 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