@barmark/score 0.5.0 → 0.6.0

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/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ package uses [semantic versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.6.0] - 2026-11-13
10
+
11
+ ### Added
12
+
13
+ - **`chord-diagrams` and `diagram-hand`**: the element observes them and
14
+ its grid view shows `@barmark/render`'s strip of guitar chord diagrams;
15
+ `renderScoreHtml(text, { chordDiagrams: "guitar" })` writes it too. The
16
+ score view (Verovio) ignores them. Requires `@barmark/render` 0.20.0.
17
+
18
+ ### Changed
19
+
20
+ - **Unbundled pages: add `@barmark/fretboard` to the import map.**
21
+ `@barmark/render`, which the element loads, imports it whether or not
22
+ diagrams are on.
23
+
9
24
  ## [0.5.0] - 2026-11-10
10
25
 
11
26
  ### Added
@@ -278,7 +293,8 @@ First release.
278
293
  needs no config; Vite 7 needs `optimizeDeps.exclude` and
279
294
  `worker.format: "es"`.
280
295
 
281
- [Unreleased]: https://github.com/kevinpeckham/barmark/compare/score-v0.5.0...HEAD
296
+ [Unreleased]: https://github.com/kevinpeckham/barmark/compare/score-v0.6.0...HEAD
297
+ [0.6.0]: https://github.com/kevinpeckham/barmark/compare/score-v0.5.0...score-v0.6.0
282
298
  [0.5.0]: https://github.com/kevinpeckham/barmark/compare/score-v0.4.0...score-v0.5.0
283
299
  [0.4.0]: https://github.com/kevinpeckham/barmark/compare/score-v0.3.0...score-v0.4.0
284
300
  [0.3.0]: https://github.com/kevinpeckham/barmark/compare/score-v0.2.0...score-v0.3.0
package/README.md CHANGED
@@ -46,7 +46,7 @@ technology the score is one image named for the chart's title, or "Score".
46
46
 
47
47
  | Attribute (property) | |
48
48
  |---|---|
49
- | `src`, `theme`, `bar-numbers`, `rehearsal-letters`, `numerals`, `wrap`, `show-part`, `columns` | the grid's own, as in [`@barmark/render`](../render/README.md#options-and-attributes) |
49
+ | `src`, `theme`, `bar-numbers`, `rehearsal-letters`, `numerals`, `wrap`, `show-part`, `columns`, `chord-diagrams`, `diagram-hand` | the grid's own, as in [`@barmark/render`](../render/README.md#options-and-attributes). The score view ignores `chord-diagrams` and `diagram-hand`: only the grid shows the guitar chord strip |
50
50
  | `view` (`view`) | `"grid"` (default) or `"score"`; the view being shown. Set before the chart arrives, `"score"` waits for it |
51
51
  | `verovio-url` | where to load Verovio from (below) |
52
52
  | `verovio-integrity` | the SRI digest (`sha384-…`) the `verovio-url` copy must have; on a mismatch the package's own copy loads (below) |
@@ -67,6 +67,10 @@ score.view = "score";
67
67
 
68
68
  ### Bundling the worker
69
69
 
70
+ Loaded without a bundler, the element also needs `@barmark/fretboard` in the
71
+ page's import map (with `barmark` and `@barmark/render`): the element loads
72
+ `@barmark/render`, which imports it whether or not diagrams are on.
73
+
70
74
  The engine runs in a module Worker, created as
71
75
  `new Worker(new URL("./worker.js", import.meta.url), { type: "module" })`.
72
76
  That is the pattern Vite and webpack follow, so a bundler finds the worker
package/dist/element.js CHANGED
@@ -85,6 +85,8 @@ function takeEarlyText(el) {
85
85
  const OBSERVED = [
86
86
  ...["src", "theme", "bar-numbers", "rehearsal-letters", "numerals", "wrap", "show-part"],
87
87
  "columns",
88
+ "chord-diagrams",
89
+ "diagram-hand",
88
90
  ...["view", "verovio-url", "verovio-integrity", "verovio-wasm-integrity", "preload"],
89
91
  ];
90
92
  /** The attributes that say where Verovio comes from: a change clears a failure. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barmark/score",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Show a barmark chord chart as a full engraved score: MusicXML from @barmark/musicxml, engraved by Verovio (LGPL-3.0, a dependency loaded unchanged).",
5
5
  "type": "module",
6
6
  "exports": {
@@ -49,9 +49,9 @@
49
49
  "url": "https://github.com/kevinpeckham/barmark/issues"
50
50
  },
51
51
  "dependencies": {
52
- "@barmark/musicxml": "^0.9.0",
53
- "@barmark/render": "^0.19.0",
54
- "barmark": "^0.23.0",
52
+ "@barmark/musicxml": "^0.9.1",
53
+ "@barmark/render": "^0.20.0",
54
+ "barmark": "^0.23.1",
55
55
  "verovio": "6.4.1"
56
56
  },
57
57
  "scripts": {