Workers SDK Issue Reports

← Back to Dashboard

#10092 wrangler types fails to generate the proper type VectorizeVectorMetadataFilterOp

Recommendation:CLOSE
Difficulty:n/a
Reasoning:

Fixed in workerd#5307 (merged 2025-10-21). Type definitions now include all filter operators ($in, $nin, $lt, $lte, $gt, $gte). Released in workerd v1.20251022.0+.

Suggested Action:

Close with comment explaining fix is available

Analysis Report

Issue Review: cloudflare/workers-sdk#10092

Summary

wrangler types generates incomplete VectorizeVectorMetadataFilterOp type missing $in, $nin, and range operators.

Findings

  • Created: 2025-07-28
  • Updated: 2025-10-13
  • Version: wrangler 4.26.0 → 4.60.0 (current)
  • Component: wrangler types / vectorize
  • Labels: bug, internal, vectorize
  • Comments: 1

Key Evidence

  • Root cause identified: The type definitions in workerd/types/defines/vectorize.d.ts only included $eq and $ne operators, missing the range and set operators ($in, $nin, $lt, $lte, $gt, $gte) that were added later.

  • Fix merged: PR workerd#5307 was merged on 2025-10-21, adding:

    • VectorizeVectorMetadataFilterOp now includes: $eq, $ne, $lt, $lte, $gt, $gte
    • New type VectorizeVectorMetadataFilterCollectionOp for: $in, $nin
    • Updated VectorizeVectorMetadataFilter to properly include both operator types
  • Fix released: The fix was included in workerd v1.20251022.0 (released 2025-10-22) and all subsequent versions.

  • Internal tracking: Jira VS-461 tracked this issue and is in "Needs Triage" status (likely not updated after PR merge).

Recommendation

Status: CLOSE

Reasoning: The underlying issue has been fixed in workerd#5307, which was merged on 2025-10-21 and released in workerd v1.20251022.0. Users running wrangler types with wrangler 4.x (which uses recent workerd versions) should now get the correct type definitions including $in, $nin, and range operators.

Action: Close the issue with a comment explaining the fix.

Suggested Comment

This has been fixed in workerd#5307, which was merged on October 21, 2025 and released in workerd v1.20251022.0.

The type definitions now properly include all metadata filter operators:

  • VectorizeVectorMetadataFilterOp: $eq, $ne, $lt, $lte, $gt, $gte
  • VectorizeVectorMetadataFilterCollectionOp: $in, $nin

Running wrangler types with a recent version of wrangler should generate the correct types. If you're still experiencing this issue, please ensure you're using the latest version of wrangler and let us know.

Notes & Feedback (0)

No notes yet.

Add Note