music-metadata 10.9.1 → 11.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
@@ -786,7 +786,7 @@ For older Node.js version < 22, you need to dynamically import **music-metadata*
786
786
 
787
787
  For CommonJS TypeScript projects, using a Node.js version < 22, you can use [load-esm](https://github.com/Borewit/load-esm):
788
788
 
789
- This method shall replace the embedded CJS loader `loadMusicMetadata()` function.
789
+ This method shall has replaced the embedded CJS loader function: `loadMusicMetadata()`.
790
790
 
791
791
  ```js
792
792
  import {loadEsm} from 'load-esm';
@@ -797,9 +797,6 @@ import {loadEsm} from 'load-esm';
797
797
  })();
798
798
  ```
799
799
 
800
- > [!NOTE]
801
- > The `loadMusicMetadata` function is experimental.
802
-
803
800
  ## Frequently Asked Questions
804
801
 
805
802
  ### How can I traverse (a long) list of files?
package/lib/core.d.ts CHANGED
@@ -57,4 +57,3 @@ export declare function ratingToStars(rating: number | undefined): number;
57
57
  */
58
58
  export declare function selectCover(pictures?: IPicture[]): IPicture | null;
59
59
  export declare function scanAppendingHeaders(tokenizer: IRandomAccessTokenizer, options?: IPrivateOptions): Promise<void>;
60
- export declare function loadMusicMetadata(): Promise<typeof import('music-metadata')>;
package/lib/index.js CHANGED
@@ -43,4 +43,3 @@ export async function parseFile(filePath, options = {}) {
43
43
  await fileTokenizer.close();
44
44
  }
45
45
  }
46
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "music-metadata",
3
3
  "description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
4
- "version": "10.9.1",
4
+ "version": "11.0.0",
5
5
  "author": {
6
6
  "name": "Borewit",
7
7
  "url": "https://github.com/Borewit"
@@ -21,21 +21,18 @@
21
21
  "node": {
22
22
  "import": "./lib/index.js",
23
23
  "module-sync": "./lib/index.js",
24
- "require": "./lib/node.cjs",
25
24
  "types": "./lib/index.d.ts"
26
25
  },
27
26
  "default": {
28
27
  "import": "./lib/core.js",
29
28
  "module-sync": "./lib/core.js",
30
- "require": "./lib/default.cjs",
31
29
  "types": "./lib/core.d.ts"
32
30
  }
33
31
  },
34
32
  "types": "lib/index.d.ts",
35
33
  "files": [
36
34
  "lib/**/*.js",
37
- "lib/**/*.d.ts",
38
- "lib/*.cjs"
35
+ "lib/**/*.d.ts"
39
36
  ],
40
37
  "keywords": [
41
38
  "music",
@@ -130,6 +127,7 @@
130
127
  "del-cli": "^6.0.0",
131
128
  "mime": "^4.0.6",
132
129
  "mocha": "^11.1.0",
130
+ "node-readable-to-web-readable-stream": "^0.3.1",
133
131
  "remark-cli": "^12.0.1",
134
132
  "remark-preset-lint-consistent": "^6.0.1",
135
133
  "ts-node": "^10.9.2",
package/lib/default.cjs DELETED
@@ -1,5 +0,0 @@
1
- // CommonJS core (default) entry point
2
- "use strict";
3
- module.exports = {
4
- loadMusicMetadata: () => import('./core.js'),
5
- };
package/lib/node.cjs DELETED
@@ -1,5 +0,0 @@
1
- // CommonJS Node entry point
2
- "use strict";
3
- module.exports = {
4
- loadMusicMetadata: () => import('./index.js'),
5
- };