Stephan Cilliers
ceac2c1bea
fix: Remove stackblitz example ( #930 )
2023-05-08 12:50:27 -07:00
Shane da Silva
32e660a181
fix: Reduce memory consumption of replication example ( #943 )
...
We had a report of one user on modern MacBook with 16GB of memory who
was running into heap allocation issues. This was likely due to the
excessive number of promises we were creating (as well as buffering all
data for each call).
Change the logic to fetch in batches of 1K records at most. This slows
down the initial sync but should reduce the likelihood that someone will
hit a memory limit.
We also specify a custom limit in the `yarn start` command so that when
we test locally we are using the same limit as everyone else.
2023-05-05 15:53:56 -07:00
Shane da Silva
987e1c460b
chore: Remove some unused code from replication example ( #941 )
2023-05-05 11:14:34 -07:00
Shane da Silva
22f53d6c2b
Fix handling of conflicts on UserData insertion ( #940 )
...
We were using hash as the conflict ID instead of FID + type. Fix this.
2023-05-05 10:26:48 -07:00
Shane da Silva
cc2f5a4fae
Add syncing/replication example for Postgres ( #938 )
...
Provide a working end-to-end example of syncing data from hubs to a
Postgres database.
This should work with no additional dependencies besides what you
install with `yarn install` and Docker.
2023-05-05 09:56:48 -07:00
Sanjay
52fc714970
chore: Release 1.2.1 ( #925 )
2023-04-27 14:36:13 -07:00
Sanjay
421c385453
feat: Add sync stats to getInfo call ( #916 )
...
* refactor: Rename sync events flag for clarity
* feat: Add sync statuts to HubInfo RPC call
* feat: Add sync stats to getInfo rpc call
* re-patch hub-web to use default export as before
* changeset
2023-04-25 10:40:59 -07:00
Varun Srinivasan
a57e335da6
chore(hub-nodejs): update write-cast example for v0.7 ( #915 )
2023-04-24 21:36:46 -07:00
Varun Srinivasan
812386f338
chore(hub-nodejs): update write-data example ( #910 )
2023-04-24 14:18:24 -07:00
Varun Srinivasan
b225a84410
chore(hub-nodejs): add hub urls, steps to chron-feed examples ( #905 )
2023-04-23 21:25:27 -07:00
Zach Terrell
0c3c33f2b8
docs(hub-nodejs): update example ( #900 )
...
* update hub-nodejs example
* change to getSSLHubRpcClient
2023-04-20 20:22:59 -07:00
Paul Fletcher-Hill
c5a6aac6e4
changeset version ( #889 )
2023-04-19 00:43:57 -04:00
Paul Fletcher-Hill
87b2789124
feat: support arbitrary target types ( #847 )
...
* support CastId embeds, url parents and reaction targets
* docs(changeset): support CastId embeds, cast parent URLs, and reaction target URLs
* fix validations test
* add version and embeds deprecated validation
* docs(changeset): upgrade to protocol version 2023.4.19
* update protobuf generated code
* add reaction service tests
* add more examples to builder tests
* add more cast and reaction tests
2023-04-18 23:10:13 -04:00
Paul Fletcher-Hill
ee953ec4ad
fix: examples and patch hub-web to use grpc-web default export ( #867 )
...
* fix chron-feed example
* update chron-feed example
* intermediate commit
* add chron-feed hub-web example
* add changeset
* remove commented out imports from example
2023-04-14 11:16:21 -04:00
Satyajeet Pal
f89fe7f982
docs: update examples for making casts and writing data ( #834 )
2023-04-12 06:25:01 -07:00
Vincent Liao
3be37fe8c0
docs: add error code in Utils.md ( #773 )
2023-04-12 06:20:56 -07:00
Varun Srinivasan
038a647bd7
chore: release new versions ( #839 )
2023-04-06 17:47:33 -07:00
Paul Fletcher-Hill
64418e9495
changeset version ( #820 )
2023-04-04 23:28:23 -04:00
Paul Fletcher-Hill
1e4e5ba522
chore: update tsup configs ( #819 )
...
* update tsup configs
* add more browser options
* add changeset
* update browser versions
2023-04-04 23:21:01 -04:00
PangZhi
c4529a7ef2
feat: merge protobufs and utils into core package ( #818 )
...
* remove protobufs as a package, merge into utils
* update yarn.lock
* rename utils package to core
* update docker
* add changeset
* tsup config
* change schema path in workflow file
* update protobufs readme link
2023-04-04 19:21:30 -07:00
Paul Fletcher-Hill
58af42fdda
chore: run changeset version ( #816 )
...
* update hub-web changeset from major to minor
* run changeset version
2023-04-04 18:52:33 -04:00
adityapk00
13415ead71
fix: Prevent slow subscribers from crashing the hub ( #799 )
...
* fix: Prevent slow subscribers from crashing the hub
* changeset
* Add bufferedStreamWriter
* register listeners first
* Check if iterator has ended before ending it
* fix compile
2023-04-04 11:52:50 -07:00
PangZhi
1f47906693
feat: refactor protobufs and utils to remove grpc-js dependency ( #798 )
...
* remove grpc-js dependency from protobufs, refactor hubble to use hub-nodejs
* hub-web to use @farcaster/protobufs and utils
* add yarn.lock
* refactor hubble app to only use hub-nodejs
* update readme
* update export order
* update export order
* fix protobufs namespace build issue
* update codecov
* fix protobufCommand naming
---------
Co-authored-by: Paul Fletcher-Hill <pfletcherhill@gmail.com >
2023-04-04 09:27:53 -07:00
adityapk00
9e39bb8156
docs: update docs to close() grpc connection ( #790 )
...
* docs: Update docs to close grpc connections
* changeset
2023-04-04 07:07:10 -07:00
Varun Srinivasan
2f51472cca
docs(hub-nodejs): point urls to testnet hubs ( #764 )
2023-03-27 12:28:42 -07:00
Varun Srinivasan
57c540d520
chore: release new version of packages ( #761 )
...
* chore: changelog bump to app/hubble to prep for release
* chore: don't minor bump hubble and protobufs for client changes
* chore: bump versions for publishing
2023-03-26 18:17:47 -07:00
adityapk00
e5cb3276c5
docs: Use SSL or Insecure clients in examples ( #754 )
...
* docs: Use SSL or Insecure clients in examples
* remove unnecessary awaits
* Remove getHubRpcClient
* changeset
* Fix changeset
* improve error message
2023-03-25 13:20:07 -07:00
Paul Fletcher-Hill
9307b57778
changeset version and make custom packages private ( #752 )
2023-03-24 17:11:47 -04:00
Vincent Liao
f42e8a262b
docs(hub-nodejs): add docs for utils.md ( #736 )
...
* docs: add bytes-hex docs
* add: timestamp docs
* docs: verification table, params and return
* docs: add hubresult wrapper type
* docs: clarify some examples, address nit
* update: s/hexString/byteArray
* docs: add import to toFarcasterTime
2023-03-23 22:13:52 -07:00
Varun Srinivasan
627416746b
docs(hub-nodejs): fix parentCastId of CastAdd incorrectly labelled ( #745 )
2023-03-23 19:32:17 -07:00
Varun Srinivasan
5c7840518e
fix(hubble): crash by bumping ethers to 6.2.1 ( #744 )
...
* fix: crash by bumping ethers to 6.2.1
* chore: add changeset
2023-03-23 19:19:51 -07:00
Varun Srinivasan
fd9314afea
docs(hub-nodejs): more cleanups and fixes ( #734 )
...
* docs: clearly document unsafeUnwrap usage in docs
* docs: replace all instances of Buffer.from with hexStringToBytes
* docs: fix DataOptions links
2023-03-23 14:39:17 -07:00
Varun Srinivasan
1b5f6b2c1f
docs(hub-nodejs): more cleanup based on user testing ( #743 )
...
* docs(hub-nodejs): fix incorrect submitMessage signature
* docs: fix broken links in examples
* docs: fix relative links not working on npm
* docs: fix stackblitz link for chron-feed
* chore: add changeset
2023-03-23 14:37:58 -07:00
Varun Srinivasan
24519c5217
docs(hub-nodejs): small cleanups and improvements ( #732 )
...
* docs: update RPC port to 2283
* docs: add note about submitMessage rate limits
* docs: converting Message to specific types
2023-03-22 22:17:14 -07:00
Varun Srinivasan
1df9cd6bac
docs(hub-nodejs): add examples for constructing casts ( #731 )
...
* docs: make configurable parameters in examples clearer
* docs: add example for constructing casts
2023-03-22 21:50:53 -07:00
Anthony D'Addeo
91b788d78f
feat: add EthersV5Eip712Signer ( #720 )
2023-03-22 16:17:24 -05:00
adityapk00
c26fafa255
feat: Add test data into test hubs ( #719 )
...
* feat: Add test data into test hubs
* changeset
2023-03-22 11:57:31 -07:00
Varun Srinivasan
9138b5226a
docs(hub-nodejs): add docs for reverse param ( #711 )
...
* docs(hub-nodejs): fix chron-feed example to return in reverse chron
* docs(hub-nodejs): add docs for reverse param
2023-03-21 09:18:43 -07:00
Varun Srinivasan
4d15c45695
docs(hub-nodejs): example that demonstrates writing messages to hubs ( #710 )
...
* docs(hub-nodejs): example that demonstrates writing messages to hubs
* docs: renaming things for clarity
2023-03-21 07:35:48 -07:00
Varun Srinivasan
9a0f18c55c
docs(hub-nodejs): add chronological feed example ( #704 )
2023-03-20 21:03:26 -07:00
Varun Srinivasan
5dfbd1c572
docs: configuration for use with ethersv5 ( #709 )
2023-03-20 20:57:47 -07:00
Anthony D'Addeo
245096f1ca
docs: minor adjustments to signer related docs ( #702 )
...
* docs: minor adjustments to signer related docs
* fix typo
* fix: use bytes
2023-03-20 18:25:59 -05:00
Varun Srinivasan
b8eaa9a857
docs(hub-nodejs): update invocations to match 0.5.0 release, fix minor typos ( #701 )
...
* docs: fix all instances of types imports
* docs: fix issues with EthersEip712Signers
* docs: fix issues with NobleEd25519Signer
* docs: fix issues with Builders and Utils
* docs: cleanup primary README example
2023-03-20 15:34:27 -07:00
Varun Srinivasan
d139dae5d4
chore: bump versions ( #700 )
2023-03-20 14:16:44 -07:00
David Furlong
c459855337
docs: fix broken signer doc links in builders ( #694 )
...
* Update Builders.md
* add changeset and links to Eip712Signer as well
---------
Co-authored-by: Tony D'Addeo <tony@merklemanufactory.com >
2023-03-20 14:14:15 -05:00
Varun Srinivasan
c503d19eb2
docs: add documentation for userdata, verifications and streaming services ( #687 )
...
* docs: add getUserData usage
* docs: add docs for verifications
* docs: add docs for streaming
2023-03-19 16:53:40 -07:00
Vincent Liao
f875c1ed65
chore: turn prettier into its own package ( #653 )
...
* chore: separate out prettier from eslint into its own package
* fix: duplicate package name in package.json
2023-03-19 12:47:15 -07:00
Vincent Liao
fde61010b8
fix: contributing.md 404 ( #663 )
2023-03-19 12:46:28 -07:00
Anthony D'Addeo
99518efe30
refactor: introduce generic and dependency specific signers ( #677 )
...
* refactor: update ethers to v6.1 from v5.7
* refactor: generic signer classes
* remove neverthrow from crypto and signers
* update docs
* rm signer util fns
* add comment to getSignerKey
* rm not present methods from signers
* fix doc
* fix docs
* simplify Eip712Factory
* add changeset
---------
Co-authored-by: Varun Srinivasan <varunsrin@gmail.com >
2023-03-19 12:44:32 -05:00
Varun Srinivasan
1f202ed555
docs(hub-nodejs): add documentation for pagination, responses ( #680 )
...
* docs: fix makeVerificationRemove and dataOptions in builders
* docs: simplify main example, fix typo
* docs: add pagination documentation
2023-03-19 10:05:12 -07:00