Workers SDK Issue Reports

← Back to Dashboard

#8989 Version metadata binding doesn't have a timestamp field in local dev

Recommendation:KEEP OPEN
Difficulty:n/a
Reasoning:

Intentionally open - maintainer reopened to track miniflare implementation. Bug confirmed in code: timestamp missing from emulated binding.

Suggested Action:

No action - valid tracking issue for pending feature work

Analysis Report

Issue Review: cloudflare/workers-sdk#8989

Summary

Version metadata binding is missing the timestamp field when running in local dev (miniflare).

Findings

  • Created: 2025-04-16
  • Updated: 2025-12-17
  • Version: Not specified → wrangler 4.60.0 / miniflare 4.20260120.0
  • Component: miniflare (version_metadata binding)
  • Labels: bug, caretaking
  • Comments: 3

Key Evidence

  • Related PR #8990 merged: Fixed the TypeScript type generation (adding timestamp to the generated types), but this PR only addressed issue #7908 (type definition), not the actual runtime value.
  • Maintainer explicitly reopened: emily-shen reopened this issue specifically to track the miniflare implementation: "reopening this to track the miniflare part... this is currently emulated in wrangler, we should move this into miniflare."
  • Bug confirmed in code: In packages/wrangler/src/dev/miniflare/index.ts at line 587, the version_metadata binding is emulated as:
    { [bindings.version_metadata.binding]: { id: randomUUID(), tag: "" } }
    
    The timestamp field is not included.
  • No fix found: No merged PRs or changelog entries addressing the missing timestamp value at runtime.

Recommendation

Status: KEEP OPEN

Reasoning: This issue is intentionally open to track a known missing feature. The maintainer explicitly reopened it after closing a related PR, confirming this is the correct tracking issue for adding the timestamp field to the miniflare version_metadata binding emulation. The bug is confirmed to still exist in the codebase.

Action: Keep open. This is a valid feature gap being tracked by maintainers. The implementation should add timestamp to the emulated version_metadata binding in local dev, potentially using the dev session start time or file change time as suggested by the reporter.

Notes & Feedback (0)

No notes yet.

Add Note