Skip to content

Commit

Permalink
feat: add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
danigb committed Jul 23, 2024
1 parent 4000f47 commit 86b5207
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .changeset/curly-adults-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
"tonal": patch
"@tonaljs/note": patch
---

#### Fix: add `Note.distance` back

The documentation said `Note.distance` was available, but was not.

Now you can do:

```js
import { Note } from "tonal";
Note.distance("c4", "e7"); // => "24M"
```

#### Note `default` export is deprecated

Using default exports for single packages are discouraged. For `note` module is now deprecated, so instead of:

```js
import Note from "@tonaljs/note";
```

You should do this:

```js
import * as Note from "@tonaljs/note";
```

0 comments on commit 86b5207

Please sign in to comment.