feat(ts-bindings): use upcoming stellar-sdk@12rc3 #1326
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Uses the in-progress branch at stellar/js-stellar-sdk#962, which will be merged and released as 12rc3 soon. This PR can be updated to use the release at that point.Uses the latest
stellar-sdk@12.0.0-rc.3Why
Fixes #1285
Known limitations
Note that using the new
import { Client } from '@stellar/stellar-sdk/ContractCliententrypoint requires getting rid of the "build the TS Bindings for both Common JS and ES Modules" behavior we had before. I think this is fine. From TypeScript'smoduleResolutiondocumentation:We also don't really need these generated NPM modules to be more flexible than stellar-sdk itself, and it doesn't do the build-to-cjs-and-esm thing.