Skip to content

docs: send readers to the SDK versions page for the version to use - #36

Merged
Fiona2016 merged 2 commits into
mainfrom
docs/readme-point-to-sdk-versions-page
Sep 1, 2026
Merged

docs: send readers to the SDK versions page for the version to use#36
Fiona2016 merged 2 commits into
mainfrom
docs/readme-point-to-sdk-versions-page

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

Both READMEs write the CDN url with a <version> placeholder. That only works if the reader has somewhere to resolve it, and the bucket cannot be listed without credentials — so until now there was nowhere.

What changes

packages/rum-legacy/README.md — keeps the placeholder, and now says where to look the version up.

README.md — the CDN section named https://static.flashcat.cloud/browser-sdk/v0/flashcat-rum.js. That path has not been updated since v0.1.0 moved releases into a directory per release; the file sitting there is from 2025-08-29 and carries no version string, where the current bundle reports "0.1.0". It still returns 200, which is what makes it harmful: a page loading it gets an old bundle with no signal that anything is wrong. The section now uses the same <version> form as the legacy README, points at the same lookup page, and states plainly that the v0 path is frozen.

Both link to a new SDK versions page on the docs site, which carries the version lookup link for every platform's registry (npm, Maven Central, CocoaPods, ohpm, pub.dev) plus the CDN url scheme. Written so that no version number is hardcoded anywhere — the page links to registries rather than restating what they say, so it cannot go stale.

A second commit removes .CHANGELOG.md.swp, an editor swap file that was committed at some point, and ignores the pattern.

Merge order

The docs page is a separate PR in flashduty-docs. Merge that one first — until it deploys, the links added here 404.

Verification

  • Every registry link on the docs page was resolved and the published version read back from its API: npm (browser-rum 0.1.0, miniprogram-rum 0.1.7, electron-sdk 0.2.1, mobile-react-native 0.1.5), Maven Central (dd-sdk-android-core 0.6.0), CocoaPods (FlashcatCore 0.5.0), ohpm (@flashcatcloud/core 0.5.1), pub.dev (flashcat_flutter_plugin 0.1.3).
  • npmjs.com and the ohpm SPA route were additionally opened in a browser, since both are unreadable to a plain HTTP fetch (npm answers 403 to it, ohpm renders client-side).
  • prettier --check passes on both READMEs.
  • The ES3 parse gate over the legacy README's <script> snippets still finds and passes 2 snippets; no snippet was touched.

Both READMEs write the CDN url with a `<version>` placeholder, which
only works if the reader has somewhere to resolve it. The bucket cannot
be listed without credentials, so until now there was nowhere: the
legacy README left the reader to guess, and the root README named `v0`,
a path that has not been updated since v0.1.0 moved releases into a
directory per release. It still resolves, which is the part that makes
it harmful — a page loading it gets an old bundle and no signal that
anything is wrong.

Both now point at the SDK versions page on the docs site, which carries
the lookup link for every platform's registry, and the root README says
plainly that the v0 path is frozen.
A .CHANGELOG.md.swp left behind by a crashed editor was committed and
has been in the tree since. Remove it, and ignore the pattern so the
next crash does not put another one there.
@Fiona2016
Fiona2016 merged commit 0806aff 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