Skip to content

chore: version packages - #24

Merged
jeengbe merged 1 commit into
masterfrom
changeset-release/master
Sep 28, 2026
Merged

jeengbe merged 1 commit into
masterfrom
changeset-release/master

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

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

@jeengbe/spiffe@2.0.0

Major Changes

  • #25 2b5b0a4 - refactor!: rework internals

    Breaking changes

    • SpiffeClient now takes a single SpiffeClientOptions object. Pass the socket or transport as connection and retry options as retry:

      - new SpiffeClient('unix:///path/to/api.sock', { maxAttempts: 3 });
      + new SpiffeClient({ connection: 'unix:///path/to/api.sock', retry: { maxAttempts: 3 } });
    • getJwt(), getJwtSvid(), createKafkajsSaslMechanism(), and createKafkajsAuthMiddleware() take an SvidFilter instead of a hint string:

      - spiffe.getJwt('orders-api', 'public');
      + spiffe.getJwt('orders-api', { hint: 'public' });
    • getJwtSvid() returns null instead of throwing NoSvidError when the workload has no SVID. getJwt() still throws.

    • ParsedJwtSvid was removed. getJwtSvid() returns JwtSvid, which now includes hint and expiresAtMs.

    • NoSvidError takes the SvidFilter that was used, exposed as filter, instead of an SVID type and hint.

    Features

    • Filter SVIDs by SPIFFE ID with { spiffeId }.
    • Pass custom caches via jwtSvidCache and validatedJwtCache, either a configured SpiffeCacheImpl or your own SpiffeCache implementation.
    • Disable retries with retry.enabled: false.

    Fixes

    • validateJwt() now retries while the Workload API is unavailable.
    • Fetched JWT-SVIDs are cached for at most 60 seconds and 1,000 entries.
    • close() now closes the connection the client opened itself. A transport passed in by the caller is left open.
    • Removed the lru-cache dependency.

@jeengbe/cache@7.0.11

Patch Changes

@github-actions
github-actions Bot force-pushed the changeset-release/master branch from 0f65578 to 4a77f35 Compare September 28, 2026 07:39
@jeengbe
jeengbe merged commit b673fa5 into master Sep 28, 2026
@jeengbe
jeengbe deleted the changeset-release/master branch September 28, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant