0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00
astro/packages/integrations
Matt Kane b4fec3c7d1
Sessions API (#12441)
* wip: experimental sessions

* feat: adds session options (#12450)

* feat: add session config

* chore: add session config docs

* Fix

* Expand doc

* Handle schema

* Remove example

* Format

* Lock

* Fix schema

* Update packages/astro/src/types/public/config.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/src/types/public/config.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Add link to Sessions RFC in config.ts

* Move session into experimental

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Lock

* feat: prototype session support (#12471)

* feat: add session object

* Add tests and fix logic

* Fixes

* Allow string as cookie option

* wip: implement sessions (#12478)

* feat: implement sessions

* Add middleware

* Action middleware test

* Support URLs

* Remove comment

* Changes from review

* Update test

* Ensure test file is run

* ci: changeset base

* ci: exit from changeset pre mode

* Lockfile

* Update base

* fix: use virtual import for storage drivers (#12520)

* fix: use virtual import for storage drivers

* Don't try to resolve anythign in build

* Fix test

* Polyfill node:url

* Handle custom drivers directly

* No need for path

* Update packages/astro/src/core/session.ts

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Fix jsdoc

* fix: set default storage path

* Update changeset config for now

* Revert config workaround

* Lock

* Remove unneeded ts-expect-error directive

* fix: [sessions] import storage driver in manifest (#12654)

* wip

* wip

* Export manifest in middleware

* Changeset conf

* Pass session to edge middleware

* Support initial session data

* Persist edge session on redirect

* Remove middleware-related changes

* Refactor

* Remove vite plugin

* Format

* Simplify import

* Handle missing config

* Handle async resolution

* Lockfile

* feat(sessions): implement ttl and flash (#12693)

* feat(sessions): implement ttl and flash

* chore: add unit tests

* Make set arg an object

* Add more tests

* Add test fixtures

* Add comment

* Remove session.flash for now (#12745)

* Changeset

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2024-12-18 13:55:49 +00:00
..
alpinejs Merge branch 'main' into next 2024-11-27 14:31:09 +00:00
cloudflare Add publint checks (#12445) 2024-11-15 23:43:34 +08:00
deno
markdoc chore: remove unused imports (#12696) 2024-12-11 16:01:06 +01:00
mdx [ci] release (#12650) 2024-12-09 16:38:09 +01:00
netlify Add publint checks (#12445) 2024-11-15 23:43:34 +08:00
node [ci] release (#12567) 2024-12-03 10:56:34 +00:00
partytown Add publint checks (#12445) 2024-11-15 23:43:34 +08:00
preact Sessions API (#12441) 2024-12-18 13:55:49 +00:00
react [ci] release (#12753) 2024-12-16 14:51:44 -05:00
sitemap test: update sitemap tests to use the latest @astrojs/node (#12593) 2024-12-03 11:46:25 +00:00
solid [ci] release (#12567) 2024-12-03 10:56:34 +00:00
svelte [ci] release (#12595) 2024-12-03 13:28:23 +01:00
tailwind test: make tailwind test more stable (#12732) 2024-12-13 14:37:25 +00:00
vercel [ci] release (#12567) 2024-12-03 10:56:34 +00:00
vue [ci] release (#12698) 2024-12-11 11:07:58 +00:00
web-vitals [ci] release (#12595) 2024-12-03 13:28:23 +01:00