Nipin
Member
rich_harris - 10/21/2020
off the top of my head, these are the main differences that affect source code (rather than all the boilerplate that goes around a project): * endpoints (formerly known as 'server routes') have a new signature — instead of (req, res, next?) => void it'll be ({path, params, query}, session) => ({status, headers, body}) * instead of importing from @sapper/app you'll import from something like $app or @app if @silentworks has his druthers (i initially went with a $ prefix to distinguish it from a package scope) * preload signature might change, but we might keep as-is for now and deprecate it in a non-breaking way * since there's no more server.js, custom server logic will need to be expressed some other way (TBD). There'll be a dedicated middleware for creating sessions (i'm hoping we can simplify the clusterfuck around auth that you have to deal with in node apps) * ...I think that's mostly it?
thấy sticky trong discord channel, nghe vụ session middleware cảm thấy hóng vãi :">