10 Commits

Author SHA1 Message Date
janniks
c13748238c build: update dependencies (#1540)
* build: update dependencies

* build: update audit dependencies

* chore: remove bootstrap

* chore: update eslint config

* build: fix lint

* build: update esbuild loader

---------

Co-authored-by: janniks <janniks@users.noreply.github.com>
2023-09-04 18:06:55 +02:00
janniks
25e326a8df feat!: Add PoX-2 methods to @stacks/stacking client (#1354)
BREAKING CHANGE:
Remove the getBTCAddress method, since it does not work with modern BTC addresses.
A StackingClient will now automatically detect which PoX version to use for Stacking.
Adds the following PoX Stacking methods to the StackingClient: `stackExtend`, `stackIncrease`, `delegateStackExtend`, `delegateStackIncrease`, `stackAggregationCommitIndexed`, `stackAggregationIncrease`.
Adds the following helper methods to the StackingClient: `getAccountExtendedBalances`, `getAccountBalanceLocked`, `getDelegationStatus`, `getRewardSet`.
2022-11-23 17:13:50 +01:00
janniks
5445b73e05 feat!: switch from buffer to uint8array (#1343)
BREAKING CHANGE:
Removes compatibility with `bip32` package from @stacks/wallet-sdk. Now all derivation methods only rely on HDKey from @scure/bip32.

BREAKING CHANGE:
To reduce the bundle sizes of applications using Stacks.js we are moving away from Buffer (a polyfill to match Node.js APIs) to Uint8Arrays (which Buffers use in the background anyway). To make the switch easier we have introduced a variety of methods for converting between strings and Uint8Arrays: `hexToBytes`, `bytesToHex`, `utf8ToBytes`, `bytesToUtf8`, `asciiToBytes`, `bytesToAscii`, and `concatBytes`.

Co-authored-by: janniks <janniks@users.noreply.github.com>
2022-09-30 11:35:58 +02:00
janniks
695ceb9a93 fix: revert polyfill removal 2022-05-28 23:47:16 +02:00
janniks
16fcbb5974 build: reduce polyfilling 2022-05-24 16:56:08 +02:00
janniks
d911bbf5f5 build: change env 2022-04-14 12:05:06 +02:00
janniks
980de2974b build: update analyzer mode 2022-04-14 12:05:06 +02:00
janniks
d548f163fb build(deps): dedupe deps 2022-04-14 12:05:06 +02:00
janniks
7ecb0182fc chore: fix typos 2022-03-28 13:06:50 -05:00
janniks
9d90fb20e5 build: add browser polyfill (#1184)
* chore: update webpack configs

* feat!: move browsers to polyfilled umd bundle

* chore: bootstrap

* chore: update lerna

* chore: bootstrap

* chore: fix lerna warnings

* chore: cleanup

* chore: remove non-fallbacks

* chore: add missing polyfill

* chore: fix remaining builds

* chore: update build scripts

* chore: update package

* chore: umd2 to umd

* chore: test global this

* chore: test umd bundling with vue

* build: update shared webpack config for umd

* build: fix dist path

* wip ded :(  works, almost

* wip it fking works!

* reduce to minimum required

* give up on vite :(

* update configs

* update configs

* rename scripts

* delete vite esbuild inherits

* add readme

* add build step

* remove inline poly

* remove unneeded packages

* update packages

* add missing export (required by wallet-web)

* bootstrap

* consistentize naming

* every kb counts

* docs: add notes on package types

Co-authored-by: janniks <janniks@users.noreply.github.com>
2022-02-23 19:21:34 +01:00