chordsheetjs 15.3.0 → 15.4.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/lib/index.js CHANGED
@@ -987,7 +987,7 @@ const $3d106a0ee348cfa8$export$40141681ebb03523 = {
987
987
  return this.useAccidental(accidental);
988
988
  }
989
989
  changeChord(func) {
990
- const chordObj = (0, $177a605b8569b31c$export$2e2bcd8739ae039).parse(this.chords.trim());
990
+ const chordObj = this.chord;
991
991
  if (chordObj) {
992
992
  const changedChord = func(chordObj);
993
993
  return this.set({
@@ -6374,6 +6374,9 @@ const $fe1d3ba9df1ecad5$export$693785c2cb536a68 = (formatterType, specificDefaul
6374
6374
  * @param {boolean} [configuration.useUnicodeModifiers=false] Whether or not to use unicode flat and sharp
6375
6375
  * symbols.
6376
6376
  * @param {boolean} [configuration.normalizeChords=true] Whether or not to automatically normalize chords
6377
+ * @param {boolean} [configuration.normalizeChordSuffix=true] Whether to normalize chord suffixes (e.g.
6378
+ * `sus2` to `2`, `maj7` to `ma7`). Only takes effect when `normalizeChords` is `true`. Defaults to `false`
6379
+ * for {@link ChordProFormatter} so ChordPro round-trips preserve the user's suffix variant.
6377
6380
  */ constructor(configuration = {}){
6378
6381
  const defaultConfig = this.getDefaultConfiguration();
6379
6382
  this.configuration = (0, $28a2fcb6fb95a147$export$5d86b86a654a7039)(defaultConfig, configuration);
@@ -30175,7 +30178,7 @@ const $a5a21ced491ea51f$var$endSectionTags = {
30175
30178
  var $a5a21ced491ea51f$export$2e2bcd8739ae039 = $a5a21ced491ea51f$var$UltimateGuitarParser;
30176
30179
 
30177
30180
 
30178
- var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '15.3.0';
30181
+ var $ae92e002ce14f11a$export$2e2bcd8739ae039 = '15.4.0';
30179
30182
 
30180
30183
 
30181
30184