Skip to content

v0.3.4 - Quick Wins

Choose a tag to compare

@lance0lance0 released this 12 Nov 14:56
· 18 commits to master since this release

Quick Win Improvements

Small, high-impact improvements based on continued DX feedback.

Logout Improvements

  • New helper: clearLatchCookies(response) - Delete all Latch cookies at once
  • Updated example logout route to use buildLogoutUrl() helper
  • Comprehensive JSDoc documenting Azure AD SSO logout behavior
  • Clear explanation of local vs SSO logout options

Session & Refresh Route Documentation

  • Fixed bug: Session route now checks refresh token expiry (7-day lifetime)
  • Added detailed JSDoc to session route explaining purpose and usage
  • Added comprehensive JSDoc to refresh route with Direct Token and Secure Proxy patterns
  • Clear guidance on when to call each route

README Documentation

  • New section: Cookie Storage Pattern with size table
  • Added step 4 to Quick Start: Create API routes
  • Explained what each of the 5 routes does
  • Quick setup command to copy routes from example app

Tests

  • Fixed seal test to validate new 4KB size checking behavior
  • Added test for moderately sized objects under 4KB

Installation

npm install @lance0/latch@0.3.4

What's Next

These improvements make Latch easier to integrate and understand. All changes are non-breaking and focused on developer experience.

Full changelog: https://github.com/lance0/latch/blob/master/CHANGELOG.md