Skip to content

docs: correct the 8.0.0 changelog purchases example - #40

Merged
cubehouse merged 1 commit into
mainfrom
fix/changelog-example
Sep 8, 2026
Merged

cubehouse merged 1 commit into
mainfrom
fix/changelog-example

Conversation

@cubehouse

Copy link
Copy Markdown
Member

Docs only; the published packages are unaffected.

Two errors in the purchases example shipped with the release, both introduced when I wrote the changelog from memory of the API instead of running it.

  1. entity(id).schedule is a property, not a method. The snippet as written fails outright. The call is .schedule.upcoming().
  2. The example filtered on TICKETED_EVENT, which matches nothing useful. Purchases are Lightning Lane entries on ordinary OPERATING days. Measured against Magic Kingdom today: 48 TICKETED_EVENT entries with no purchases, 26 OPERATING entries with them. The filter is removed and the distinction called out, since filtering on type is the obvious wrong guess.

Both snippets are now executed verbatim against the published package, with real output pasted as a comment. Entry counts are stated as a dated snapshot rather than a bare number, because the schedule window rolls daily.

🤖 Generated with Claude Code

Two errors in the example shipped with 8.0.0, both mine.

`entity(id).schedule` is a property holding a ScheduleApi, not a method, so
the snippet as written threw 'schedule is not a function'. The call is
`.schedule.upcoming()`.

The snippet also filtered on `day.type === 'TICKETED_EVENT'`, which matches
nothing useful: purchases are Lightning Lane entries attached to ordinary
OPERATING days. Measured against Magic Kingdom today — 48 TICKETED_EVENT
entries with no purchases, 26 OPERATING entries with them. The filter is
removed and the distinction called out, since filtering on type is the
obvious wrong guess.

The example is now run verbatim against the published 8.0.0 package rather
than written from memory of the API. The entry count is stated as a dated
snapshot because the schedule window rolls.

No code change; the package is unaffected.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cubehouse
cubehouse merged commit 3ee4813 into main Sep 8, 2026
3 checks passed
@cubehouse
cubehouse deleted the fix/changelog-example branch September 8, 2026 14:06
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