Public: anyone can read this; the crew can change it.

releases.json links each release to its entry on /changelog #16732

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Each release url in /releases.json is now /changelog# , with the version URL-encoded. I did not add anchors to /changelog, so the link only reaches the page, not the entry. That is a gap for you to decide on.

Notes

opened this

Each release url in /releases.json is now <origin>/changelog#<version>, with the version URL-encoded. I did not add anchors to /changelog, so the link only reaches the page, not the entry. That is a gap for you to decide on.

  • Code: the change is in releasesJson in src/web/standards.ts, and its comment no longer says there is no page per release.
  • Child reader: src/core/parent_releases.ts is untouched. test/parent-releases-idle.test.ts and test/following.test.ts pass unchanged, and the new standards.test.ts assertions pass.
  • Tests: test/standards.test.ts now asserts the exact /changelog#<version> url for the newest release. The existing test that adds release 9.9.9 now also checks that url. That test already confirms the ETag changes with the body.
  • Checks: tsc --noEmit is clean and gate --fix changed nothing. I ran only the three test files above, not the full suite.
  • Left out: /changelog has anchors for months and route-speed but none per version, so the browser lands at the top of the page. Per-version anchors would be a separate change to src/web/pages/changelog.ts.
  • Extra commit: the pre-push hook asked for a commit starting with Try:, so there is an empty one for that.

To try it, run curl <origin>/releases.json and open any url in it.

Closes #6097

2 earlier comments
commented

Each release url in /releases.json is now <origin>/changelog#<version>, with the version URL-encoded. I did not add anchors to /changelog, so the link only reaches the page, not the entry. That is a gap for you to decide on.

  • Code: the change is in releasesJson in src/web/standards.ts, and its comment no longer says there is no page per release.
  • Child reader: src/core/parent_releases.ts is untouched. test/parent-releases-idle.test.ts and test/following.test.ts pass unchanged, and the new standards.test.ts assertions pass.
  • Tests: test/standards.test.ts now asserts the exact /changelog#<version> url for the newest release. The existing test that adds release 9.9.9 now also checks that url. That test already confirms the ETag changes with the body.
  • Checks: tsc --noEmit is clean and gate --fix changed nothing. I ran only the three test files above, not the full suite.
  • Left out: /changelog has anchors for months and route-speed but none per version, so the browser lands at the top of the page. Per-version anchors would be a separate change to src/web/pages/changelog.ts.
  • Extra commit: the pre-push hook asked for a commit starting with Try:, so there is an empty one for that.

To try it, run curl <origin>/releases.json and open any url in it.

commented

<!-- look-pages 04c81375b501 --> Look pages for 04c8137, from the gate:

  • look pages (inferred): this pull changes src/web/standards.ts; the forge pictures / (src/web/standards.ts), /docs (src/web/standards.ts), /explore (src/web/standards.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

Each release url in /releases.json is now <origin>/changelog#<version>, with the version URL-encoded. The anchor does not land on an entry yet, and I've left the page unchanged.

  • Look pages: I added a No look: line to a new commit and pushed. The gate inferred looks for 31 pages because their routes import src/web/standards.ts. The only change there is one URL string in the JSON body of /releases.json, which is not a page, so no page's markup or style changes. If a look of /changelog is still wanted, say so.
  • Child reader and tests: src/core/parent_releases.ts is untouched and its tests pass unchanged. test/standards.test.ts asserts the exact new url for the newest release and for a newly tagged one. The existing ETag test still shows the ETag changes with the body.
  • Left out: /changelog has no per-version anchors, so the link opens the page at the top and does not land on the release's entry. Adding anchors would be a separate change to src/web/pages/changelog.ts.
  • Checks: tsc is clean, and I ran only test/standards.test.ts, test/parent-releases-idle.test.ts and test/following.test.ts.
  • Try it: curl <origin>/releases.json, then open any url.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs