@marko/compiler 5.28.2 → 5.28.3

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.
@@ -233,26 +233,6 @@ function getMarkoFile(code, fileOpts, markoOpts) {
233
233
  file.___compileStage = "migrate";
234
234
  traverseAll(file, rootMigrators);
235
235
 
236
- const { applyFixes } = markoOpts;
237
- if (applyFixes) {
238
- for (let i = 0; i < meta.diagnostics.length; i++) {
239
- const diag = meta.diagnostics[i];
240
- if (diag.fix) {
241
- if (applyFixes.has(i)) {
242
- (typeof diag.fix === "function" ? diag.fix : diag.fix.apply)(
243
- applyFixes.get(i));
244
-
245
- }
246
- }
247
- }
248
- } else {
249
- for (const diag of meta.diagnostics) {
250
- if (diag.fix) {
251
- (typeof diag.fix === "function" ? diag.fix : diag.fix.apply)(undefined);
252
- }
253
- }
254
- }
255
-
256
236
  if (isMigrate) {
257
237
  return file;
258
238
  }
@@ -385,29 +365,4 @@ function isMarkoOutput(output) {
385
365
 
386
366
  function finalizeMeta(meta) {
387
367
  meta.watchFiles = [...new Set(meta.watchFiles)];
388
- meta.diagnostics = meta.diagnostics.map(
389
- ({ type, label, loc, fix: rawFix }) => {
390
- let fix = false;
391
-
392
- switch (typeof rawFix) {
393
- case "function":
394
- fix = true;
395
- break;
396
- case "object":
397
- // strip off the apply function.
398
- ({
399
- // eslint-disable-next-line no-empty-pattern
400
- apply: {},
401
- ...fix
402
- } = rawFix);
403
- break;}
404
-
405
- return {
406
- type,
407
- label,
408
- loc,
409
- fix
410
- };
411
- });
412
-
413
368
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
3
  "description": "Marko template to JS compiler.",
4
- "version": "5.28.2",
4
+ "version": "5.28.3",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
7
7
  "dependencies": {
@@ -15,7 +15,7 @@
15
15
  "@babel/runtime": "^7.16.0",
16
16
  "@babel/traverse": "^7.16.0",
17
17
  "@babel/types": "^7.16.0",
18
- "@marko/babel-utils": "^5.22.0",
18
+ "@marko/babel-utils": "^5.22.1",
19
19
  "complain": "^1.6.0",
20
20
  "he": "^1.2.0",
21
21
  "htmljs-parser": "^5.4.3",
@@ -30,7 +30,7 @@
30
30
  "strip-json-comments": "^3.1.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@marko/translator-default": "^5.26.2"
33
+ "@marko/translator-default": "^5.26.3"
34
34
  },
35
35
  "files": [
36
36
  "dist",