Skip to content

Version Packages - #49

Merged
Jerome Leclanche (jleclanche) merged 1 commit into
mainfrom
changeset-release/main
Aug 29, 2026
Merged

Version Packages#49
Jerome Leclanche (jleclanche) merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

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 main, this PR will be updated.

Releases

@ingram-tech/nk-auth@0.15.0

Minor Changes

  • 907585f: Make next preservation composable, and loud when it is missing.

    Until now ?next= only survived a sign-in redirect if a site adopted both
    createAuthMiddleware and requireUser verbatim: the middleware was the only
    thing that set the x-nk-auth-path header, the guard's sign-in URL builder was
    private, and a site that deviated from either lost next with no error. Every
    "sign in to see this page" landed on the default page instead.

    • @ingram-tech/nk-auth/middleware exports the two halves of the middleware on
      their own: withAuthPathHeader(request, requestHeaders) sets the header from
      a custom proxy in one line (the same requestHeaders shape as nk-i18n's
      localeProxy), and clearStaleSession(request, config) is the stale-cookie
      handshake. createAuthMiddleware's middleware also accepts
      { requestHeaders } so a site can forward its own headers through it.
    • createAuthHelpers exports signInTarget(), the sign-in URL with next and
      stale computed, so a site's own guard wrapper does
      redirect(await signInTarget()) instead of re-deriving it.
    • Both accept nextParam (default next) and isSafeNext (default the
      internal-path validator), for a site with an existing param name or a
      trusted-origin allow-list.
    • Outside production, signInTarget() warns once when the header is absent,
      naming the two ways to wire it.

@ingram-tech/nk-dev@0.14.0

Minor Changes

  • 50efdf8: nk doctor warns when a site binds createAuthHelpers but nothing sets the
    x-nk-auth-path header (neither createAuthMiddleware nor
    withAuthPathHeader): the guards' ?next= is lost silently in that shape.
    guide.md names the composable nk-auth middleware pieces.

@jleclanche
Jerome Leclanche (jleclanche) deleted the changeset-release/main branch August 29, 2026 22:17
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