@barmark/score 0.5.0 → 0.6.1

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,30 @@ package uses [semantic versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.6.1] - 2026-11-14
10
+
11
+ ### Changed
12
+
13
+ - **Requires `barmark` 0.24.0 (with `@barmark/render` 0.20.1 and `@barmark/musicxml` 0.9.2)**, whose minor release a caret range
14
+ would not reach.
15
+ - **A chart with a flat sixth, an `add` before any tone or `Δ9` engraves**
16
+ (`F#m(b6)`, `Cadd13`, `CΔ9`), as `barmark` now reads them.
17
+
18
+ ## [0.6.0] - 2026-11-13
19
+
20
+ ### Added
21
+
22
+ - **`chord-diagrams` and `diagram-hand`**: the element observes them and
23
+ its grid view shows `@barmark/render`'s strip of guitar chord diagrams;
24
+ `renderScoreHtml(text, { chordDiagrams: "guitar" })` writes it too. The
25
+ score view (Verovio) ignores them. Requires `@barmark/render` 0.20.0.
26
+
27
+ ### Changed
28
+
29
+ - **Unbundled pages: add `@barmark/fretboard` to the import map.**
30
+ `@barmark/render`, which the element loads, imports it whether or not
31
+ diagrams are on.
32
+
9
33
  ## [0.5.0] - 2026-11-10
10
34
 
11
35
  ### Added
@@ -278,7 +302,9 @@ First release.
278
302
  needs no config; Vite 7 needs `optimizeDeps.exclude` and
279
303
  `worker.format: "es"`.
280
304
 
281
- [Unreleased]: https://github.com/kevinpeckham/barmark/compare/score-v0.5.0...HEAD
305
+ [Unreleased]: https://github.com/kevinpeckham/barmark/compare/score-v0.6.1...HEAD
306
+ [0.6.1]: https://github.com/kevinpeckham/barmark/compare/score-v0.6.0...score-v0.6.1
307
+ [0.6.0]: https://github.com/kevinpeckham/barmark/compare/score-v0.5.0...score-v0.6.0
282
308
  [0.5.0]: https://github.com/kevinpeckham/barmark/compare/score-v0.4.0...score-v0.5.0
283
309
  [0.4.0]: https://github.com/kevinpeckham/barmark/compare/score-v0.3.0...score-v0.4.0
284
310
  [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.1",
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.2",
53
+ "@barmark/render": "^0.20.1",
54
+ "barmark": "^0.24.0",
55
55
  "verovio": "6.4.1"
56
56
  },
57
57
  "scripts": {