ampscript-data 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ampscript-data",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Canonical AMPscript function catalog, keywords, and personalization strings for SFMC tooling",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -6408,6 +6408,17 @@ export const deprecatedFunctionLookup = new Map(
6408
6408
  FUNCTIONS.filter((f) => f.deprecated).map((f) => [f.name.toLowerCase(), f]),
6409
6409
  );
6410
6410
 
6411
+ /**
6412
+ * Case-insensitive lookup of functions that resolve at runtime but have no known
6413
+ * working invocation (`nonFunctionalAtRuntime`): lowercase name -> function entry.
6414
+ * Every reached call aborts the page (e.g. a retired Classic feature), so callers
6415
+ * can flag the call site. Kept separate from deprecation because these functions
6416
+ * were never formally deprecated by Salesforce.
6417
+ */
6418
+ export const nonFunctionalFunctionLookup = new Map(
6419
+ FUNCTIONS.filter((f) => f.nonFunctionalAtRuntime).map((f) => [f.name.toLowerCase(), f]),
6420
+ );
6421
+
6411
6422
  // ── Keywords ─────────────────────────────────────────────────────────────────
6412
6423
 
6413
6424
  /**