Skip to content

docs(rum-legacy): point the CDN examples at paths that exist - #34

Merged
Fiona2016 merged 1 commit into
mainfrom
fix/legacy-readme-cdn-url
Sep 1, 2026
Merged

docs(rum-legacy): point the CDN examples at paths that exist#34
Fiona2016 merged 1 commit into
mainfrom
fix/legacy-readme-cdn-url

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

The legacy build's README documents two CDN urls and one sync command. None of the three resolve to anything today.

The urls

The README names v0.0.8, which was never released — this build first shipped in v0.1.0. Verified against the CDN:

URL Status
/browser-sdk/v0.0.8/fc-rum-legacy.js 404
/browser-sdk/v0.0.8/flashcat-rum.js 404 (no such directory)
/browser-sdk/v0.0.7/fc-rum-legacy.js 404 (release predates the package)
/browser-sdk/v0.1.0/fc-rum-legacy.js 200, 11880 bytes
/browser-sdk/v0.1.0/flashcat-rum.js 200, "0.1.0"

Replaced with a <version> placeholder, plus a line saying the build ships from v0.1.0 onwards. A literal version in prose goes stale on the next release, which is how this one got here.

The sync command

The example passed v0. deploy-oss.js uploads under /browser-sdk/${full version}/ only, so nothing writes a rolling v0 directory — what sits there is from a much earlier deploy and has no fc-rum-legacy.js at all. The documented command fails partway.

Dropped the arguments: with none, the script takes the version from lerna.json and matches the checkout it runs from. Also noted that the arguments are positional, so an output directory cannot be given without naming a version first — the reason the fix is not simply removing v0 from the middle of the line.

Verification

  • node scripts/deploy/sync-bundles.js prod v0.1.0 <dir> — downloads all six files (four entry bundles, two hash-named chunks), exit 0.
  • Negative control, prod v0.0.7 — reports the fc-rum-legacy.js 404, leaves the directory named .incomplete, exits 1. The "fails loudly" claim in the README holds.
  • prettier --check passes on both files.
  • The ES3 parse gate over the README's <script> snippets still finds and passes 2 snippets; no snippet was touched.

The sync-bundles.js usage comment carried the same v0.0.8 example and is updated with it.

The bundle urls named v0.0.8, a version that was never released. This
build first shipped in v0.1.0, so both of those urls 404 and a reader
copying them gets nothing. Use a <version> placeholder rather than a
literal that goes stale on the next release, and say which release the
legacy bundle starts at, since the directories of earlier ones exist
but hold no fc-rum-legacy.js.

The sync-bundles example passed `v0`, a directory the release tooling
never writes: deploy-oss.js uploads under the full version, and what
sits at v0 predates the legacy build entirely. The command therefore
fails on fc-rum-legacy.js. Drop the arguments so the script takes the
version from lerna.json and stays correct release to release, and note
that its arguments are positional, so an output directory cannot be
given without naming a version first.
@Fiona2016
Fiona2016 merged commit f2499be into main Sep 1, 2026
7 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