marko 5.39.35 → 5.39.36

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.
@@ -1,10 +1,8 @@
1
1
  "use strict";exports.__esModule = true;exports.default = _default;var _compiler = require("@marko/compiler");
2
- var _he = _interopRequireDefault(require("he"));
3
-
4
-
2
+ var _babelUtils = require("@marko/compiler/babel-utils");
5
3
 
6
4
  var _vdomOutWrite = _interopRequireDefault(require("../util/vdom-out-write"));
7
- var _withPreviousLocation = _interopRequireDefault(require("../util/with-previous-location"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}const { decode } = _he.default;
5
+ var _withPreviousLocation = _interopRequireDefault(require("../util/with-previous-location"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}
8
6
 
9
7
  function _default(path) {
10
8
  const { node } = path;
@@ -13,7 +11,7 @@ function _default(path) {
13
11
  (0, _withPreviousLocation.default)(
14
12
  (0, _vdomOutWrite.default)(
15
13
  "t",
16
- _compiler.types.stringLiteral(decode(node.value)),
14
+ _compiler.types.stringLiteral((0, _babelUtils.decodeHTML)(node.value)),
17
15
  path.hub.file._componentInstanceIdentifier
18
16
  ),
19
17
  node
@@ -6,13 +6,11 @@ var _babelUtils = require("@marko/compiler/babel-utils");
6
6
 
7
7
 
8
8
 
9
- var _he = _interopRequireDefault(require("he"));
10
-
11
9
 
12
10
 
13
11
  var _attributes = _interopRequireDefault(require("../tag/native-tag[vdom]/attributes"));
14
12
  var _keyManager = require("./key-manager");
15
- var _vdomOutWrite = _interopRequireDefault(require("./vdom-out-write"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}const { decode } = _he.default;
13
+ var _vdomOutWrite = _interopRequireDefault(require("./vdom-out-write"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}
16
14
 
17
15
  const skipDirectives = new Set([
18
16
  "key",
@@ -29,7 +27,7 @@ const mergeStaticCreateVisitor = {
29
27
  const { node } = path;
30
28
  state.currentRoot = _compiler.types.callExpression(
31
29
  _compiler.types.memberExpression(state.currentRoot, _compiler.types.identifier("t")),
32
- [_compiler.types.stringLiteral(decode(node.value))]
30
+ [_compiler.types.stringLiteral((0, _babelUtils.decodeHTML)(node.value))]
33
31
  );
34
32
  },
35
33
  MarkoPlaceholder(path, state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.39.35",
3
+ "version": "5.39.36",
4
4
  "private": false,
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "keywords": [
@@ -67,15 +67,14 @@
67
67
  },
68
68
  "types": "index.d.ts",
69
69
  "dependencies": {
70
- "@marko/compiler": "^5.42.1",
71
- "@marko/runtime-tags": "^6.3.41",
70
+ "@marko/compiler": "^5.42.2",
71
+ "@marko/runtime-tags": "^6.3.44",
72
72
  "app-module-path": "^2.2.0",
73
73
  "argly": "^1.2.0",
74
74
  "browser-refresh-client": "1.1.4",
75
75
  "complain": "^1.6.1",
76
76
  "csstype": "^3.2.3",
77
77
  "events-light": "^1.0.5",
78
- "he": "^1.2.0",
79
78
  "listener-tracker": "^2.0.0",
80
79
  "magic-string": "^0.30.21",
81
80
  "minimatch": "^10.2.5",
@@ -85,7 +84,7 @@
85
84
  "warp10": "^2.1.0"
86
85
  },
87
86
  "devDependencies": {
88
- "marko": "5.39.35"
87
+ "marko": "5.39.36"
89
88
  },
90
89
  "engines": {
91
90
  "node": ">=22"
@@ -1,7 +1,5 @@
1
1
  import { types as t } from "@marko/compiler";
2
- import he from "he";
3
-
4
- const { decode } = he;
2
+ import { decodeHTML } from "@marko/compiler/babel-utils";
5
3
 
6
4
  import write from "../util/vdom-out-write";
7
5
  import withPreviousLocation from "../util/with-previous-location";
@@ -13,7 +11,7 @@ export default function (path) {
13
11
  withPreviousLocation(
14
12
  write(
15
13
  "t",
16
- t.stringLiteral(decode(node.value)),
14
+ t.stringLiteral(decodeHTML(node.value)),
17
15
  path.hub.file._componentInstanceIdentifier,
18
16
  ),
19
17
  node,
@@ -6,9 +6,7 @@ import {
6
6
  isLoopTag,
7
7
  isNativeTag,
8
8
  } from "@marko/compiler/babel-utils";
9
- import he from "he";
10
-
11
- const { decode } = he;
9
+ import { decodeHTML } from "@marko/compiler/babel-utils";
12
10
 
13
11
  import translateAttributes from "../tag/native-tag[vdom]/attributes";
14
12
  import { getKeyManager, hasUserKey } from "./key-manager";
@@ -29,7 +27,7 @@ const mergeStaticCreateVisitor = {
29
27
  const { node } = path;
30
28
  state.currentRoot = t.callExpression(
31
29
  t.memberExpression(state.currentRoot, t.identifier("t")),
32
- [t.stringLiteral(decode(node.value))],
30
+ [t.stringLiteral(decodeHTML(node.value))],
33
31
  );
34
32
  },
35
33
  MarkoPlaceholder(path, state) {