summaryrefslogtreecommitdiff
path: root/.changeset/twenty-cheetahs-deny.md
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2023-08-30 04:38:28 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-30 13:38:28 +0200
commit5598feb71864f814d0a34bb6bf9f6ecdff081497 (patch)
tree15cfefaaeb8b7f346eb96e05a5e9e086d7bd262b /.changeset/twenty-cheetahs-deny.md
parente33d951af178ce0b50a41799d3ce76d107c961db (diff)
downloadastro-create-astro@4.0.0.tar.gz
astro-create-astro@4.0.0.tar.zst
astro-create-astro@4.0.0.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.changeset/twenty-cheetahs-deny.md')
-rw-r--r--.changeset/twenty-cheetahs-deny.md17
1 files changed, 0 insertions, 17 deletions
diff --git a/.changeset/twenty-cheetahs-deny.md b/.changeset/twenty-cheetahs-deny.md
deleted file mode 100644
index 38a7298bf..000000000
--- a/.changeset/twenty-cheetahs-deny.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-'astro': major
----
-
-Astro.cookies.get(key) returns undefined if cookie doesn't exist
-
-With this change, Astro.cookies.get(key) no longer always returns a `AstroCookie` object. Instead it now returns `undefined` if the cookie does not exist.
-
-You should update your code if you assume that all calls to `get()` return a value. When using with `has()` you still need to assert the value, like so:
-
-```astro
----
-if(Astro.cookies.has(id)) {
- const id = Astro.cookies.get(id)!;
-}
----
-```