@tyleretters/discography 3.0.9 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
 
7
7
  - This repo builds a canonical discography of the music of Tyler Etters.
8
8
  - This discography is incomplete.
9
+ - The source of truth is `src/discography.toml`.
9
10
  - Release dates are in a modified "Long Now" format, prefixed with `0`. This also solves for some date/object/string/parsing/conversion issues.
10
11
  - EPs are defined as being less than or equal to 29 minutes 59 seconds.
11
12
 
@@ -30,15 +31,18 @@ python3 src/scrape_bandcamp.py <bandcamp_url> \
30
31
  --add
31
32
  ```
32
33
 
33
- Review the prepended entry in `src/discography.yml`, then build and publish as normal.
34
+ Review the prepended entry in `src/discography.toml`, then build and publish as normal.
34
35
 
35
36
  ## Build
36
37
 
37
38
  ```zsh
39
+ source venv/bin/activate
38
40
  npm run build
39
41
  ```
40
42
 
41
- This runs the full pipeline: Python converter (YAML to TS), Vite bundler (ESM + UMD), TypeScript compiler (type declarations), and copies the source YAML to `dist/`.
43
+ This runs the full pipeline: Python converter (TOML to TS), Vite bundler (ESM + UMD), TypeScript compiler (type declarations), and copies the source TOML to `dist/`.
44
+
45
+ Activate the venv first. `npm run convert` calls `python3`, so the build fails without it.
42
46
 
43
47
  `dist/` is gitignored — built artifacts are not committed. The `"files"` field in `package.json` ensures `dist/` is always included in the npm tarball.
44
48
 
@@ -57,7 +61,7 @@ npm run lint
57
61
 
58
62
  ## Publishing
59
63
 
60
- After updating `src/discography.yml`:
64
+ After updating `src/discography.toml`:
61
65
 
62
66
  ```zsh
63
67
  git add . && git commit -m "++" && git push origin main
@@ -77,3 +81,9 @@ npm i @tyleretters/discography
77
81
  ```typescript
78
82
  import discography from "@tyleretters/discography";
79
83
  ```
84
+
85
+ The default export and its types did not change in 4.0.0.
86
+
87
+ The tarball also carries the raw data file. In 4.0.0 it changed from
88
+ `dist/discography.yml` to `dist/discography.toml`. Update any code that reads
89
+ that path.
@@ -1,5 +1,6 @@
1
1
  export declare const discography: ({
2
2
  title: string;
3
+ slug: string;
3
4
  project: string;
4
5
  released: string;
5
6
  type: string;
@@ -8,11 +9,19 @@ export declare const discography: ({
8
9
  label: string;
9
10
  mp3: boolean;
10
11
  wav: boolean;
12
+ trackIds: string[];
11
13
  tracks: {
12
14
  number: number;
13
15
  title: string;
16
+ slug: string;
14
17
  length: string;
15
18
  mp3_url: string;
19
+ wav_url: string;
20
+ id: string;
21
+ }[];
22
+ streams: {
23
+ platform: string;
24
+ url: string;
16
25
  id: string;
17
26
  }[];
18
27
  notes: string;
@@ -21,16 +30,12 @@ export declare const discography: ({
21
30
  release_slug: string;
22
31
  cover_url: string;
23
32
  mp3_url: string;
33
+ wav_url: string;
24
34
  id: string;
25
35
  runtime: string;
26
- slug?: undefined;
27
- trackIds?: undefined;
28
- streams?: undefined;
29
- wav_url?: undefined;
30
36
  monospaceNotes?: undefined;
31
37
  } | {
32
38
  title: string;
33
- slug: string;
34
39
  project: string;
35
40
  released: string;
36
41
  type: string;
@@ -39,19 +44,11 @@ export declare const discography: ({
39
44
  label: string;
40
45
  mp3: boolean;
41
46
  wav: boolean;
42
- trackIds: string[];
43
47
  tracks: {
44
48
  number: number;
45
49
  title: string;
46
- slug: string;
47
50
  length: string;
48
51
  mp3_url: string;
49
- wav_url: string;
50
- id: string;
51
- }[];
52
- streams: {
53
- platform: string;
54
- url: string;
55
52
  id: string;
56
53
  }[];
57
54
  notes: string;
@@ -60,9 +57,12 @@ export declare const discography: ({
60
57
  release_slug: string;
61
58
  cover_url: string;
62
59
  mp3_url: string;
63
- wav_url: string;
64
60
  id: string;
65
61
  runtime: string;
62
+ slug?: undefined;
63
+ trackIds?: undefined;
64
+ streams?: undefined;
65
+ wav_url?: undefined;
66
66
  monospaceNotes?: undefined;
67
67
  } | {
68
68
  title: string;
@@ -231,9 +231,9 @@ export declare const discography: ({
231
231
  cover_url: string;
232
232
  id: string;
233
233
  runtime: string;
234
- mp3_url?: undefined;
235
234
  slug?: undefined;
236
235
  trackIds?: undefined;
236
+ mp3_url?: undefined;
237
237
  wav_url?: undefined;
238
238
  monospaceNotes?: undefined;
239
239
  } | {
@@ -330,10 +330,10 @@ export declare const discography: ({
330
330
  cover_url: string;
331
331
  id: string;
332
332
  runtime: string;
333
- mp3_url?: undefined;
334
333
  slug?: undefined;
335
334
  trackIds?: undefined;
336
335
  streams?: undefined;
336
+ mp3_url?: undefined;
337
337
  wav_url?: undefined;
338
338
  monospaceNotes?: undefined;
339
339
  } | {
@@ -426,7 +426,7 @@ export declare const discography: ({
426
426
  url: string;
427
427
  id: string;
428
428
  }[];
429
- notes: any;
429
+ notes: string;
430
430
  credits: string;
431
431
  project_slug: string;
432
432
  release_slug: string;