Skip to content

v0.9.2 - #44

Merged
sandros94 merged 1 commit into
mainfrom
release/v0.9.2
Nov 15, 2026
Merged

sandros94 merged 1 commit into
mainfrom
release/v0.9.2

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

v0.9.2 is the next minor release.

Timetable: to be announced.

👉 Changelog

compare changes

⚠️ Breaking changes

  • onUpdate runs before the cookie is written. A throw in it cancels the update: no cookie is written and the session is back to what it was before update() was called. Its session and oldSession are copies, so changing them does not change the session.
  • onError receives { session, oldSession, trigger } as copies. session is the session the failure is about, oldSession is undefined after a read, and trigger is "read", "update" or "rolling". Reach the live session through use(event). A token too large for its cookies and an event use() cannot use now throw ERR_SESSION_INVALID instead of ERR_SESSION_CONFIG_INVALID.
  • A session definition keeps a frozen copy of its config. Assigning to config inside a hook throws, and changing the object after defineJWSSession()/defineJWESession() has no effect.

🚀 Enhancements

  • session: optionally be able to skip session rolls. (0132860)
  • session: add rollDue roll.due to onRead hook to properly decide rolling practices (76a3e88)

🩹 Fixes

  • session: freeze config (aca3932)
  • session: onError receives the failed session and its trigger, oversized tokens fail before onUpdate (9448954)
  • session: move update hook before cookie write to allow throwing before issuance (801dfd0)
  • session: a roll that fails empties the session and rejects the read (2b543d8)
  • session: an update that fails before issuing leaves the session untouched (b20f985)
  • session: a session onRead updated is not rolled again (11e7336)

📖 Documentation

  • upgrade deps (bb3b40a)
  • session: move update hook before cookie write to allow throwing before issuance (386696d)

✅ Tests

  • slightly increse bundle size target (bf75cd2)

❤️ Contributors

@netlify

netlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for unjwt ready!

Name Link
🔨 Latest commit 501e128
🔍 Latest deploy log https://app.netlify.com/projects/unjwt/deploys/6afa10b0c3c8ba0f8c66a02f
😎 Deploy Preview https://deploy-preview-44--unjwt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sandros94
sandros94 marked this pull request as ready for review November 15, 2026 20:18
@pkg-pr-new

pkg-pr-new Bot commented Nov 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/sandros94/unjwt@44

commit: 501e128

@sandros94
sandros94 merged commit a8a6776 into main Nov 15, 2026
7 checks passed
@sandros94
sandros94 deleted the release/v0.9.2 branch November 15, 2026 21:37
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