- Issues
- #126
`serializeAttachment` doesn't support Date, Map etc
BU
buzinas opened ·
On Cloudflare `serializeAttachment` accepts anything that can be structured cloned, but on `celld`, `JSON.stringify` and `JSON.parse` are used instead, which breaks objects that would rather work in Cloudflare.
- MA
Thanks @buzinas. `serializeAttachment` now uses structured clone instead of JSON, so a `Date` comes back a `Date` and a `Map` a `Map`. This is fixed internally and will be available publicly on the next release.
buzinasmentioned3 months ago on GitHub
buzinassubscribed3 months ago on GitHub