Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/fix-weekly-rotation-notifications.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sdk-lazy-onchain-clients.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/sdk-lazy-solana-client.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sdk-lazy-upload-deps.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sdk-noble-curves-ciphers.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sdk-transcode-done-rotate-node.md

This file was deleted.

17 changes: 8 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/libs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @audius/sdk

## 6.0.31

### Patch Changes

- Updated dependencies [2633593]
- Updated dependencies [aeba05f]
- Updated dependencies [5a1a3a0]
- Updated dependencies [4042e05]
- Updated dependencies [1408b93]
- Updated dependencies [737c197]
- @audius/sdk@18.0.0

## 6.0.30

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/libs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@audius/sdk-legacy",
"version": "6.0.30",
"version": "6.0.31",
"audius": {
"releaseSHA": "f1d70a2a0643c5c84d8ab053f70c1e0a2ec3ad49"
},
Expand Down Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"@audius/fixed-decimal": "0.2.1",
"@audius/hedgehog": "3.0.0-alpha.1",
"@audius/sdk": "17.0.0",
"@audius/sdk": "18.0.0",
"@audius/spl": "2.2.0",
"@babel/core": "^7.23.7",
"@babel/plugin-proposal-class-static-block": "7.21.0",
Expand Down
13 changes: 13 additions & 0 deletions packages/protocol-dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @audius/protocol-dashboard

## 0.1.21

### Patch Changes

- Updated dependencies [2633593]
- Updated dependencies [aeba05f]
- Updated dependencies [5a1a3a0]
- Updated dependencies [4042e05]
- Updated dependencies [1408b93]
- Updated dependencies [737c197]
- @audius/sdk@18.0.0
- @audius/sdk-legacy@6.0.31

## 0.1.20

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/protocol-dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@audius/protocol-dashboard",
"version": "0.1.20",
"version": "0.1.21",
"private": true,
"type": "module",
"homepage": "./",
Expand Down Expand Up @@ -39,8 +39,8 @@
"@apollo/client": "3.3.7",
"@audius/common": "*",
"@audius/harmony": "*",
"@audius/sdk": "17.0.0",
"@audius/sdk-legacy": "6.0.30",
"@audius/sdk": "18.0.0",
"@audius/sdk-legacy": "6.0.31",
"@audius/stems": "0.3.10",
"@emotion/react": "11.14.0",
"@emotion/styled": "11.14.0",
Expand Down
23 changes: 23 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @audius/sdk

## 18.0.0

### Major Changes

- 5a1a3a0: Load @solana/web3.js on first use instead of when the SDK is created. `createSdkWithServices` now creates a lazy `solanaClient` and the Solana relay, `PublicKeySchema` and the program client defaults import @solana/web3.js only when they need it.

- Adds `solanaClient.getConnection()`, which resolves to the RPC `Connection`. Use it instead of `solanaClient.connection`.
- The default `sdk.services.solanaClient.connection` throws until the client has loaded (after any `await solanaClient.<method>()` call, including `getConnection()`), and the default `solanaClient` is no longer `instanceof SolanaClient`. A `solanaClient` passed in through `services` is used as-is.
- The default `rewardManagerClient.lookupTable` is only available once that client has loaded, unless `rewardManagerLookupTable` is passed in its config.
- `PublicKeySchema` (and schemas built on it, such as `MintSchema`) now only supports async parsing (`parseAsync`/`safeParseAsync`). The SDK's own methods already parse asynchronously.
- `SolanaAddressSchema` validates the address as base58-encoded 32 bytes without @solana/web3.js. It accepts the same strings as before.

### Minor Changes

- aeba05f: Load the default ClaimableTokens, RewardManager and PaymentRouter clients and the EthereumService contracts on first use, so creating the SDK no longer loads @audius/spl, anchor or the @audius/eth ABIs up front. The public interfaces are unchanged, with two differences for the defaults: `sdk.services.ethereum.<contract>.abi` is only available after that contract has been used, and these services are no longer `instanceof` their client classes. Also marks the package as side-effect free so bundlers can drop unused exports.

### Patch Changes

- 2633593: Parse weekly rotation notifications so a response containing one does not fail to load the entire notification list.
- 4042e05: Load `tus-js-client` and the Node `file-type` path only when an upload or file type check needs them, and fetch the storage node list on first use instead of when the SDK is created.
- 1408b93: Use @noble/curves for secp256k1 and @noble/ciphers for AES-GCM instead of @noble/secp256k1 and micro-aes-gcm. Chat and email encryption, shared secrets and signatures are byte-for-byte the same.
- 737c197: When a storage node reports an audio upload as done without its transcode result, poll the next node and fail after two minutes instead of waiting for the 20-minute stall timeout.

## 17.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@audius/sdk",
"version": "17.0.0",
"version": "18.0.0",
"type": "module",
"audius": {
"releaseSHA": "f1d70a2a0643c5c84d8ab053f70c1e0a2ec3ad49"
Expand Down
6 changes: 6 additions & 0 deletions packages/sp-actions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @audius/sp-actions

## 1.0.35

### Patch Changes

- @audius/sdk-legacy@6.0.31

## 1.0.34

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/sp-actions/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@audius/sp-actions",
"version": "1.0.34",
"version": "1.0.35",
"description": "A utility for audius service providers to claim token rewards.",
"bin": {
"claim": "claim.js"
},
"author": "Audius",
"license": "Apache-2.0",
"dependencies": {
"@audius/sdk-legacy": "6.0.30",
"@audius/sdk-legacy": "6.0.31",
"@truffle/hdwallet-provider": "^1.2.2",
"axios": "^0.21.0",
"commander": "^6.2.1",
Expand Down