Open klngrs opened 2 years ago
Came here to say exactly this. TextEncoder has native support a long time already and text-encoding was deprecated three years ago 😃
40% https://bundlephobia.com/package/@harmony-js/staking@0.1.56
@gupadhyaya @Renewwen @denniswon could you please look into this? Thank you!
When analyzing a recent build, I noticed that @harmony-js/staking is causing my bundle size to blow up due to the use of "text-encoding", which is now a deprecated library.
Reference: https://github.com/harmony-one/sdk/blob/3c7061887f25c6ba8def5af05672cdc4f44eb2dc/packages/harmony-staking/src/stakingTransaction.ts#L111
Given the above, I'd like to propose a leaner / tree-shakeable alternative to the deprecated "text-encoding"