-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: remove core dependency * feat: re-export distance * chore: build * feat: add changeset
- Loading branch information
Showing
9 changed files
with
63 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,10 @@ | |
], | ||
"types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@tonaljs/core": "5.0.0", | ||
"@tonaljs/pitch": "5.0.2", | ||
"@tonaljs/pitch-interval": "6.0.0", | ||
"@tonaljs/pitch-distance": "5.0.3", | ||
"@tonaljs/pitch-note": "6.0.0", | ||
"@tonaljs/midi": "4.9.3" | ||
}, | ||
"author": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters