Commit 3ee4813
docs: correct the 8.0.0 changelog purchases example (#40)
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>1 parent 32159b5 commit 3ee4813
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
0 commit comments