Skip to content

Releases: shadow1349/express-ts-session

v0.0.1-beta.5

21 Dec 17:48
Compare
Choose a tag to compare

The library has been simplified in terms of what options are available. I paired down the options to the bare essesntials, removed the Cookie class and left them as just an interface. I also removed a lot of logic from the store and the session as there seemed to be a ton of duplicate logic.

v0.0.1-beta.4

18 Dec 00:16
Compare
Choose a tag to compare

I have updated the way that sessions are created in the middleware. Memory store will throw an error in the get method if nothing is returned. The get method must throw an error if the store doesn't have an existing session. The client may send the API a session cookie while there is no session in the database. If that happens the new changes will ensure that the error is caught and a new session is generated and sent to the user.

v0.0.1-beta.2

17 Dec 00:15
Compare
Choose a tag to compare

This is the second beta release which adds declarations to the codebase to help TypeScript recognize types which was missing from the first beta release. It also adds more jsdoc to the codebase.

0.0.1-beta.3

17 Dec 18:58
Compare
Choose a tag to compare

If you pass in a custom genid method, it will never get called because of how everything is set up. So I decided to just set genid on the request so it's accessible where I need it. This should fix any issues setting a custom genid method.

Fixes https://github.com/users/shadow1349/projects/2?pane=issue&itemId=47782483