···6677We have a quick list of common questions to get you started engaging with this project in
88[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
99+1010+You will be responsible for writing a **changeset** for your Astro PR. This is a Markdown file that states:
1111+1212+- which repository has changed
1313+- the kind of change according to [Astro's semantic versioning](https://docs.astro.build/en/upgrade-astro/#semantic-versioning)
1414+- a message describing the change that will be publicly displayed on the repo's CHANGELOG
1515+1616+```md title=".changeset/my-super-cool-changeset.md" wrap
1717+---
1818+"astro": patch
1919+---
2020+2121+Fixes unexpected `undefined` value when calling an action from the client without a return value
2222+```
2323+2424+You can generate a changeset using the `pnpm changeset` command, which will prompt you for the necessary information and create a randomly-named file in the `.changeset` folder. You can then edit the generated file to add more detail, or write your changeset from scratch.
2525+2626+## Format
2727+2828+Begin your changeset message with **a present tense verb** that completes a sentence in the style of: "This PR . . ." or "This contribution ..."
2929+3030+- Adds
3131+- Removes
3232+- Fixes
3333+- Updates
3434+- Refactors
3535+- Improves
3636+- Deprecates
3737+3838+Finish the introductory sentence with a message focusing on what has changed **about the codebase** (not what your feature itself does) that is meaningful to a **user** of Astro. It is usually more helpful to describe the change **as someone building an Astro site will experience it**, instead of describing **how you fixed it** or **what the code in the PR does**:
3939+4040+```markdown title="changeset.md" del={2} ins={5}
4141+// What the code now does
4242+Logs helpful errors if content is invalid
4343+4444+// The nature of the change to the Astro code base
4545+Adds logging for content collections configuration errors.
4646+```
4747+4848+You may then include additional paragraphs if necessary to describe the change in more detail. This may not be needed for a small bug fix, but is often helpful if the reader must make a change to their own code, or needs to understand how the change might affect them.
4949+5050+The level of detail of a changeset depends on the type of change (e.g. `patch` vs `minor`, breaking or not, only affects integration authors etc.) You may also use [`<h4>` - `<h6>` Markdown headings](#using-markdown-section-headings) to break your longer content into sections.
5151+5252+:::tip[Don't hide the good stuff in the changeset!]
5353+CHANGELOGS are often read only once, when someone is updating to the latest version of a package. Documentation is a constant reference that will be revisited and consulted frequently.
5454+5555+Make sure that the helpful explanations and examples for your fellow developers in both your changeset and your PR description are captured in the actual feature documentation, too!
5656+:::
5757+5858+### Patch updates
5959+6060+These updates are often fixes, refactors or other small improvements. They are typically not user-facing, and do not require someone to update their own project code.
6161+6262+Verbs like "fixes" and "refactors" are helpful to let readers know this is an internal or implementation change that they do not need to worry about. At the same time, these messages are helpful to someone who is interested in keeping up with small changes to the codebase.
6363+6464+Often one line is enough to describe your change meaningfully to an Astro user:
6565+6666+```md title="my-patch-changeset.md" wrap
6767+---
6868+"astro": patch
6969+---
7070+7171+Fixes a bug where the toolbar audit would incorrectly flag images as above the fold
7272+```
7373+7474+```md title="my-patch-changeset.md" wrap
7575+---
7676+"astro": patch
7777+---
7878+7979+Refactors internal handling of styles and scripts for content collections to improve build performance
8080+```
8181+8282+```md title="my-patch-changeset.md" wrap
8383+---
8484+"astro": patch
8585+---
8686+8787+Updates the `HTMLAttributes` type exported from `astro` to allow data attributes
8888+```
8989+9090+These do not need to be full sentences and do not need end punctuation unless you write multiple sentences.
9191+9292+:::tip[Help your reader figure out if this is change important to them]
9393+Even though these are small changes described by very short sentences, they still need to communicate a lot!
9494+9595+Check that you have clearly stated not just **what has changed** but also **who needs to know**. If your reader can identify that a change is important to them, they can always seek out further information if they need to know more.
9696+:::
9797+9898+#### Tips and Examples
9999+100100+For a great changeset message:
101101+102102+Include the specific API changed (using inline code highlighting as appropriate) when your change might not be easy to identify so that your reader can easily tell whether it's something they are using and need to care about:
103103+104104+> Improves automatic fallbacks generation
105105+>
106106+> vs
107107+>
108108+> ✅ Improves automatic `fallbacks` generation **for the experimental Fonts API**
109109+110110+When the specific API change is not user-facing (e.g. a type not publicly exposed) and/or your reader will not recognize it by name, describe the use case or end result that will be meaningful to the reader instead:
111111+112112+> Adds `| (string & {})` for better autocomplete of `App.SessionData`
113113+>
114114+> vs
115115+>
116116+> ✅ Improves autocompletion for session keys
117117+118118+### New features
119119+120120+Begin your changeset with "Adds" to alert readers that there is something new and mention the names of any new items (options, functions) that have been added directly in the first sentence:
121121+122122+```md title="my-minor-changeset.md" wrap
123123+---
124124+"astro": minor
125125+---
126126+127127+Adds a new `flamethrow` view transitions animation
128128+129129+<!-- -->
130130+```
131131+132132+Additionally, describe what people are now able to do because of these additions that they could not before.
133133+134134+The changeset is an opportunity to call people's attention to new things they might wish to try in their Astro project, and may include a code example showing basic usage of the new feature:
135135+136136+````md wrap title="my-minor-changeset.md"
137137+---
138138+"astro": minor
139139+---
140140+141141+Adds a new, optional property `timeout` for the `client:idle` directive
142142+143143+This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component, even if the page is not yet done with its initial load.
144144+145145+This means you can delay hydration for lower-priority UI elements with more control to ensure your element is interactive within a specified time frame.
146146+147147+```
148148+<Button client:idle={{ timeout: 500 }} />
149149+```
150150+````
151151+152152+You can also use [`<h4>` - `<h6>` Markdown headings](#using-markdown-section-headings) to break your longer content into sections.
153153+154154+### Breaking changes
155155+156156+Changesets focus on what has changed, and **must include any breaking changes**, including changes to default behavior. Most users will have several default settings configured (often by not setting any value themselves), so changes to defaults can have a significant impact on someone's project!
157157+158158+Verbs like "removes", "changes", and "deprecates" call attention to something that might require attention. Unlike a new feature someone can choose not to use, changing default or expected behavior cannot be ignored.
159159+160160+You can also use [`<h4>` - `<h6>` Markdown headings](#using-markdown-section-headings) to break your content into sections, for example, to add headings like, "What should I do?" or "Migrating from the previous version."
161161+162162+```md title="my-major-changeset.md" wrap
163163+---
164164+"astro": major
165165+---
166166+167167+Removes support for returning simple objects from endpoints. You must now return a `Response` instead.
168168+```
169169+170170+Changeset messages for breaking changes must also provide clear guidance for updating. Diff code samples are encouraged when appropriate:
171171+172172+````md title="my-major-changeset.md" wrap
173173+---
174174+"astro": major
175175+---
176176+177177+Removes support for Shiki custom language's `path` property. The language JSON file must now be imported and passed to the option instead.
178178+179179+```diff
180180+// astro.config.js
181181++ import customLang from './custom.tmLanguage.json'
182182+183183+export default defineConfig({
184184+ markdown: {
185185+ shikiConfig: {
186186+ langs: [
187187+- { path: './custom.tmLanguage.json' },
188188++ customLang,
189189+ ],
190190+ },
191191+ },
192192+})
193193+```
194194+````
195195+196196+If your contribution changes a default value, then it is helpful to describe how to revert back to the previous behavior. Readers may also appreciate being informed that they can remove configuration that is no longer needed.
197197+198198+````md title="my-major-changeset.md" wrap
199199+---
200200+"astro": major
201201+---
202202+203203+Changes the default value of `security.checkOrigin` to true, which now enables Cross-Site Request Forgery (CSRF) protection by default for pages rendered on demand.
204204+205205+If you had previously configured `security.checkOrigin: true`, you no longer need this set in your Astro config. This is now the default and it is safe to remove.
206206+207207+To revert to the previous default behavior and opt out of automatically checking that the “origin” header matches the URL sent by each request, you must now explicitly set `security.checkOrigin: false`:
208208+209209+```diff
210210+export default defineConfig({
211211++ security: {
212212++ checkOrigin: false
213213++ }
214214+})
215215+```
216216+````
217217+218218+## Using Markdown section headings
219219+220220+For longer descriptions that you want to split into sections, always start at the `<h4>` level, using `####` where you would normally use `##` in a regular Markdown post. This ensures readability when your message is incorporated into the final CHANGELOG:
221221+222222+```md wrap title="my-long-changeset-with-sections.md"
223223+---
224224+"astro": minor
225225+---
226226+227227+Adds a new Sessions API to store user state between requests for on-demand rendered pages.
228228+229229+#### Configuring session storage
230230+231231+<!-- ... -->
232232+233233+#### Using sessions
234234+235235+<!-- ... -->
236236+237237+##### In `.astro` pages
238238+239239+<!-- ... -->
240240+241241+##### In API endpoints
242242+243243+<!-- ... -->
244244+245245+#### Upgrading from the experimental API
246246+247247+<!-- ... -->
248248+```
+1-1
.changeset/bitter-sides-accept.md
···33"@clack/core": patch
44---
5566-Disallow selection of disabled options in autocomplete.
66+Disallows selection of `disabled` options in autocomplete.
+1-1
.changeset/brave-monkeys-slide.md
···22"@clack/prompts": patch
33---
4455-Add `withGuide` support to select prompt
55+Adds `withGuide` support to select prompt.
+2-2
.changeset/chilly-buses-sort.md
···11---
22-"@clack/prompts": minor
22+"@clack/prompts": patch
33---
4455-add wraparound behaviour to autocomplete components
55+Fixes line wrapping behavior in autocomplete.
+1-1
.changeset/cool-forks-flash.md
···22"@clack/core": patch
33---
4455-Update the core README.md to reflect the internal member name change when rendering a TextPrompt (`userInputWithCursor`).
55+Updates the documentation to mention `userInputWithCursor` when using the `TextPrompt` primitive.
···22"@clack/prompts": patch
33---
4455-Fix `withGuide` option being ignored in password and path prompts
55+Fixes `withGuide` support in password and path prompts.
+1-1
.changeset/modern-dots-make.md
···22"@clack/prompts": patch
33---
4455-Add `withGuide` support to selectKey prompt
55+Adds `withGuide` support to selectKey prompt.
+1-1
.changeset/rotten-jokes-read.md
···22"@clack/prompts": patch
33---
4455-Add `withGuide` support to password prompt.
55+Adds `withGuide` support to password prompt.
+1-1
.changeset/small-toys-move.md
···22"@clack/prompts": patch
33---
4455-add `vertical` arrangement option to `confirm` prompt
55+Adds `vertical` arrangement option to `confirm` prompt.
+1-1
.changeset/tasty-horses-lay.md
···22"@clack/prompts": patch
33---
4455-Add support for `withGuide` to confirm prompt
55+Adds `withGuide` support to confirm prompt.
+1-1
.changeset/wicked-sides-share.md
···22"@clack/prompts": patch
33---
4455-Add `withGuide` support to spinner prompt
55+Adds `withGuide` support to spinner prompt.