Releases: FuelLabs/fuel-streams-js
Releases · FuelLabs/fuel-streams-js
@fuels/[email protected]
@fuels/[email protected]
Patch Changes
0572f87
Thanks @pedronauck! - fix: minor adjuments on simple demo app
@fuels/[email protected]
@fuels/[email protected]
Patch Changes
f77da27
Thanks @pedronauck! - Fix: websocket cross-platform implementation
@fuels/[email protected]
@fuels/[email protected]
Minor Changes
2363884
Thanks @pedronauck! - fix: adjust client to work with mainnet and new structure
@fuels/[email protected]
@fuels/[email protected]
Minor Changes
a9e92e4
Thanks @pedronauck! - feat: Adapt to work with the new WebServer API
@fuels/[email protected]
@fuels/[email protected]
Minor Changes
60ca003
Thanks @pedronauck! - Fix: bumping release for changeset
@fuels/[email protected]
@fuels/[email protected]
Minor Changes
69c0f69
Thanks @pedronauck! - Feat: add compatibility with fuels sdk types
@fuels/[email protected]
@fuels/[email protected]
Minor Changes
-
#8
81a4fa0
Thanks @pedronauck! - Improve Stream API and enhance demo application UI- API Changes:
- Rename
subscribeWithSubject
tosubscribe
for better API clarity - Add
subscribeWithString
method for string-based subscriptions - Remove namespace handling from stream creation
- Improve consumer subscription handling and configuration
- Update return type for subscriptions to use
ConsumerMessages
- Add network selection during client initialization (
{ network: 'testnet' | 'mainnet' }
) - Add
switchNetwork
method for dynamic network switching - Remove
ClientOpts
requirement for simpler initialization
- Rename
Client Initialization
// Before const opts = new ClientOpts(); const client = await Client.connect(opts); // After const client = await Client.connect({ network: "testnet" }); // or 'mainnet'
Stream Subscription
// Before const stream = await BlocksStream.init(client); const subscription = await stream.subscribeWithSubject(subject); // After - Using typed subjects const stream = await BlocksStream.init(client); const subscription = await stream.subscribe(BlocksSubject.build()); // After - Using string subjects const subscription = await stream.subscribeWithString("my-subject");
Network Switching
const client = Client.getInstance(); await client.switchNetwork("testnet");
- Demo App Improvements:
- Add network switching support (mainnet/testnet)
- Implement new header with navigation and network controls
- Add toast notifications for network changes
- Improve UI layout and responsiveness
- Add loading states and better error handling
- Enhance code examples visualization
- Add E2E testing setup with Vitest
- Improve CI workflows for better test handling
- Update build and test scripts in Turbo pipeline
- API Changes:
@fuels/[email protected]
What's Changed
- feat: first prototype version of the ts sdk by @0xterminator in #1
- feat(repo): Added ws example and README by @0xterminator in #5
- feat: add simple demo application using sdk by @pedronauck in #6
New Contributors
- @0xterminator made their first contribution in #1
Full Changelog: https://github.com/FuelLabs/fuel-streams-js/commits/@fuel-streams/0.0.1