fix(types): change page.size to 10 in JSDoc comment#11561
fix(types): change page.size to 10 in JSDoc comment#11561bluwy merged 2 commits intowithastro:mainfrom
Conversation
10 is the correct default pageSize and not 25. Closes withastro#11560
🦋 Changeset detectedLatest commit: 5768113 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks @ArmandPhilippot @bluwy @ematipico for handling this! Just to weigh in:
For the changeset content itself, calling out that this is specifically a DOCS FIX is helpful, I think. See the last changeset I made, for example:
That way, people who are scanning can CLEARLY tell this is just a docs fix. In this situation, I would have suggested something like:
(Will note for future reference that "Uses" isn't a particularly descriptive/active verb for letting people know whether e.g. something was "fixed", "added", "removed", "improved", "refactored". Used is about what YOU did. Readers need to know what this change means for THEM, and the new state of the project as it relates to their code! 😉 ) |
|
Thanks @sarah11918 for taking the time to write this detailed explanation! 👏🏽 I better understand when to use a changeset now and your note on the wording makes perfect sense. Your suggestion is indeed much better in a changelog. I'll try to be more descriptive the next time! |
* Add default for `page.size` and `pageSize` (see withastro/astro#11561) * Add missing Since for `page.url.first` and `page.url.last` (see withastro/astro#11176)
* Add default for `page.size` and `pageSize` (see withastro/astro#11561) * Add missing Since for `page.url.first` and `page.url.last` (see withastro/astro#11176)
Changes
page.sizeto use the accuratepageSizedefault (10and not25).page.sizein astro/@types #11560Testing
No test needed, it's just a comment update. You can check the reproduction to see that
10is the correct number.Docs
An update to the Routing guide will be needed since it reuse the
Pageinterface (and maybe also an update to API reference). This is already reported in withastro/docs#8929.