Skip to content

Make the default usage check the price status #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 1, 2021
Merged

Conversation

jayantk
Copy link
Contributor

@jayantk jayantk commented Nov 1, 2021

We've been telling users that they need to check the status of the price before consuming it. However, most users are not checking the status field, because our client libraries don't make this easy. I'm changing the default behavior in all of client libraries to do the right thing so that the easiest usage is also correct.

Note that this PR makes a breaking change to the public interface of this library. LMK if you think we should do something special to warn users about this breaking change before we release this.

@@ -37,7 +37,7 @@
"typescript": "^4.2.4"
},
"dependencies": {
"@solana/web3.js": "^1.10.1",
"@solana/web3.js": "^1.30.2",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by: bump the solana web3 version. I fixed a memory leak in the websocket RPC library that solana web3 is using, so bumping this version incorporates that change.

@evan-gray
Copy link
Contributor

@jayantk looks reasonable, given the breaking change you probably want to increment the minor version number.

@jayantk jayantk merged commit 93bdedc into main Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants