Skip to content

Releases: curveball/session

v1.0.1

06 Nov 21:20
c929df3
Compare
Choose a tag to compare
  • Update to 'cookie' package v1.

v1.0.0

17 Jan 22:08
ad6a0bc
Compare
Choose a tag to compare
  • Finally! Curveball v1. Only took 6 years.
  • CommonJS support has been dropped. The previous version of this library supported both CommonJS and ESM. The effort of this no longer feels worth it. ESM is the future, so we're dropping CommonJS.
  • Now requires Node 18.
  • Upgraded to Typescript 5.3.

v0.10.0

04 Oct 03:50
1fd9028
Compare
Choose a tag to compare
  • The getCsrf function is no longer an async function, and returns the token immediately.
  • A warning is now emitted if getCsrf is called after the session has already been stored.

v0.9.0

14 Feb 03:09
c9b4735
Compare
Choose a tag to compare
  • This package now supports ESM and CommonJS modules.
  • No longer supports Node 14. Please use Node 16 or higher.

v0.8.1

11 Oct 21:31
f30e68e
Compare
Choose a tag to compare
  • Session data was not stored if a later middleware threw an uncaught exception. This middleware now uses finally to ensure that session data always gets stored, and the Set-Cookie header always gets sent.

v0.8.0

03 Sep 22:53
4edff41
Compare
Choose a tag to compare
  • Upgraded from @curveball/core to @curveball/kernel.

v0.7.0

21 Jun 21:28
ddaa3e9
Compare
Choose a tag to compare
  • Removed expires option, and added maxAge instead. expires never made sense, because it represents a fixed point in time. Which means that if expires was set to 1 hour in the future, the middleware would no longer generate valid sessions after the first hour the server is up. (@defrex)
  • Dropped Node 12 support. Node 14 is now the minimum version.

v0.6.3

09 Mar 20:37
b09dfc6
Compare
Choose a tag to compare
  • Added 'close' method to Memory session store, so users may cleanup active
    timeouts and the server can cleanly exit. (@defrex)
  • Updated everything to latest curveball standards.

v0.6.2

01 Mar 06:59
680f0b4
Compare
Choose a tag to compare
  • Export SessionStore.

v0.6.1

02 Feb 22:12
6b9724d
Compare
Choose a tag to compare
  • Session data should be typed as Record<string, any> not
    Record<string, string>.