Skip to content

v3.2.0

Choose a tag to compare

@JoernBerkefeld JoernBerkefeld released this 08 Aug 08:53
· 20 commits to main since this release

Features

  • New export VERIFICATION_BLOCKED_REASONS — frozen enum of the reasons a runtime verification was attempted but could not complete (no-working-invocation, needs-auth-context, no-test-data, classic-only-no-assets, destructive-unsafe).
  • New optional entry fields documented on FUNCTIONS: isConfirmed, verificationBlocked, verificationBlockedReason, differsFromOfficialDocs, officialDocsNote, and validArities (exact permitted argument counts for a discontinuous overload; currently unused by any AMPscript function).

Bugfixes

  • Concat now has minArgs: 1 (was 2) and repeat.minGroups: 1 — a single-argument call is valid at runtime. Parameters accept string|number|date.
  • Math functions Add, Subtract, Multiply, Divide, Mod and Random widened their parameter types from number to string|number — a numeric string is accepted and yields the same result as a numeric literal.
  • Length, Lowercase and Uppercase widened sourceString from string to string|number|date.
  • Random flagged differsFromOfficialDocs — the official reference allows decimal bounds, but every decimal bound aborts the page at runtime; only whole-number bounds are usable.
  • Divide return description now documents that a zero divisor does not raise an error (infinity symbol / NaN instead of a failure).
  • Mod return description now documents that the result takes the sign of the dividend and a zero divisor yields NaN.
  • Length return description now documents that the count is in UTF-16 code units, so characters outside the Basic Multilingual Plane count as 2.
  • Uppercase description now documents that the German sharp s is left unchanged rather than expanding to SS.

Chores

  • README.md documents VERIFICATION_BLOCKED_REASONS, the verification-state fields, and validArities.
  • 10 functions marked isConfirmed: true after runtime verification: Add, Subtract, Multiply, Divide, Mod, Random, Concat, Length, Lowercase, Uppercase.

Full Changelog: v3.1.1...v3.2.0