Skip to content

Releases: martijnversluis/ChordSheetJS

v4.7.0

30 May 11:31
Compare
Choose a tag to compare

Implement _key metadata

When key and capo are present, _key will contain the value of
key, transposed by the capo value.

For example, when key is B♭ and capo is 2, _key will be 'C'.

v4.6.0

29 May 11:14
Compare
Choose a tag to compare

Generate default CSS for HTML formatters

HtmlTableFormatter.cssString();
// returns a CSS like:
//
// .paragraph {
//   margin-bottom: 1em;
// }

HtmlTableFormatter.cssString('.chordSheetViewer');
// returns as CSS string like::
//
// .chordSheetViewer .paragraph {
//   margin-bottom: 1em;
// }

HtmlTableFormatter.cssObject()
// returns a CSS object like:
//;
// '.paragraph': {
//   marginBottom: '1em'
// }

Resolves #184

v4.5.4

29 May 09:25
Compare
Choose a tag to compare

Add back default export

v4.5.3

29 May 09:25
Compare
Choose a tag to compare

Set lib/index.js as main file

v4.5.2

29 May 09:24
Compare
Choose a tag to compare

Remove duplicate entry point

v4.5.1

27 May 12:12
Compare
Choose a tag to compare
  • Export all classes and constants that are public API
  • Import from index in tests to make sure exports for public API have test coverage

v4.5.0

27 May 09:28
Compare
Choose a tag to compare

Add named exports for all classes

This allows using classes as follows:

import { ChordProParser } from 'chordsheetjs';
const parser = new ChordProParser();

instead of:

import chordsheetjs from 'chordsheetjs';
const parser = new chordsheetjs.ChordProParser();

Resolves #317

v4.4.0

24 May 18:48
Compare
Choose a tag to compare

New features

Serialize/deserialize Songs

Chord sheets (Songs) can be serialized to plain JavaScript objects, which can be converted to JSON, XML etc by
third-party libraries. The serialized object can also be deserialized back into a Song.

const serializedSong = new ChordSheetSerializer().serialize(song);
const deserialized = new ChordSheetSerializer().deserialize(serializedSong);

v4.3.1

18 May 18:17
Compare
Choose a tag to compare

Fix formatting of empty songs

v4.3.0

12 May 19:37
Compare
Choose a tag to compare
  • Only render body paragraphs in TextFormatter (#301)
  • Added missing JSdoc comments for:
    • Ternary#evaluate
    • ChordProFormatter#constructor