musicbrainz-api 0.27.0 → 1.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/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright © 2025 Borewit
3
+ Copyright © 2026 Borewit
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -60,6 +60,9 @@ export interface IArtist extends ITypedEntity, IMayHaveRelations {
60
60
  area?: IArea;
61
61
  begin_area?: IArea;
62
62
  end_area?: IArea;
63
+ genres?: IGenre[];
64
+ tags?: IArtistTag[];
65
+ rating?: IRating;
63
66
  /**
64
67
  * Only defined if 'releases' are includes
65
68
  */
@@ -271,7 +274,7 @@ export interface IRelation {
271
274
  release?: IRelease;
272
275
  }
273
276
  export interface IMayHaveRelations {
274
- relations: IRelation[];
277
+ relations?: IRelation[];
275
278
  }
276
279
  export interface IWork extends IEntity {
277
280
  title: string;
@@ -298,6 +301,18 @@ export interface ISeries extends ITypedEntity {
298
301
  export interface ITag {
299
302
  name: string;
300
303
  }
304
+ export interface IUserVote {
305
+ count: number;
306
+ }
307
+ export type IArtistTag = ITag & IUserVote;
308
+ export interface IGenre extends IEntity, IUserVote {
309
+ name: string;
310
+ disambiguation: string;
311
+ }
312
+ export interface IRating {
313
+ value: number | null;
314
+ 'votes-count': number;
315
+ }
301
316
  export interface IUrl extends IEntity, IMayHaveRelations {
302
317
  id: string;
303
318
  resource: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musicbrainz-api",
3
- "version": "0.27.0",
3
+ "version": "1.0.0",
4
4
  "description": "MusicBrainz API client for reading and submitting metadata",
5
5
  "exports": {
6
6
  "node": {
@@ -61,11 +61,11 @@
61
61
  "uuid": "^13.0.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@biomejs/biome": "2.3.8",
64
+ "@biomejs/biome": "2.3.11",
65
65
  "@types/chai": "^5.0.0",
66
66
  "@types/jsontoxml": "^1.0.5",
67
67
  "@types/mocha": "^10.0.4",
68
- "@types/node": "^24.0.3",
68
+ "@types/node": "^25.0.3",
69
69
  "@types/sinon": "^21.0.0",
70
70
  "@types/source-map-support": "^0",
71
71
  "@types/spark-md5": "^3",