Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Oct 13:54
c82fc12

Major Changes

  • 3775bf3: Fix: Using the environment's global fetch API instead of undici.

    This change makes this library more compatible with JavaScript runtimes that do not support Node.js modules. If you want to use undici again, use the Custom Fetcher feature.

  • f922ba9: BREAKING: The responses of commands are wrapped in a record with type of SafeReturn<T, VaultError>.

    This record contains two properties:

    • data: The data property for successful responses. The value depends on the command.
    • error: The error property for error responses. The type is VaultError, which is a subclass of Error.

    Read Migration guide for more details on how to use it.

  • e2f73e7: Fix: Switched license from GPL-3.0 to MIT, to make the project more open and permissive.