musicbrainz-api 1.1.0 → 1.2.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/lib/entry-node.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './coverartarchive-api.js';
2
2
  export * from './musicbrainz-api-node.js';
3
- //# sourceMappingURL=entry-node.js.map
@@ -7,7 +7,7 @@ export { XmlIsrc } from './xml/xml-isrc.js';
7
7
  export { XmlIsrcList } from './xml/xml-isrc-list.js';
8
8
  export { XmlRecording } from './xml/xml-recording.js';
9
9
  export * from './musicbrainz.types.js';
10
- export type RelationsIncludes = 'area-rels' | 'artist-rels' | 'event-rels' | 'instrument-rels' | 'label-rels' | 'place-rels' | 'recording-rels' | 'release-rels' | 'release-group-rels' | 'series-rels' | 'url-rels' | 'work-rels';
10
+ export type RelationsIncludes = 'area-rels' | 'artist-rels' | 'event-rels' | 'genre-rels' | 'instrument-rels' | 'label-rels' | 'place-rels' | 'recording-rels' | 'release-rels' | 'release-group-rels' | 'series-rels' | 'url-rels' | 'work-rels';
11
11
  export type SubQueryIncludes =
12
12
  /**
13
13
  * include discids for all media in the releases
@@ -272,6 +272,16 @@ export interface IRelation {
272
272
  'type-id': string;
273
273
  url?: IUrl;
274
274
  release?: IRelease;
275
+ area?: IArea;
276
+ event?: IEvent;
277
+ genre?: IGenre;
278
+ instrument?: IInstrument;
279
+ label?: ILabel;
280
+ place?: IPlace;
281
+ recording?: IRecording;
282
+ release_group?: IReleaseGroup;
283
+ series?: ISeries;
284
+ work?: IWork;
275
285
  }
276
286
  export interface IMayHaveRelations {
277
287
  relations?: IRelation[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musicbrainz-api",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "MusicBrainz API client for reading and submitting metadata",
5
5
  "exports": {
6
6
  "node": {
@@ -84,19 +84,23 @@
84
84
  },
85
85
  "scripts": {
86
86
  "clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'",
87
- "compile-lib": "tsc -p lib",
87
+ "compile-lib:dev": "tsc -p lib/tsconfig.json",
88
+ "compile-lib:prod": "tsc -p lib/tsconfig.prod.json",
88
89
  "compile-test": "tsc -p test",
89
- "compile": "yarn run compile-lib && yarn run compile-test",
90
+ "compile:dev": "yarn run compile-lib:dev && yarn run compile-test",
91
+ "compile:prod": "yarn run compile-lib:prod && yarn run compile-test",
90
92
  "lint:md": "remark -u preset-lint-recommended .",
91
93
  "lint:ts": "biome check",
92
94
  "lint:fix": "biome check --write",
93
95
  "lint": "yarn run lint:md && yarn run lint:ts",
94
96
  "test": "mocha",
95
- "build": "yarn run clean && yarn run compile",
97
+ "build:dev": "yarn run clean && yarn run compile:dev",
98
+ "build:prod": "yarn run clean && yarn run compile:prod",
99
+ "build": "yarn run build:prod",
96
100
  "start": "yarn run compile && yarn run lint && yarn run cover-test",
97
101
  "test-coverage": "c8 yarn run test",
98
102
  "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
99
- "prepublishOnly": "yarn run build",
103
+ "prepublishOnly": "yarn run build:prod",
100
104
  "update-biome": "yarn add -D --exact @biomejs/biome && npx @biomejs/biome migrate --write && npm run lint:fix"
101
105
  },
102
106
  "nyc": {