odesli.js 1.1.1 → 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 CHANGED
@@ -11,7 +11,6 @@ module.exports = {
11
11
  },
12
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',
@@ -2,9 +2,9 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [main, develop]
5
+ branches: [master]
6
6
  pull_request:
7
- branches: [main]
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: [16.x, 18.x, 20.x, 22.x]
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,6 +5,42 @@ 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
+ ## [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
+
8
44
  ## [1.1.0] - 2025-06-22
9
45
 
10
46
  ### Added
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
@@ -50,10 +50,33 @@ A Node.js client for the [Odesli API](https://odesli.co/) (formerly song.link/al
50
50
 
51
51
  ## Installation
52
52
 
53
+ ### From npm (recommended)
54
+
53
55
  ```bash
54
56
  npm install odesli.js
55
57
  ```
56
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
+
57
80
  ## Quick Start
58
81
 
59
82
  ```javascript
@@ -312,7 +335,7 @@ Check out the [examples directory](./examples) for more detailed usage examples:
312
335
 
313
336
  ## API Documentation
314
337
 
315
- For more detailed information about the Odesli API, check the [official documentation](https://www.notion.so/d8093b1bb8874f8b85527d985c4f9e68).
338
+ For more detailed information about the Odesli API, check the [official documentation](https://linktree.notion.site/API-d0ebe08a5e304a55928405eb682f6741).
316
339
 
317
340
  ## Contributing
318
341
 
@@ -330,4 +353,4 @@ This project is licensed under the ISC License - see the [LICENSE](LICENSE) file
330
353
 
331
354
  - 📧 Email: `developers@song.link` (for API key requests)
332
355
  - 🐛 Issues: [GitHub Issues](https://github.com/MattrAus/odesli.js/issues)
333
- - 📖 Documentation: [Odesli API Docs](https://www.notion.so/d8093b1bb8874f8b85527d985c4f9e68)
356
+ - 📖 Documentation: [Odesli API Docs](https://linktree.notion.site/API-d0ebe08a5e304a55928405eb682f6741)