Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 18 Mar 01:02
· 468 commits to main since this release

New Features / Follows Fastly spec

  • feat: support += string concatenation for all string variables #576 (@acme)
  • Add fastly.ff.last_hop_was_serviceid built-in function #574 (@jedisct1)
  • feat(formatter): add break_compound_conditions option #564 (@acme)
  • Add testing.return_value to access functional subroutine results #557 (@jedisct1)
  • implement bereq.fetch_timeout predefined variable #550 (@ysugimoto)
  • std.anystr2ip: add IPv6 support #545 (@jedisct1)
  • feat(linter): infer subroutine scope from call graph analysis #540 (@acme)
  • fix(formatter): format closer to official Fastly format #534 (@acme)

Bugfixes

  • fix: Fix GetField to correctly handle quoted strings with escaped quotes #581 (@3846masa)
  • fix(simulate): prevent response headers from appearing as body in proxy mode #580 (@3846masa)
  • fix: error on bare infix expression in BOOL declare assignment #578 (@acme)
  • Coerce string override to IP type for IP variables #570 (@bungoume)
  • fix(formatter): correct blank line placement around leading comments in blocks #563 (@acme)
  • Fix: synthetic after restart causes segfault #560 (@akrainiouk)
  • Fix simulator JSON error field serialization #555 (@jedisct1)
  • Fix flaky TIME concatenation test race condition #554 (@jedisct1)
  • Fix regsub panic on non-participating capture groups #553 (@jedisct1)
  • strftime: %0 is a valid padding modifier #546 (@jedisct1)
  • Fix utf8_* functions #544 (@jedisct1)
  • Fix random_* functions #543 (@jedisct1)
  • Fix math functions #542 (@jedisct1)
  • Make digest_hmac_* functions return NULL with an empty key #541 (@jedisct1)
  • fix(linter): make h2.push second argument optional #539 (@acme)
  • fix(types): correct req.protocol type from BOOL to STRING #538 (@acme)
  • fix(linter): lint value expressions in declare statements #537 (@acme)
  • fix(testing): apply fixed_access_rate to ratelimit.ratecounter_increment #536 (@bungoume)
  • Stringify backends and boolean literals #530 (@akrainiouk)
  • Fix linting for functions with both positional and variadic args #529 (@MasonM)

Miscellaneous