stellar / js-stellar-base

The lowest-level stellar helper library. It consists of classes to read, write, hash, and sign Stellar xdr
https://stellar.github.io/js-stellar-base/
Apache License 2.0
106 stars 138 forks source link

build: move typescript to devDependencies #731

Closed chadoh closed 6 months ago

chadoh commented 6 months ago

Reduces bundle size by 95%.

Before, as measured by bundle-phobia-cli:

$ bundle-phobia -p ./package.json
ℹ @stellar/js-xdr (3.1.0) has 0 dependencies for a weight of 43.86KB (12.32KB gzipped)
ℹ base32.js (0.1.0) has 0 dependencies for a weight of 2.24KB (877B gzipped)
ℹ bignumber.js (9.1.2) has 0 dependencies for a weight of 18.19KB (8.15KB gzipped)
ℹ buffer (6.0.3) has 2 dependencies for a weight of 26.83KB (7.95KB gzipped)
ℹ sha.js (2.4.11) has 2 dependencies for a weight of 12.04KB (4.18KB gzipped)
ℹ tweetnacl (1.0.3) has 0 dependencies for a weight of 31.51KB (10.46KB gzipped)
ℹ typescript (5.3.3) has 0 dependencies for a weight of 3.15MB (890.61KB gzipped)

ℹ total (7 packages) has 4 dependencies for a weight of 3.28MB (934.53KB gzipped)

After:

$ bundle-phobia -p ./package.json
ℹ @stellar/js-xdr (3.1.0) has 0 dependencies for a weight of 43.86KB (12.32KB gzipped)
ℹ base32.js (0.1.0) has 0 dependencies for a weight of 2.24KB (877B gzipped)
ℹ bignumber.js (9.1.2) has 0 dependencies for a weight of 18.19KB (8.15KB gzipped)
ℹ buffer (6.0.3) has 2 dependencies for a weight of 26.83KB (7.95KB gzipped)
ℹ sha.js (2.4.11) has 2 dependencies for a weight of 12.04KB (4.18KB gzipped)
ℹ tweetnacl (1.0.3) has 0 dependencies for a weight of 31.51KB (10.46KB gzipped)

ℹ total (6 packages) has 4 dependencies for a weight of 134.68KB (43.92KB gzipped)
mahnunchik commented 6 months ago

When it will be released?