The project I’ve built and is run in production for a few months now, is using
KV api. To make it strongly typed, it uses @cloudflare/workers-types in version
2.2.2 that was released a few months back. A few hours ago two workers started returning errors. The exception was traced to a line similar to:
const value = await kv.get<number>(key, "json");
Before yesterday, it was handling perfectly fine keys that didn’t exist. The value returned was
null. Yesterday evening it started failing informing about a
JSON.parse problem with a wrongly formatted JSON.
Has something changed? All workers use a compatibility date set to