diff --git a/.changeset/breezy-humans-sip.md b/.changeset/breezy-humans-sip.md deleted file mode 100644 index c571e5ab275..00000000000 --- a/.changeset/breezy-humans-sip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@audius/sdk': minor ---- - -Support bearer token initialization diff --git a/.changeset/purple-suns-reflect.md b/.changeset/purple-suns-reflect.md deleted file mode 100644 index 158b56ee89d..00000000000 --- a/.changeset/purple-suns-reflect.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@audius/sdk': major ---- - -Rewrite write endpoints - -Write endpoints have gone an entire overhaul, and now will call the API conditionally to handle writes on behalf of apps if the EntityManager service is not initialized. In order to support this, and moving towards having this be the default path moving forward, the signatures for the writes have all changed to align with the autogenerated code from the API schema of the API write endpoints. - -Non-exhaustive list of changes (see updated dev docs post release for complete breakdown of methods): - -- Creating albums and playlists no longer lets you pass in track IDs separately. They must be part of the `playlistContents` -- No more `advancedOptions` in order to match the required schema for the write endpoints in API. For now there's no replacement. Reach out if you desire these abilities again. -- Most write method parameters now have top level `userId` and (if applicable) entity id (eg. `playlistId` for `updatePlaylist`) and a `metadata` field, to mirror the autogenerated code which separates the request path/query params and body. CommentsAPI for example has been affected greatly by this. -- `updateUserProfile` is now `updateUser` -- `addTrackToPlaylist`, `removeTrackToPlaylist` etc should _not_ be used going forward. -- `updateCoinRequest` is now `metadata` in `updateCoin` method parameters. -- USDC access gates for stream/download conditions now have splits formatted as a list with elements `user_id` and `percentage` -- Authentication can now be done via a Bearer token when using the API routes diff --git a/.changeset/young-dryers-grab.md b/.changeset/young-dryers-grab.md deleted file mode 100644 index 9a81cc703fd..00000000000 --- a/.changeset/young-dryers-grab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@audius/sdk": patch ---- - -Add/update user should use CID for photo/cover art diff --git a/package-lock.json b/package-lock.json index 83a7b270488..62b5b1b60cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -122588,12 +122588,12 @@ }, "packages/libs": { "name": "@audius/sdk-legacy", - "version": "6.0.17", + "version": "6.0.18", "license": "Apache-2.0", "dependencies": { "@audius/fixed-decimal": "0.2.1", "@audius/hedgehog": "3.0.0-alpha.1", - "@audius/sdk": "12.0.1", + "@audius/sdk": "13.0.0", "@audius/spl": "2.1.0", "@babel/core": "^7.23.7", "@babel/plugin-proposal-class-static-block": "7.21.0", @@ -130070,7 +130070,7 @@ }, "packages/sdk": { "name": "@audius/sdk", - "version": "12.0.1", + "version": "13.0.0", "license": "Apache-2.0", "dependencies": { "@audius/eth": "0.1.0", @@ -131846,10 +131846,10 @@ }, "packages/sp-actions": { "name": "@audius/sp-actions", - "version": "1.0.21", + "version": "1.0.22", "license": "Apache-2.0", "dependencies": { - "@audius/sdk-legacy": "6.0.17", + "@audius/sdk-legacy": "6.0.18", "@truffle/hdwallet-provider": "^1.2.2", "axios": "^0.21.0", "commander": "^6.2.1", diff --git a/packages/libs/CHANGELOG.md b/packages/libs/CHANGELOG.md index 089f1a00e4d..381475c4c31 100644 --- a/packages/libs/CHANGELOG.md +++ b/packages/libs/CHANGELOG.md @@ -1,5 +1,14 @@ # @audius/sdk +## 6.0.18 + +### Patch Changes + +- Updated dependencies [825a39d] +- Updated dependencies [0129871] +- Updated dependencies [e376ade] + - @audius/sdk@13.0.0 + ## 6.0.17 ### Patch Changes diff --git a/packages/libs/package.json b/packages/libs/package.json index 25b1d2a79dc..2b001a40345 100644 --- a/packages/libs/package.json +++ b/packages/libs/package.json @@ -1,6 +1,6 @@ { "name": "@audius/sdk-legacy", - "version": "6.0.17", + "version": "6.0.18", "audius": { "releaseSHA": "f1d70a2a0643c5c84d8ab053f70c1e0a2ec3ad49" }, @@ -44,7 +44,7 @@ "dependencies": { "@audius/fixed-decimal": "0.2.1", "@audius/hedgehog": "3.0.0-alpha.1", - "@audius/sdk": "12.0.1", + "@audius/sdk": "13.0.0", "@audius/spl": "2.1.0", "@babel/core": "^7.23.7", "@babel/plugin-proposal-class-static-block": "7.21.0", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 1a092e407fc..e1215d1ae67 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,32 @@ # @audius/sdk +## 13.0.0 + +### Major Changes + +- 0129871: Rewrite write endpoints + + Write endpoints have gone an entire overhaul, and now will call the API conditionally to handle writes on behalf of apps if the EntityManager service is not initialized. In order to support this, and moving towards having this be the default path moving forward, the signatures for the writes have all changed to align with the autogenerated code from the API schema of the API write endpoints. + + Non-exhaustive list of changes (see updated dev docs post release for complete breakdown of methods): + + - Creating albums and playlists no longer lets you pass in track IDs separately. They must be part of the `playlistContents` + - No more `advancedOptions` in order to match the required schema for the write endpoints in API. For now there's no replacement. Reach out if you desire these abilities again. + - Most write method parameters now have top level `userId` and (if applicable) entity id (eg. `playlistId` for `updatePlaylist`) and a `metadata` field, to mirror the autogenerated code which separates the request path/query params and body. CommentsAPI for example has been affected greatly by this. + - `updateUserProfile` is now `updateUser` + - `addTrackToPlaylist`, `removeTrackToPlaylist` etc should _not_ be used going forward. + - `updateCoinRequest` is now `metadata` in `updateCoin` method parameters. + - USDC access gates for stream/download conditions now have splits formatted as a list with elements `user_id` and `percentage` + - Authentication can now be done via a Bearer token when using the API routes + +### Minor Changes + +- 825a39d: Support bearer token initialization + +### Patch Changes + +- e376ade: Add/update user should use CID for photo/cover art + ## 12.0.1 ### Patch Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 467f92c1a7c..f266978fcc8 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@audius/sdk", - "version": "12.0.1", + "version": "13.0.0", "audius": { "releaseSHA": "f1d70a2a0643c5c84d8ab053f70c1e0a2ec3ad49" }, diff --git a/packages/sp-actions/CHANGELOG.md b/packages/sp-actions/CHANGELOG.md index 79bf98de8b3..13a24477cee 100644 --- a/packages/sp-actions/CHANGELOG.md +++ b/packages/sp-actions/CHANGELOG.md @@ -1,5 +1,11 @@ # @audius/sp-actions +## 1.0.22 + +### Patch Changes + +- @audius/sdk-legacy@6.0.18 + ## 1.0.21 ### Patch Changes diff --git a/packages/sp-actions/package.json b/packages/sp-actions/package.json index b27c4220b65..2ab5bd8504a 100644 --- a/packages/sp-actions/package.json +++ b/packages/sp-actions/package.json @@ -1,6 +1,6 @@ { "name": "@audius/sp-actions", - "version": "1.0.21", + "version": "1.0.22", "description": "A utility for audius service providers to claim token rewards.", "bin": { "claim": "claim.js" @@ -8,7 +8,7 @@ "author": "Audius", "license": "Apache-2.0", "dependencies": { - "@audius/sdk-legacy": "6.0.17", + "@audius/sdk-legacy": "6.0.18", "@truffle/hdwallet-provider": "^1.2.2", "axios": "^0.21.0", "commander": "^6.2.1",