Closed Uzlopak closed 2 years ago
pinging people, who are maybe willing to give feedback: @rclmenezes @SimenB @cameronmbell @sarneeh @m0dch3n
On one hand I am kind of exhausted by the work on this plugin. So basically I read the unit tests, and dont understand them anymore. And on the other hand, I really want that we get a release soon.
Totally agree! Honestly, I've been following this repo and it's been much cleaner to work with: https://github.com/mgcrea/fastify-session
I also experimented with importing Store
and Session
from express-session and plugging it in via fastify hooks. That way, we can make a separate repo for users who want express compatibility and we can stop worrying about replicating express-session's behavior here.
Anyway, I'm off-topic. The other things I think we should do:
maxAge
as originalMaxAge
in session.cookie. This would allow services using express-session and services using @fastify/session to use same session store. It's important to me personally (at work I'm trying to migrate us off Express), so I'll work on this next.rolling
work as expected. I don't think the option does anything anymore!cookie.maxAge
should have priority over cookie.expires
. In our code here, we don't do that even though our docs say otherwise. I haven't made an issue yet because I haven't had time to think through if there's a bug here, but it smells suspicious.maxAge
as a key here since we can use session.cookieOpts.maxAge
instead.Also -- thank you @uzlopak for all your work so far!
I would like to know how many task are left? If there are no pending task or new comment, I will release a new major on this Friday 9 / 9.
Then, I will cut a next
branch to prevent staling lots of breaking changes in master
.
Probably just missing https://github.com/fastify/session/pull/154?
It seems Feature complete. But i would prefer not to release now. I want to just do final check. So i think friday is a good finish Line
Are we ready to land?
Please wait. I have found three small issues. PR are incoming
I provided all three PRs.
After that I will not touch this plugin for a while :D
@Uzlopak could you sum up in a paragraph all the changes you did for this release? A long list of PRs might be hard to digest.
Based on the auto generated release notes I modified them. I thought you maybe want to copy paste that.
expires
from session to session.cookies by @rclmenezes in https://github.com/fastify/session/pull/120Full Changelog: https://github.com/fastify/session/compare/v9.0.0...v10.0.0
Released 16ef7eb6c79ecc2342b0611c3aebb2512ca0c24c
I have added a Notable Changes
section on the release notes.
@Uzlopak Can you helps me to check if anything missing.
Prerequisites
Issue
Alot of work has been invested into this plugin. But are we now feature complete? I have the feeling that we are so close to have it the biggest issues fixed.
On one hand I am kind of exhausted by the work on this plugin. So basically I read the unit tests, and dont understand them anymore. And on the other hand, I really want that we get a release soon.
So can we please consolidate the open issues in this thread? Or open new issues.
It would be good if you would read critically the code too. Maybe you see something we did overlook? Or is maybe totally wrong in the first place?
So give please feedback.
So I start, and if I find more cases or if you find some then please post them. I would add them to this list.
[ ] check if rolling is working as expected