Skip to content

0.0.48 - Web Socket State Syncing, Improved Type Inference & Server/Fetcher

Pre-release
Pre-release
Compare
Choose a tag to compare
@brandon-schabel brandon-schabel released this 20 Aug 02:13
· 594 commits to main since this release

Release Notes for 0.0.48

This release introduces a series of improvements and features that enhance the capability of U Tools, particularly in the areas of websocket state syncing, fetcher enhancements, and server improvements

Major Features & Enhancements:

  1. WebSocket State Syncing:

    • Client & Server Sync: Introduced a websocket-based state syncing mechanism that ensures seamless and real-time state synchronization between the client (React) and server, using complete type inference from the configured state. The type inference is very very strong.
    • Improved WebSocket Connect: Enhanced the WebSocket connection process, including better handling of boolean values.
    • Generic Function Options for WebSocket State Sync: Worked on the addition of generic function options, paving the way for more versatile websocket state sync functionalities.
  2. Fetcher Improvements:

    • Enhanced Type Inference: The fetcher now boasts significantly improved type inference capabilities.
    • Fetcher Factory Upgrade: Simplified the OpenAI API interaction and made improvements to the fetch factory.
    • Config Map Integration: A newly designed fetcher that supports a configuration map of all the APIs. This allows users to easily define types for Response, Params, Post Body, and headers, ensuring a more type-safe API interaction.
    • **Default Headers": Set 'application/json' as the default for post requests, streamlining the request process.
  3. Server Improvements:

    • Middleware Additions: Added server middlewares to better handle requests and enhance server performance.
    • Server WebSocket Data Syncing: Implemented 'use sync server' for websocket data synchronization, ensuring data integrity and real-time updates.
    • Logging: Enhanced CORS middleware logging to provide better insights into cross-origin requests.
  4. Recursive File & Content Search: An added utility to recursively search through files and content, enhancing the system's search capabilities.