Skip to content

Commit 215dbde

Browse files
authored
Feat/export types (#458)
* feat: export NoteType and IntervalType * feat: add changeset * chore: bump versions * chore: fix notation
1 parent 86733f4 commit 215dbde

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+400
-108
lines changed

docs/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# tonal
22

3+
## 6.4.0
4+
5+
### Export `NoteType` and `IntervalType` types
6+
7+
Typescript types `NoteType` and `IntervalType` are now exported:
8+
9+
```ts
10+
import { Interval, IntervalType, Note, NoteType } from "tonal";
11+
12+
const note: NoteType = Note.get("C4");
13+
const interval: IntervalType = Interval.get("4P");
14+
```
15+
316
## 6.3.0
417

518
- New `Key.majorKeyChords` and `Key.minorKeyChords` functions.

packages/abc-notation/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @tonaljs/abc-notation
22

3+
## 4.9.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [b791283]
8+
- @tonaljs/pitch-note@6.1.0
9+
- @tonaljs/pitch-distance@5.0.5
10+
311
## 4.9.0
412

513
### Minor Changes

packages/abc-notation/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/abc-notation",
3-
"version": "4.9.0",
3+
"version": "4.9.1",
44
"description": "Parse musical notes in abc notation",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
@@ -9,8 +9,8 @@
99
],
1010
"types": "dist/index.d.ts",
1111
"dependencies": {
12-
"@tonaljs/pitch-distance": "5.0.4",
13-
"@tonaljs/pitch-note": "6.0.0"
12+
"@tonaljs/pitch-distance": "5.0.5",
13+
"@tonaljs/pitch-note": "6.1.0"
1414
},
1515
"keywords": [
1616
"note",

packages/array/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @tonaljs/array
22

3+
## 4.8.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [b791283]
8+
- @tonaljs/pitch-note@6.1.0
9+
310
## 4.8.2
411

512
### Patch Changes

packages/array/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/array",
3-
"version": "4.8.3",
3+
"version": "4.8.4",
44
"description": "Functions to work with arrays of tonal objects",
55
"keywords": [
66
"array",
@@ -15,7 +15,7 @@
1515
],
1616
"types": "dist/index.d.ts",
1717
"dependencies": {
18-
"@tonaljs/pitch-note": "6.0.0"
18+
"@tonaljs/pitch-note": "6.1.0"
1919
},
2020
"author": "[email protected]",
2121
"license": "MIT",

packages/chord-detect/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @tonaljs/chord-detect
22

3+
## 4.9.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [b791283]
8+
- @tonaljs/pitch-note@6.1.0
9+
- @tonaljs/pcset@4.10.1
10+
- @tonaljs/chord-type@5.1.1
11+
312
## 4.9.0
413

514
### Minor Changes

packages/chord-detect/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/chord-detect",
3-
"version": "4.9.0",
3+
"version": "4.9.1",
44
"description": "Detect chord name based on note names",
55
"keywords": [
66
"chord-detect",
@@ -16,9 +16,9 @@
1616
],
1717
"types": "dist/index.d.ts",
1818
"dependencies": {
19-
"@tonaljs/chord-type": "5.1.0",
20-
"@tonaljs/pitch-note": "6.0.0",
21-
"@tonaljs/pcset": "4.10.0"
19+
"@tonaljs/chord-type": "5.1.1",
20+
"@tonaljs/pitch-note": "6.1.0",
21+
"@tonaljs/pcset": "4.10.1"
2222
},
2323
"author": "[email protected]",
2424
"license": "MIT",

packages/chord-dictionary/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @tonaljs/chord-dictionary
22

3+
## 4.8.6
4+
5+
### Patch Changes
6+
7+
- @tonaljs/chord-type@5.1.1
8+
39
## 4.8.5
410

511
### Patch Changes

packages/chord-dictionary/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/chord-dictionary",
3-
"version": "4.8.5",
3+
"version": "4.8.6",
44
"description": "A dictionary of musical chords",
55
"keywords": [],
66
"main": "dist/index.js",
@@ -10,7 +10,7 @@
1010
],
1111
"types": "dist/index.d.ts",
1212
"dependencies": {
13-
"@tonaljs/chord-type": "5.1.0"
13+
"@tonaljs/chord-type": "5.1.1"
1414
},
1515
"author": "[email protected]",
1616
"license": "MIT",

packages/chord-type/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @tonaljs/chord-type
22

3+
## 5.1.1
4+
5+
### Patch Changes
6+
7+
- @tonaljs/pcset@4.10.1
8+
39
## 5.1.0
410

511
### Minor Changes

0 commit comments

Comments
 (0)