Skip to content

Releases: FuelLabs/fuel-streams-js

@fuels/[email protected]

28 Jan 23:03
7144e0b
Compare
Choose a tag to compare

@fuels/[email protected]

Patch Changes

@fuels/[email protected]

25 Jan 15:21
Compare
Choose a tag to compare

@fuels/[email protected]

Patch Changes

@fuels/[email protected]

24 Jan 05:48
5b81d7d
Compare
Choose a tag to compare

@fuels/[email protected]

Minor Changes

@fuels/[email protected]

28 Dec 08:11
5db26c0
Compare
Choose a tag to compare

@fuels/[email protected]

Minor Changes

@fuels/[email protected]

28 Nov 04:41
36f5ee5
Compare
Choose a tag to compare

@fuels/[email protected]

Minor Changes

@fuels/[email protected]

28 Nov 03:59
fb08253
Compare
Choose a tag to compare

@fuels/[email protected]

Minor Changes

@fuels/[email protected]

28 Nov 03:59
81a4fa0
Compare
Choose a tag to compare

@fuels/[email protected]

Minor Changes

  • #8 81a4fa0 Thanks @pedronauck! - Improve Stream API and enhance demo application UI

    • API Changes:
      • Rename subscribeWithSubject to subscribe 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

    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

@fuels/[email protected]

28 Nov 03:58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/FuelLabs/fuel-streams-js/commits/@fuel-streams/0.0.1