Skip to content

v2.72.7-fix: Multiline import type regex fix

Choose a tag to compare

@lightstrike lightstrike released this 17 Jan 00:51

Changes

  • Fix multiline import type statements not being detected during import scanning
  • Based on upstream v2.72.7 (commit a13554d)
  • Cherry-picked fix from fix/multiline-import-type-regex branch

The Bug

The regex pattern .*? does not match newlines, causing multiline import type { X } statements to be skipped during bind-mount file scanning. This results in type-only imports not being mounted in the Docker container.

The Fix

Changed .*? to [\s\S]*? in pkg/function/deno.go to match any character including newlines.

Installation

Download the binary and copy it to:

  • /opt/homebrew/bin/supabase (or your system path)
  • node_modules/supabase/bin/supabase (for yarn/npm scripts)

See README for detailed instructions.