@emeryld/rrroutes-export 1.0.23 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-export",
3
3
  "description": "Finalized leaves export helpers and CLI for RRRoutes",
4
- "version": "1.0.23",
4
+ "version": "1.0.24",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "dist/index.cjs",
@@ -381,7 +381,12 @@
381
381
  .changelog-commit-separator {
382
382
  margin-top: 12px;
383
383
  padding-top: 10px;
384
+ padding-bottom: 6px;
384
385
  border-top: 1px solid var(--muted);
386
+ position: sticky;
387
+ top: 0;
388
+ z-index: 5;
389
+ background: var(--bg);
385
390
  }
386
391
 
387
392
  .changelog-commit-separator:first-child {
@@ -2190,8 +2195,14 @@
2190
2195
  const box = el('div', 'changelog-commit-separator')
2191
2196
  const commit = commitBySha.get(commitSha)
2192
2197
  const commitDateTime = formatCommitDateTime(commit?.authorDate)
2193
- const label = `commit ${String(commitSha || '').slice(0, 12)}`
2194
- const meta = [commitDateTime, commit?.authorName || null, commit?.subject || null]
2198
+ const subjectFirstLine = String(commit?.subject || '')
2199
+ .split('\n')
2200
+ .map((line) => line.trim())
2201
+ .find(Boolean)
2202
+ const labelParts = [`commit ${String(commitSha || '').slice(0, 12)}`]
2203
+ if (subjectFirstLine) labelParts.push(subjectFirstLine)
2204
+ const label = labelParts.join(' ')
2205
+ const meta = [commitDateTime, commit?.authorName || null]
2195
2206
  .filter(Boolean)
2196
2207
  .join(' - ')
2197
2208
  box.appendChild(el('div', 'changelog-commit-label mono', label))