node-vault icon indicating copy to clipboard operation
node-vault copied to clipboard

chore(release): version package

Open github-actions[bot] opened this issue 9 months ago • 0 comments

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@litehex/[email protected]

Major Changes

  • f922ba9: BREAKING: The responses are wrapped in a record of type SafeReturn<T, VaultError>. This record contains the data property for successful responses and the error property for error responses.

    This change only affects the return value of commands. Here is an example of how to use it:

    import { VaultError, Client } from '@litehex/node-vault';
    
    const { data, error } = await vc.write({
      path: 'secret/test',
      data: {
        foo: 'bar'
      }
    });
    

if (error) { if (error instanceof VaultError) { return console.log(Panic Mode: ${error.message}); } return console.log(error); // Probably fetch failed. Should we retry? }

// The error is checked by the last statement above and the only possibility is the success response with the data property

console.log(error); // undefined console.log(data); // { request_id: '...', lease_id: '...', ... }


This feature is called Atomic Responses, which means there are only two responses: `success` and `error`.

Your editor/IDE might not detect any errors, so please make sure to update and verify correctness with every usage.

## 0.2.5

### Patch Changes

- 9f41e99: fix: the `fetcher` parameter was not being assigned to the client

## 0.2.4

### Patch Changes

- 2a24739: fix: type issues with default `write` command
- 3bb7c15: fix: the bug where the args for `aws.stsCredentials` were not being sent

## 0.2.3

### Patch Changes

- 90d185e: feat: Capability to generate AWS credentials for STS path

github-actions[bot] avatar May 30 '24 19:05 github-actions[bot]