eslint-plugin-sfmc 4.12.0 → 4.14.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.
@@ -14,7 +14,6 @@ Only a subset of AMPscript functions are available in Marketing Cloud Next (MCN)
14
14
 
15
15
  - Functions that **Marketing Cloud Next never supported** — they only work in classic Marketing Cloud Engagement.
16
16
  - Functions that were **added in a later MCN release** than the one you target (see the `apiVersion` option below).
17
- - Functions that work in MCN AMPscript but have **no Handlebars equivalent**, so they cannot be carried over if you later migrate the content to Handlebars.
18
17
 
19
18
  Unknown function names are handled separately by [`sfmc/amp-no-unknown-function`](no-unknown-function.md); this rule only checks functions that actually exist in AMPscript.
20
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-sfmc",
3
- "version": "4.12.0",
3
+ "version": "4.14.0",
4
4
  "description": "ESLint plugin for Salesforce Marketing Cloud Engagement+Next - AMPscript, Server-Side JavaScript (SSJS) and Handlebars",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -37,12 +37,12 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@handlebars/parser": "^2.2.2",
40
- "ampscript-data": "^3.2.0",
40
+ "ampscript-data": "^3.4.0",
41
41
  "ampscript-parser": "^0.3.1",
42
42
  "eslint-plugin-mso-email": "^2.0.0",
43
43
  "handlebars-data": "^0.3.1",
44
44
  "mso-conditional-parser": "^2.0.1",
45
- "ssjs-data": "^1.5.1"
45
+ "ssjs-data": "^1.6.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "eslint": ">=9.0.0"
@@ -1,9 +1,8 @@
1
- import { functionNames, functionLookup, getMcnApiVersion } from 'ampscript-data';
1
+ import { functionNames, getMcnApiVersion } from 'ampscript-data';
2
2
 
3
3
  /**
4
4
  * Flags AMPscript functions that cannot be used when targeting Marketing Cloud
5
- * Next, and functions that work in MCN AMPscript but have no Handlebars
6
- * equivalent (so they block a Handlebars migration).
5
+ * Next.
7
6
  *
8
7
  * Each function carries an `mcnSince` value = the MCN API version it first
9
8
  * became available in, or `null`/unset when it was never supported in MCN.
@@ -30,8 +29,6 @@ export default {
30
29
  notSupportedInMcn: "'{{name}}' is not supported in Marketing Cloud Next.",
31
30
  tooNewForTarget:
32
31
  "'{{name}}' was introduced in Marketing Cloud Next API version {{since}}, which is newer than the targeted version {{target}}.",
33
- noHandlebarsEquivalent:
34
- "'{{name}}' is supported by Marketing Cloud Next AMPscript but has no Handlebars for Marketing Cloud Next equivalent. It cannot be migrated to a Handlebars helper.",
35
32
  },
36
33
  schema: [
37
34
  {
@@ -84,17 +81,6 @@ export default {
84
81
  target: String(apiVersion),
85
82
  },
86
83
  });
87
- return;
88
- }
89
-
90
- // Works in MCN AMPscript but has no Handlebars counterpart, so it
91
- // cannot be migrated to a Handlebars helper.
92
- if (functionLookup.get(lower)?.mcnHandlebarsGap === true) {
93
- context.report({
94
- node,
95
- messageId: 'noHandlebarsEquivalent',
96
- data: { name: node.name },
97
- });
98
84
  }
99
85
  },
100
86
  };