Steven Luscher
6bc04b5e3a
fix: replace js-sha3 with `@noble/hashes/sha3` ( #27630 )
2022-09-06 22:38:11 -07:00
Steven Luscher
60f3dc5f72
fix: replace tweetnacl impl
...
* Install `@noble/ed25519` and create a shim
* Replace `tweetnacl` with `@noble/ed25519` in `Account` class
* Replace `tweetnacl` with `@noble/ed25519` in `Keypair` class
* Replace `tweetnacl` with `@noble/ed25519` in `PublicKey` class
* Replace `tweetnacl` with `@noble/ed25519` in `Ed25519Program` class
* Replace `tweetnacl` with `@noble/ed25519` in `Transaction` class
* Replace `tweetnacl` with `@noble/ed25519` in versioned `Transaction` class
* Remove `tweetnacl` from project
* Damnit, typedoc.
2022-08-28 12:11:34 -07:00
Steven Luscher
713e86e877
Update rollup script to exclude new secp256k1 and hmac/sha256 dependencies ( #27428 )
...
* fix: repair build script, not to bundle @noble libraries but to keep them as external deps
* chore: remove secp256k1 Typescript types
2022-08-26 12:33:29 -07:00
Steven Luscher
817402123f
fix: fork `URL` and `fetch` for React Native in web3.js ( #26604 )
2022-07-12 21:41:33 -07:00
steveluscher
eb12983785
feat: add custom version HTTP header string to RPC requests
2022-06-29 06:59:44 +00:00
steveluscher
da28badcaa
fix: web3.js fork fetch for browsers
2022-05-26 14:40:18 -07:00
steveluscher
994ae755a9
chore: augment build script to build forked modules into correct bundles
2022-05-26 14:40:18 -07:00
Justin Starry
14b1434c52
fix: remove dependency on @solana/buffer-layout-utils ( #25399 )
2022-05-20 17:57:01 +08:00
steveluscher
82404d3f1c
fix: repair native bigint-buffer binding by preventing module from being bundled ( fixes #25159 )
2022-05-12 14:31:21 -07:00
Steven Luscher
442e6c325f
fix: eliminate circular dependencies in web3.js ( #24729 )
...
* chore: enable circular dependency warnings on build
* fix: eliminate circular dependencies in web3.js
2022-04-27 11:41:14 -07:00
Jordan Sexton
3cf31fa9b8
fix: web3.js browser cjs build ( #23500 )
2022-03-11 14:35:15 -07:00
Justin Starry
4c6f9bac32
feat: use cross-fetch instead of node-fetch ( #19621 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-07 17:09:13 -05:00
Justin Starry
2ef2b6daa0
fix: remove buggy node polyfill plugin ( #18531 )
...
* fix: remove buggy node polyfill plugin
* fix websocket test
* remove assert dependency
2021-07-09 00:33:41 -05:00
Justin Starry
4fb1c9da26
fix: update buffer-layout to fix downstream bundler issues ( #18529 )
...
* fix: update buffer-layout to fix downstream bundler issues
* chore: run check on generated type declaration
2021-07-08 20:01:11 -05:00
Jon Cinque
00e198d169
feat: add borsh utilities and public key support ( #17239 )
...
* feat: add borsh utilities and public key support
* fix: make bn internal for flow
* fix: add Buffer import in borsh file
2021-05-18 19:33:06 +02:00
Justin Starry
a8f84a5622
fix: fix flow type declaration ( #17049 )
...
* fix: fix flow type declaration
* chore: fix prettier
2021-05-05 17:50:55 +08:00
Justin Starry
19f21b595a
fix: fix Buffer shim compatibility in browser ( #16262 )
2021-03-31 17:51:27 +08:00
Justin Starry
c959c5daf7
fix: add explicit module declaration to type definitions ( #16219 )
2021-03-30 20:16:31 +08:00
Justin Starry
44e3445a4d
fix: strip internal types from external declaration
2021-03-29 19:05:53 +08:00
Justin Starry
8ada44456d
chore: migrate tests to typescript
2021-03-17 10:26:00 +08:00
Justin Starry
f912c63b22
chore: migrate to typescript
2021-03-17 10:26:00 +08:00
Justin Starry
3eb9f7b3eb
chore: project config changes for typescript migration
2021-03-17 10:26:00 +08:00
Justin Starry
c675c67c26
chore: replace jest with mocha
2021-02-08 07:57:05 +08:00
Justin Starry
ddc4565d6a
fix: bundle buffer dependencies on browser
2021-02-08 07:57:05 +08:00
Justin Starry
08ff2d12f2
feat: add support for browser es modules
2021-02-08 07:57:05 +08:00
Josh
368aeb2cee
feat: add Secp256k1 support to solana-web3.js ( #12958 )
...
* feat: add secp256k1 instruction
* feat: use buffer-layout for encoding as well
* style: use consistent naming for types
* style: update typings and make program functions static
* fix: attempt to resolve rollup issue
* fix: expose sysvar in typings
* fix: remove decode instruction functionality (for now)
2020-10-22 13:15:24 -07:00
Justin Starry
41ce892f1c
fix: use Node.js https agent when endpoint uses https ( #12692 )
2020-10-07 00:41:18 +08:00
dependabot-preview[bot]
6e262b8eab
chore(deps-dev): bump rollup-plugin-terser from 5.3.0 to 6.1.0
...
Bumps [rollup-plugin-terser](https://github.com/TrySound/rollup-plugin-terser ) from 5.3.0 to 6.1.0.
- [Release notes](https://github.com/TrySound/rollup-plugin-terser/releases )
- [Commits](https://github.com/TrySound/rollup-plugin-terser/compare/v5.3.0...v6.1.0 )
Signed-off-by: dependabot-preview[bot] <[email protected] >
2020-06-14 21:57:04 -07:00
Justin Starry
402c160ae9
feat: use crypto-hash instead of hasha
2020-06-14 21:57:04 -07:00
Justin Starry
e03fa4b962
fix: add typescript type declaration to npm bundle
2020-06-14 21:57:04 -07:00
Justin Starry
6304814be3
chore: rollup dependency conflict ( #366 )
...
* bump rollup-plugin-node-resolve from 4.2.3 to 5.0.0
* Fix NPM warnings
* bump rollup-plugin-commonjs from 9.3.4 to 10.0.0
2020-06-14 21:57:04 -07:00
Michael Vines
07f1f9a59c
fix: upgrade to babel 7; dump uglify for terser; upgrade to jest 24
2020-06-14 21:57:04 -07:00
Michael Vines
e17d00d4cd
fix: include sourcemaps
2020-06-14 21:57:04 -07:00
Jack May
04962c5cec
chore: remove elfy from rollup
2020-06-14 21:57:04 -07:00
Michael Vines
1d6abb17cf
refactor: employ prettier
2020-06-14 21:57:04 -07:00
Michael Vines
e7097340f2
feat: add account change notifications
2020-06-14 21:57:04 -07:00
Michael Vines
2ccabce064
Reduce rollup warnings
2020-06-14 21:57:04 -07:00
Michael Vines
f3dff59d35
Fix up external dependency bundling
2020-06-14 21:57:04 -07:00
Michael Vines
4df189513e
Add Connection class
2020-06-14 21:57:04 -07:00
Michael Vines
bf83497bbc
Support cjs, esm and iife modules
2020-06-14 21:57:04 -07:00
Michael Vines
5a0206bcfe
Add Account class
2020-06-14 21:57:04 -07:00
Michael Vines
86e32a3f31
Add npm/github deployment
2020-06-14 21:57:04 -07:00
Michael Vines
7e109f22c2
Project boilerplate from eunikitin/modern-package-boilerplate
2020-06-14 21:57:04 -07:00