1 # Writing the Highlights Section
2
3 ## Structure
4
5 Each Highlight is an H3 subsection. In multi-highlight releases, subsections are separated by `---` horizontal rules.
6
7 ```markdown
8 ## Highlights
9
10 ### Descriptive Outcome Title
11
12 Body prose here.
13
14 [#NNNN](https://github.com/medusajs/medusa/pull/NNNN)
15
16 ---
17
18 ### Another Highlight Title
19
20 Body prose here.
21
22 [#MMMM](https://github.com/medusajs/medusa/pull/MMMM)
23 ```
24
25 ---
26
27 ## H3 Heading
28
29 - Write a short, descriptive title summarizing the **outcome or capability**, not the PR title verbatim
30 - Use title case
31 - Focus on what the user/developer gains, not the internal implementation detail
32
33 **Good:** `Priority-based Event Processing`
34 **Good:** `Fix credit line computation on order cancellation`
35 **Bad:** `feat(events): add priority queue to event bus` (PR title verbatim)
36 **Bad:** `Event Bus Update` (too vague)
37
38 ---
39
40 ## Body Prose
41
42 - 1–4 sentences explaining what changed, why it matters, and (for breaking changes) what action is required
43 - Write in present or past tense, active voice
44 - Avoid "we" — write "Medusa now supports…" or use passive sparingly
45 - For breaking changes: lead with `🚧 Breaking change` on its own line, then prose
46 - DO NOT include emdashes.
47
48 **Breaking change example:**
49 ```markdown
50 ### Zod Dependency Restructuring
51
52 🚧 Breaking change
53
54 Zod has been moved from a peer dependency to a direct dependency of `@medusajs/framework`. If you previously installed Zod explicitly in your project to satisfy the peer dependency requirement, you can remove it.
55
56 [#14441](https://github.com/medusajs/medusa/pull/14441)
57 ```
58
59 **Feature highlight example:**
60 ```markdown
61 ### Priority-based Event Processing
62
63 The event bus now supports assigning a priority level to events. Higher-priority events are processed before lower-priority ones within the same queue, enabling time-sensitive workflows (such as payment confirmations) to run ahead of background tasks.
64
65 [#14520](https://github.com/medusajs/medusa/pull/14520)
66 ```
67
68 ---
69
70 ## Code Blocks
71
72 Include a fenced code block when the Highlight involves:
73 - A config change the developer must make
74 - New CLI commands
75 - Updated import paths
76 - A migration snippet
77
78 Place the code block after the prose, before the PR links.
79
80 ```markdown
81 ### Improved pnpm Support
82
83 Medusa's CLI and starter templates now fully support pnpm as a package manager. Pass `--package-manager pnpm` when creating a new project:
84
85 \`\`\`bash
86 npx create-medusa-app@latest my-store --package-manager pnpm
87 \`\`\`
88
89 [#14600](https://github.com/medusajs/medusa/pull/14600)
90 ```
91
92 ---
93
94 ## PR Links
95
96 - Place at the bottom of each Highlight subsection, after all prose and code blocks
97 - One link per line as a bare markdown link (no surrounding text)
98 - Multiple PRs: each on its own line
99
100 ```markdown
101 [#14441](https://github.com/medusajs/medusa/pull/14441)
102 [#14520](https://github.com/medusajs/medusa/pull/14520)
103 ```
104
105 Do **not** write: `See [#14441](url) and [#14520](url)` — bare links only.
106
107 ---
108
109 ## Breaking Change Nuance
110
111 When a breaking change only affects a subset of users, add a `>` blockquote after the `🚧` line:
112
113 ```markdown
114 🚧 Breaking change
115
116 > This change only affects projects that manually configure the event bus priority settings. If you use the default configuration, no action is required.
117
118 Zod has been moved...
119 ```