odesli.js 1.1.0 → 1.1.2
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/.eslintrc.js +5 -3
- package/.gitattributes +1 -0
- package/.github/workflows/ci.yml +3 -3
- package/.github/workflows/publish-github-packages.yml +50 -0
- package/.github/workflows/{publish.yml → publish-npm.yml} +10 -1
- package/.prettierignore +30 -30
- package/CHANGELOG.md +46 -7
- package/CODE_OF_CONDUCT.md +3 -3
- package/CONTRIBUTING.md +1 -0
- package/LICENSE +14 -14
- package/README.md +49 -21
- package/RELEASE_NOTES_1.1.0.md +84 -0
- package/SECURITY.md +1 -1
- package/lib/index.d.ts +484 -484
- package/lib/index.js +390 -390
- package/package.json +10 -6
package/.eslintrc.js
CHANGED
|
@@ -4,14 +4,13 @@ module.exports = {
|
|
|
4
4
|
es2021: true,
|
|
5
5
|
jest: true,
|
|
6
6
|
},
|
|
7
|
-
extends: ['standard', 'plugin:jest/recommended'],
|
|
7
|
+
extends: ['standard', 'plugin:jest/recommended', 'prettier'],
|
|
8
8
|
parserOptions: {
|
|
9
9
|
ecmaVersion: 'latest',
|
|
10
10
|
sourceType: 'module',
|
|
11
11
|
},
|
|
12
|
-
plugins: ['jest'],
|
|
12
|
+
plugins: ['jest', 'prettier'],
|
|
13
13
|
rules: {
|
|
14
|
-
'jest/no-disabled-tests': 'warn',
|
|
15
14
|
'jest/no-focused-tests': 'error',
|
|
16
15
|
'jest/no-identical-title': 'error',
|
|
17
16
|
'jest/prefer-to-have-length': 'warn',
|
|
@@ -19,6 +18,9 @@ module.exports = {
|
|
|
19
18
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
20
19
|
'prefer-const': 'error',
|
|
21
20
|
'no-var': 'error',
|
|
21
|
+
'prettier/prettier': 'error',
|
|
22
|
+
'comma-dangle': 'off',
|
|
23
|
+
semi: 'off',
|
|
22
24
|
},
|
|
23
25
|
overrides: [
|
|
24
26
|
{
|
package/.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -2,9 +2,9 @@ name: CI
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: [master]
|
|
6
6
|
pull_request:
|
|
7
|
-
branches: [
|
|
7
|
+
branches: [master]
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
test:
|
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
|
-
node-version: [
|
|
15
|
+
node-version: [18.x, 20.x, 22.x]
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
18
|
- name: Checkout code
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Publish to GitHub Packages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish-github:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
packages: write
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
ref: master
|
|
20
|
+
|
|
21
|
+
- name: Use Node.js
|
|
22
|
+
uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: '20.x'
|
|
25
|
+
cache: 'npm'
|
|
26
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
27
|
+
scope: '@mattraus'
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: npm ci
|
|
31
|
+
|
|
32
|
+
- name: Run tests
|
|
33
|
+
run: npm test
|
|
34
|
+
|
|
35
|
+
- name: Run linting
|
|
36
|
+
run: npm run lint
|
|
37
|
+
|
|
38
|
+
- name: Check formatting
|
|
39
|
+
run: npm run format:check
|
|
40
|
+
|
|
41
|
+
- name: Build project
|
|
42
|
+
run: npm run build
|
|
43
|
+
|
|
44
|
+
- name: Update package name for GitHub Packages
|
|
45
|
+
run: npm pkg set name="@mattraus/odesli.js"
|
|
46
|
+
|
|
47
|
+
- name: Publish to GitHub Packages
|
|
48
|
+
run: npm publish
|
|
49
|
+
env:
|
|
50
|
+
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
|
|
@@ -3,14 +3,20 @@ name: Publish to NPM
|
|
|
3
3
|
on:
|
|
4
4
|
release:
|
|
5
5
|
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
6
7
|
|
|
7
8
|
jobs:
|
|
8
|
-
publish:
|
|
9
|
+
publish-npm:
|
|
9
10
|
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
packages: write
|
|
10
14
|
|
|
11
15
|
steps:
|
|
12
16
|
- name: Checkout code
|
|
13
17
|
uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
ref: master
|
|
14
20
|
|
|
15
21
|
- name: Use Node.js
|
|
16
22
|
uses: actions/setup-node@v4
|
|
@@ -34,6 +40,9 @@ jobs:
|
|
|
34
40
|
- name: Build project
|
|
35
41
|
run: npm run build
|
|
36
42
|
|
|
43
|
+
- name: Update package name for npm
|
|
44
|
+
run: npm pkg set name="odesli.js"
|
|
45
|
+
|
|
37
46
|
- name: Publish to NPM
|
|
38
47
|
run: npm publish
|
|
39
48
|
env:
|
package/.prettierignore
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules/
|
|
3
|
-
|
|
4
|
-
# Build outputs
|
|
5
|
-
lib/
|
|
6
|
-
dist/
|
|
7
|
-
build/
|
|
8
|
-
|
|
9
|
-
# Coverage reports
|
|
10
|
-
coverage/
|
|
11
|
-
|
|
12
|
-
# Logs
|
|
13
|
-
*.log
|
|
14
|
-
|
|
15
|
-
# Environment files
|
|
16
|
-
.env*
|
|
17
|
-
|
|
18
|
-
# Package files
|
|
19
|
-
package-lock.json
|
|
20
|
-
yarn.lock
|
|
21
|
-
|
|
22
|
-
# Git
|
|
23
|
-
.git/
|
|
24
|
-
|
|
25
|
-
# IDE
|
|
26
|
-
.vscode/
|
|
27
|
-
.idea/
|
|
28
|
-
|
|
29
|
-
# OS
|
|
30
|
-
.DS_Store
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
|
|
4
|
+
# Build outputs
|
|
5
|
+
lib/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
|
|
9
|
+
# Coverage reports
|
|
10
|
+
coverage/
|
|
11
|
+
|
|
12
|
+
# Logs
|
|
13
|
+
*.log
|
|
14
|
+
|
|
15
|
+
# Environment files
|
|
16
|
+
.env*
|
|
17
|
+
|
|
18
|
+
# Package files
|
|
19
|
+
package-lock.json
|
|
20
|
+
yarn.lock
|
|
21
|
+
|
|
22
|
+
# Git
|
|
23
|
+
.git/
|
|
24
|
+
|
|
25
|
+
# IDE
|
|
26
|
+
.vscode/
|
|
27
|
+
.idea/
|
|
28
|
+
|
|
29
|
+
# OS
|
|
30
|
+
.DS_Store
|
|
31
31
|
Thumbs.db
|
package/CHANGELOG.md
CHANGED
|
@@ -5,17 +5,56 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [
|
|
8
|
+
## [1.1.2] - 2025-06-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- ESLint compatibility issue with `jest/no-disabled-tests` rule and `structuredClone`
|
|
13
|
+
- GitHub Actions CI badge showing "no status" by updating workflow branch configuration
|
|
14
|
+
- GitHub Packages publishing authentication in automated workflows
|
|
15
|
+
- Code formatting issues causing CI failures
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Updated Node.js test matrix to use versions 18.x, 20.x, and 22.x (removed 16.x)
|
|
20
|
+
- Enhanced GitHub Actions workflows for better reliability
|
|
21
|
+
- Improved automated publishing configuration for both npm and GitHub Packages
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- Comprehensive CI job testing before commits
|
|
26
|
+
- Better error handling in publishing workflows
|
|
27
|
+
- Proper permissions configuration for package publishing
|
|
28
|
+
|
|
29
|
+
## [1.1.1] - 2025-06-22
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- GitHub Packages support with scoped package name `@mattraus/odesli.js`
|
|
34
|
+
- Automated publishing workflows for both npm and GitHub Packages
|
|
35
|
+
- Installation instructions for GitHub Packages in README
|
|
36
|
+
- `.npmrc` configuration for GitHub Packages authentication
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- Updated package name to `@mattraus/odesli.js` for GitHub Packages
|
|
41
|
+
- Enhanced README with dual installation options (npm and GitHub Packages)
|
|
42
|
+
- Updated GitHub Actions workflows for automated publishing
|
|
43
|
+
|
|
44
|
+
## [1.1.0] - 2025-06-22
|
|
9
45
|
|
|
10
46
|
### Added
|
|
11
47
|
|
|
12
|
-
- Comprehensive test suite with Jest
|
|
48
|
+
- Comprehensive test suite with Jest (40 tests, 100% coverage)
|
|
13
49
|
- ESLint configuration for code quality
|
|
14
50
|
- Prettier configuration for code formatting
|
|
15
51
|
- GitHub Actions CI/CD workflows
|
|
16
52
|
- Example code in `examples/` directory
|
|
17
53
|
- Improved TypeScript configuration
|
|
18
54
|
- Better error handling and validation
|
|
55
|
+
- Professional documentation with badges
|
|
56
|
+
- Security scanning with Snyk
|
|
57
|
+
- Development tools and scripts
|
|
19
58
|
|
|
20
59
|
### Fixed
|
|
21
60
|
|
|
@@ -23,26 +62,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
62
|
- Simplified async logic in all methods
|
|
24
63
|
- Removed unnecessary Promise.all wrappers
|
|
25
64
|
- Improved error handling in `_request` method
|
|
65
|
+
- Enhanced TypeScript type definitions
|
|
26
66
|
|
|
27
67
|
### Changed
|
|
28
68
|
|
|
29
|
-
- Updated package.json with better metadata
|
|
69
|
+
- Updated package.json with better metadata and exports
|
|
30
70
|
- Enhanced README with comprehensive documentation
|
|
31
71
|
- Added proper TypeScript declarations
|
|
32
72
|
- Improved code structure and maintainability
|
|
73
|
+
- Modern ES modules support
|
|
74
|
+
- Professional project structure
|
|
33
75
|
|
|
34
76
|
## [1.0.3] - 2024-01-XX
|
|
35
77
|
|
|
36
|
-
###
|
|
78
|
+
### Features
|
|
37
79
|
|
|
38
80
|
- Initial release
|
|
39
81
|
- Basic Odesli API client functionality
|
|
40
82
|
- Support for fetch, getByParams, and getById methods
|
|
41
83
|
- TypeScript definitions
|
|
42
84
|
- Basic documentation
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
85
|
- Fetch songs by URL from any streaming platform
|
|
47
86
|
- Get song information by platform, type, and ID
|
|
48
87
|
- Get song information by entity ID
|
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -113,7 +113,7 @@ the community.
|
|
|
113
113
|
|
|
114
114
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
115
115
|
version 2.0, available at
|
|
116
|
-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
116
|
+
[contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
|
|
117
117
|
|
|
118
118
|
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
119
119
|
enforcement ladder](https://github.com/mozilla/diversity).
|
|
@@ -121,5 +121,5 @@ enforcement ladder](https://github.com/mozilla/diversity).
|
|
|
121
121
|
[homepage]: https://www.contributor-covenant.org
|
|
122
122
|
|
|
123
123
|
For answers to common questions about this code of conduct, see the FAQ at
|
|
124
|
-
https://www.contributor-covenant.org/faq. Translations are available at
|
|
125
|
-
https://www.contributor-covenant.org/translations.
|
|
124
|
+
[contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at
|
|
125
|
+
[contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
|
package/CONTRIBUTING.md
CHANGED
package/LICENSE
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024, Mattr
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, Mattr
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
15
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -12,25 +12,30 @@ A Node.js client for the [Odesli API](https://odesli.co/) (formerly song.link/al
|
|
|
12
12
|
|
|
13
13
|
## 📋 Table of Contents
|
|
14
14
|
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- [
|
|
18
|
-
- [
|
|
19
|
-
- [
|
|
20
|
-
- [
|
|
21
|
-
- [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
28
|
-
- [
|
|
29
|
-
- [
|
|
30
|
-
- [
|
|
31
|
-
- [
|
|
32
|
-
- [
|
|
33
|
-
- [Support](#support)
|
|
15
|
+
- [odesli.js](#odeslijs)
|
|
16
|
+
- [📋 Table of Contents](#-table-of-contents)
|
|
17
|
+
- [Features](#features)
|
|
18
|
+
- [Installation](#installation)
|
|
19
|
+
- [Quick Start](#quick-start)
|
|
20
|
+
- [API Key](#api-key)
|
|
21
|
+
- [Usage](#usage)
|
|
22
|
+
- [Fetch by URL](#fetch-by-url)
|
|
23
|
+
- [Fetch by Parameters](#fetch-by-parameters)
|
|
24
|
+
- [Fetch by Entity ID](#fetch-by-entity-id)
|
|
25
|
+
- [Country-Specific Results](#country-specific-results)
|
|
26
|
+
- [Error Handling](#error-handling)
|
|
27
|
+
- [Advanced Usage](#advanced-usage)
|
|
28
|
+
- [Batch Processing](#batch-processing)
|
|
29
|
+
- [Working with Different Platforms](#working-with-different-platforms)
|
|
30
|
+
- [Error Recovery](#error-recovery)
|
|
31
|
+
- [Response Format](#response-format)
|
|
32
|
+
- [Supported Platforms](#supported-platforms)
|
|
33
|
+
- [TypeScript Support](#typescript-support)
|
|
34
|
+
- [Examples](#examples)
|
|
35
|
+
- [API Documentation](#api-documentation)
|
|
36
|
+
- [Contributing](#contributing)
|
|
37
|
+
- [License](#license)
|
|
38
|
+
- [Support](#support)
|
|
34
39
|
|
|
35
40
|
## Features
|
|
36
41
|
|
|
@@ -45,10 +50,33 @@ A Node.js client for the [Odesli API](https://odesli.co/) (formerly song.link/al
|
|
|
45
50
|
|
|
46
51
|
## Installation
|
|
47
52
|
|
|
53
|
+
### From npm (recommended)
|
|
54
|
+
|
|
48
55
|
```bash
|
|
49
56
|
npm install odesli.js
|
|
50
57
|
```
|
|
51
58
|
|
|
59
|
+
### From GitHub Packages
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install @mattraus/odesli.js
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Note**: To install from GitHub Packages, you may need to authenticate. Create a `.npmrc` file in your project root:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
@mattraus:registry=https://npm.pkg.github.com
|
|
69
|
+
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Then set your GitHub token as an environment variable:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
export GITHUB_TOKEN=your_github_token_here
|
|
76
|
+
# or on Windows:
|
|
77
|
+
# set GITHUB_TOKEN=your_github_token_here
|
|
78
|
+
```
|
|
79
|
+
|
|
52
80
|
## Quick Start
|
|
53
81
|
|
|
54
82
|
```javascript
|
|
@@ -307,7 +335,7 @@ Check out the [examples directory](./examples) for more detailed usage examples:
|
|
|
307
335
|
|
|
308
336
|
## API Documentation
|
|
309
337
|
|
|
310
|
-
For more detailed information about the Odesli API, check the [official documentation](https://
|
|
338
|
+
For more detailed information about the Odesli API, check the [official documentation](https://linktree.notion.site/API-d0ebe08a5e304a55928405eb682f6741).
|
|
311
339
|
|
|
312
340
|
## Contributing
|
|
313
341
|
|
|
@@ -325,4 +353,4 @@ This project is licensed under the ISC License - see the [LICENSE](LICENSE) file
|
|
|
325
353
|
|
|
326
354
|
- 📧 Email: `developers@song.link` (for API key requests)
|
|
327
355
|
- 🐛 Issues: [GitHub Issues](https://github.com/MattrAus/odesli.js/issues)
|
|
328
|
-
- 📖 Documentation: [Odesli API Docs](https://
|
|
356
|
+
- 📖 Documentation: [Odesli API Docs](https://linktree.notion.site/API-d0ebe08a5e304a55928405eb682f6741)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Release v1.1.0 - Major Improvements & Professional Setup
|
|
2
|
+
|
|
3
|
+
## 🎉 What's New
|
|
4
|
+
|
|
5
|
+
This release brings significant improvements to the odesli.js package, transforming it from a basic client into a production-ready, professionally maintained library.
|
|
6
|
+
|
|
7
|
+
## ✨ Key Features Added
|
|
8
|
+
|
|
9
|
+
### 🧪 **Comprehensive Testing**
|
|
10
|
+
|
|
11
|
+
- **40 comprehensive tests** with 100% coverage
|
|
12
|
+
- Jest test suite with mocking for reliable testing
|
|
13
|
+
- Edge case handling and error scenario testing
|
|
14
|
+
- Automated test runs in CI/CD pipeline
|
|
15
|
+
|
|
16
|
+
### 🛠️ **Development Tools**
|
|
17
|
+
|
|
18
|
+
- **ESLint** configuration for code quality
|
|
19
|
+
- **Prettier** for consistent code formatting
|
|
20
|
+
- **TypeScript 5.0** with enhanced type definitions
|
|
21
|
+
- **Security scanning** with Snyk integration
|
|
22
|
+
|
|
23
|
+
### 🚀 **CI/CD Pipeline**
|
|
24
|
+
|
|
25
|
+
- **GitHub Actions** workflows for automated testing
|
|
26
|
+
- **Automated publishing** on release tags
|
|
27
|
+
- **Code quality checks** (linting, formatting, security)
|
|
28
|
+
- **Multi-platform testing** support
|
|
29
|
+
|
|
30
|
+
### 📚 **Documentation & Examples**
|
|
31
|
+
|
|
32
|
+
- **Professional README** with badges and comprehensive guides
|
|
33
|
+
- **Example scripts** for basic and advanced usage
|
|
34
|
+
- **TypeScript support** documentation
|
|
35
|
+
- **Error handling** examples and best practices
|
|
36
|
+
|
|
37
|
+
### 🔧 **Code Improvements**
|
|
38
|
+
|
|
39
|
+
- **Enhanced error handling** with descriptive messages
|
|
40
|
+
- **Simplified async logic** for better performance
|
|
41
|
+
- **Modern ES modules** support
|
|
42
|
+
- **Better TypeScript** type definitions
|
|
43
|
+
- **Professional project structure**
|
|
44
|
+
|
|
45
|
+
## 🐛 Bug Fixes
|
|
46
|
+
|
|
47
|
+
- Fixed API parameter mismatch (`api` → `apiKey`)
|
|
48
|
+
- Removed unnecessary Promise.all wrappers
|
|
49
|
+
- Improved error handling in request methods
|
|
50
|
+
- Enhanced TypeScript compatibility
|
|
51
|
+
|
|
52
|
+
## 📦 Installation
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm install odesli.js@1.1.0
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 🚀 Quick Start
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
const Odesli = require('odesli.js');
|
|
62
|
+
|
|
63
|
+
const odesli = new Odesli();
|
|
64
|
+
const song = await odesli.fetch(
|
|
65
|
+
'https://open.spotify.com/track/4Km5HrUvYTaSUfiSGPJeQR'
|
|
66
|
+
);
|
|
67
|
+
console.log(`${song.title} by ${song.artist[0]}`);
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 🔗 Links
|
|
71
|
+
|
|
72
|
+
- **NPM Package**: [npmjs.com/package/odesli.js](https://www.npmjs.com/package/odesli.js)
|
|
73
|
+
- **GitHub Repository**: [github.com/MattrAus/odesli.js](https://github.com/MattrAus/odesli.js)
|
|
74
|
+
- **Documentation**: [github.com/MattrAus/odesli.js#readme](https://github.com/MattrAus/odesli.js#readme)
|
|
75
|
+
|
|
76
|
+
## 🙏 Thanks
|
|
77
|
+
|
|
78
|
+
Thank you to all contributors and users who provided feedback and suggestions for this release!
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
**Breaking Changes**: None - This is a backward-compatible release.
|
|
83
|
+
|
|
84
|
+
**Migration**: No migration required. Simply update to version 1.1.0 for all improvements.
|
package/SECURITY.md
CHANGED
|
@@ -18,7 +18,7 @@ Security vulnerabilities should be reported privately to avoid potential exploit
|
|
|
18
18
|
|
|
19
19
|
Send a detailed report to: `me@mtr.gg`
|
|
20
20
|
|
|
21
|
-
### 3. Include the following information
|
|
21
|
+
### 3. Include the following information
|
|
22
22
|
|
|
23
23
|
- **Description**: A clear description of the vulnerability
|
|
24
24
|
- **Steps to reproduce**: Detailed steps to reproduce the issue
|