diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index eb608483..e403966d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,5 +4,5 @@ /packages/ @tidal-music/tidal-web-platform /packages/auth/ @MathiasTim -/packages/event-producer @TheHaff +/packages/event-producer @tidal-music/tidal-web-platform /packages/player @enjikaka diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 68240e99..8d1ef832 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -7,7 +7,7 @@ runs: - name: Install package manager uses: pnpm/action-setup@v3 with: - version: 8.15.4 + version: 9.1.0 - name: Set up Node.js w/ version from .nvmrc uses: actions/setup-node@v4 with: diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 802d4dd6..06bed281 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -14,6 +14,11 @@ on: paths: - packages/true-time/** - packages/player/** + merge_group: + types: [checks_requested] + paths: + - packages/true-time/** + - packages/player/** concurrency: group: cypress-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/fossa-scan.yml b/.github/workflows/fossa-scan.yml index 3f620052..16d5df02 100644 --- a/.github/workflows/fossa-scan.yml +++ b/.github/workflows/fossa-scan.yml @@ -1,6 +1,7 @@ name: FOSSA Scans on: + push: workflow_call: jobs: @@ -14,6 +15,7 @@ jobs: uses: fossas/fossa-action@v1.3.3 with: api-key: ${{secrets.FOSSAAPIKEY}} + debug: true - name: "FOSSA Tests" id: fossa-tests diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 30a03f81..440ada15 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,6 +2,8 @@ name: Pull Request on: pull_request: + merge_group: + type: [checks_requested] jobs: fossa-scans: diff --git a/.github/workflows/trigger-releases.yml b/.github/workflows/trigger-releases.yml index 1cf3a06d..ce696a93 100644 --- a/.github/workflows/trigger-releases.yml +++ b/.github/workflows/trigger-releases.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - name: Get changed files id: changed-files - uses: tj-actions/changed-files@v42 + uses: tj-actions/changed-files@v44 with: files: packages/**/package.json - name: Build matrix input diff --git a/.nvmrc b/.nvmrc index 2dbbe00e..87834047 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.11.1 +20.12.2 diff --git a/eslint.config.js b/eslint.config.js index d6287a83..8938d918 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -48,7 +48,7 @@ export default [ 'no-restricted-syntax': [ 'error', { - message: 'Never use Date.now! always use TrueTime', + message: 'Never use Date.now! always use trueTime.now()', selector: 'CallExpression[callee.object.name="Date"][callee.property.name="now"]', }, diff --git a/package.json b/package.json index 2ded92f8..aca228fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tidal-music/tidal-sdk-web", - "packageManager": "pnpm@8.15.4", + "packageManager": "pnpm@9.1.0", "private": true, "type": "module", "scripts": { @@ -17,13 +17,14 @@ "devDependencies": { "eslint": "8.57.0", "eslint-config-tidal": "3.2.0", - "eslint-plugin-disable-autofix": "4.2.0", - "eslint-plugin-jsdoc": "48.2.0", - "typedoc": "0.25.10" + "eslint-plugin-disable-autofix": "4.3.0", + "eslint-plugin-jsdoc": "48.2.3", + "typedoc": "0.25.13", + "vitest": "1.6.0" }, "engines": { "node": ">=20.11.1", - "pnpm": ">=8.6.7" + "pnpm": ">=9.1.0" }, "prettier": { "arrowParens": "avoid", @@ -35,7 +36,7 @@ ], "pnpm": { "patchedDependencies": { - "shaka-player@4.7.11": "patches/shaka-player@4.7.11.patch" + "shaka-player@4.8.2": "patches/shaka-player@4.8.2.patch" } } } diff --git a/packages/auth/README.md b/packages/auth/README.md index 4a2ddb78..30630742 100644 --- a/packages/auth/README.md +++ b/packages/auth/README.md @@ -25,7 +25,7 @@ This authentication method uses `clientId` and `clientSecret`, e.g. when utilizi ## Authorization Code Flow (user login) (Only available for TIDAL internally developed applications for now) -To implement the login redirect flow, follow these steps or refer to our example for ["login redirect"](./examples/login-redirect.html). +To implement the login redirect flow, follow these steps or refer to our example for ["authorization code"](./examples/authorization-code.html). 1. Initiate the process by calling the `init` function. 2. For the first login: diff --git a/packages/auth/examples/login-redirect.html b/packages/auth/examples/authorization-code.html similarity index 74% rename from packages/auth/examples/login-redirect.html rename to packages/auth/examples/authorization-code.html index 99b90e87..1a5f75e9 100644 --- a/packages/auth/examples/login-redirect.html +++ b/packages/auth/examples/authorization-code.html @@ -12,12 +12,16 @@ #forceRefreshBtn { max-width: 300px; } + + #searchField { + margin-top: 20px; + }
Back to all examples -This example showcases how to login through login.tidal.com and get redirected back to your app. You need a properly configured clientId, which is tied to a secure redirect uri. @@ -26,7 +30,7 @@