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

+13
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

+8
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

+3-3
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

+7
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

+2-2
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

+9
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

+4-4
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

+6
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

+2-2
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

+6
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

packages/chord-type/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/chord-type",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"description": "A dictionary of musical chords",
55
"keywords": [
66
"chord",
@@ -17,7 +17,7 @@
1717
],
1818
"types": "dist/index.d.ts",
1919
"dependencies": {
20-
"@tonaljs/pcset": "4.10.0"
20+
"@tonaljs/pcset": "4.10.1"
2121
},
2222
"author": "[email protected]",
2323
"license": "MIT",

packages/chord/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @tonaljs/chord
22

3+
## 6.1.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/pitch-distance@5.0.5
11+
- @tonaljs/chord-detect@4.9.1
12+
- @tonaljs/chord-type@5.1.1
13+
- @tonaljs/scale-type@4.9.1
14+
315
## 6.1.0
416

517
### Minor Changes

packages/chord/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/chord",
3-
"version": "6.1.0",
3+
"version": "6.1.1",
44
"description": "Musical chords and its relations",
55
"keywords": [
66
"chord",
@@ -16,14 +16,14 @@
1616
],
1717
"types": "dist/index.d.ts",
1818
"dependencies": {
19-
"@tonaljs/chord-detect": "4.9.0",
20-
"@tonaljs/chord-type": "5.1.0",
19+
"@tonaljs/chord-detect": "4.9.1",
20+
"@tonaljs/chord-type": "5.1.1",
2121
"@tonaljs/collection": "4.9.0",
2222
"@tonaljs/interval": "^5.1.0",
23-
"@tonaljs/pcset": "4.10.0",
24-
"@tonaljs/pitch-distance": "5.0.4",
25-
"@tonaljs/pitch-note": "6.0.0",
26-
"@tonaljs/scale-type": "4.9.0"
23+
"@tonaljs/pcset": "4.10.1",
24+
"@tonaljs/pitch-distance": "5.0.5",
25+
"@tonaljs/pitch-note": "6.1.0",
26+
"@tonaljs/scale-type": "4.9.1"
2727
},
2828
"author": "[email protected]",
2929
"license": "MIT",

packages/core/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @tonaljs/core
22

3+
## 5.0.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [b791283]
8+
- @tonaljs/pitch-interval@6.1.0
9+
- @tonaljs/pitch-note@6.1.0
10+
- @tonaljs/pitch-distance@5.0.5
11+
312
## 5.0.1
413

514
### Patch Changes

packages/core/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/core",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "Music theory library",
55
"keywords": [
66
"music",
@@ -19,9 +19,9 @@
1919
},
2020
"dependencies": {
2121
"@tonaljs/pitch": "5.0.2",
22-
"@tonaljs/pitch-interval": "6.0.0",
23-
"@tonaljs/pitch-distance": "5.0.4",
24-
"@tonaljs/pitch-note": "6.0.0"
22+
"@tonaljs/pitch-interval": "6.1.0",
23+
"@tonaljs/pitch-distance": "5.0.5",
24+
"@tonaljs/pitch-note": "6.1.0"
2525
},
2626
"scripts": {
2727
"build": "tsup index.ts --sourcemap --dts --format esm,cjs"

packages/key/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @tonaljs/key
22

3+
## 4.11.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [b791283]
8+
- @tonaljs/pitch-note@6.1.0
9+
- @tonaljs/note@4.12.0
10+
- @tonaljs/roman-numeral@4.9.1
11+
312
## 4.11.0
413

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

packages/key/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/key",
3-
"version": "4.11.0",
3+
"version": "4.11.1",
44
"description": "Functions to work with musical keys",
55
"keywords": [
66
"key",
@@ -15,13 +15,13 @@
1515
],
1616
"types": "dist/index.d.ts",
1717
"dependencies": {
18-
"@tonaljs/pitch-note": "6.0.0",
19-
"@tonaljs/note": "4.11.0",
20-
"@tonaljs/roman-numeral": "4.9.0"
18+
"@tonaljs/pitch-note": "6.1.0",
19+
"@tonaljs/note": "4.12.0",
20+
"@tonaljs/roman-numeral": "4.9.1"
2121
},
2222
"devDependencies": {
23-
"@tonaljs/chord": "6.1.0",
24-
"@tonaljs/scale": "4.13.0"
23+
"@tonaljs/chord": "6.1.1",
24+
"@tonaljs/scale": "4.13.1"
2525
},
2626
"author": "[email protected]",
2727
"license": "MIT",

packages/midi/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @tonaljs/midi
22

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

512
### Minor Changes

packages/midi/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/midi",
3-
"version": "4.10.0",
3+
"version": "4.10.1",
44
"description": "Functions to work with midi numbers",
55
"keywords": [
66
"note",
@@ -16,7 +16,7 @@
1616
],
1717
"types": "dist/index.d.ts",
1818
"dependencies": {
19-
"@tonaljs/pitch-note": "6.0.0"
19+
"@tonaljs/pitch-note": "6.1.0"
2020
},
2121
"author": "[email protected]",
2222
"license": "MIT",

packages/mode/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @tonaljs/mode
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/pitch-distance@5.0.5
11+
- @tonaljs/scale-type@4.9.1
12+
313
## 4.9.0
414

515
### Minor Changes

packages/mode/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tonaljs/mode",
3-
"version": "4.9.0",
3+
"version": "4.9.1",
44
"description": "Functions to work with musical modes",
55
"keywords": [
66
"mode",
@@ -16,11 +16,11 @@
1616
"types": "dist/index.d.ts",
1717
"dependencies": {
1818
"@tonaljs/collection": "4.9.0",
19-
"@tonaljs/pitch-note": "6.0.0",
20-
"@tonaljs/pitch-distance": "5.0.4",
19+
"@tonaljs/pitch-note": "6.1.0",
20+
"@tonaljs/pitch-distance": "5.0.5",
2121
"@tonaljs/interval": "5.1.0",
22-
"@tonaljs/pcset": "4.10.0",
23-
"@tonaljs/scale-type": "4.9.0"
22+
"@tonaljs/pcset": "4.10.1",
23+
"@tonaljs/scale-type": "4.9.1"
2424
},
2525
"author": "[email protected]",
2626
"license": "MIT",

packages/modules/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @tonaljs/modules
22

3+
## 4.8.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [b791283]
8+
9+
310
## 4.8.8
411

512
### Patch Changes

0 commit comments

Comments
 (0)