diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json
index 7462a4e21556..6ec40a802bcd 100644
--- a/npm/linux-x64-musl/package.json
+++ b/npm/linux-x64-musl/package.json
@@ -1,6 +1,6 @@
{
"name": "@tarojs/binding-linux-x64-musl",
- "version": "3.6.28",
+ "version": "4.0.0-beta.61",
"os": [
"linux"
],
@@ -13,7 +13,7 @@
],
"license": "MIT",
"engines": {
- "node": ">= 16"
+ "node": ">= 18"
},
"libc": [
"musl"
diff --git a/packages/taro-cli-convertor/__tests__/__snapshots__/config.test.ts.snap b/packages/taro-cli-convertor/__tests__/__snapshots__/config.test.ts.snap
index feea5b4d1181..5a0b450afb99 100644
--- a/packages/taro-cli-convertor/__tests__/__snapshots__/config.test.ts.snap
+++ b/packages/taro-cli-convertor/__tests__/__snapshots__/config.test.ts.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`日志 生成日志 1`] = `
-INFO [taro-cli-convertor] parseAst - 入参
+"INFO [taro-cli-convertor] parseAst - 入参
{"sourceFilePath":"/wxProject/app.js","outputFilePath":"/wxProject/taroConvert/src/app.js","importStylePath":null,"imports":[]}
INFO [taro-cli-convertor] parseAst - 解析ImportDeclaration
import { Block } from "@tarojs/components";
@@ -243,13 +243,13 @@ INFO [taro-cli-convertor] parseAst - 解析VariableDeclaration
const {
motto
} = this.data;
-
+"
`;
exports[`转换报告 生成转换报告文件 1`] = `
Map {
- /wxProject/taroConvert/.convert => ,
- /wxProject/taroConvert/.convert/convert.log => INFO [taro-cli-convertor] parseAst - 入参
+ "/wxProject/taroConvert/.convert" => "",
+ "/wxProject/taroConvert/.convert/convert.log" => "INFO [taro-cli-convertor] parseAst - 入参
{"sourceFilePath":"/wxProject/app.js","outputFilePath":"/wxProject/taroConvert/src/app.js","importStylePath":null,"imports":[]}
INFO [taro-cli-convertor] parseAst - 解析ImportDeclaration
import { Block } from "@tarojs/components";
@@ -491,8 +491,8 @@ INFO [taro-cli-convertor] parseAst - 解析VariableDeclaration
const {
motto
} = this.data;
-,
- /wxProject/taroConvert/src/app.js => import withWeapp, { cacheOptions } from "@tarojs/with-weapp";
+",
+ "/wxProject/taroConvert/src/app.js" => "import withWeapp, { cacheOptions } from "@tarojs/with-weapp";
import { Block } from "@tarojs/components";
import React from "react";
import Taro from "@tarojs/taro";
@@ -503,10 +503,10 @@ class App extends React.Component {
return this.props.children;
}
}
-export default App;,
- /wxProject/taroConvert/src/app.config.js => export default { pages: ['pages/index/index'] }
-,
- /wxProject/taroConvert/src/pages/index/index.js => import withWeapp, { cacheOptions } from '@tarojs/with-weapp'
+export default App;",
+ "/wxProject/taroConvert/src/app.config.js" => "export default { pages: ['pages/index/index'] }
+",
+ "/wxProject/taroConvert/src/pages/index/index.js" => "import withWeapp, { cacheOptions } from '@tarojs/with-weapp'
import { Block, View, Text } from '@tarojs/components'
import React from 'react'
import Taro from '@tarojs/taro'
@@ -529,13 +529,13 @@ class _C extends React.Component {
}
}
export default _C
-,
- /wxProject/taroConvert/src/pages/index/index.config.js => export default {}
-,
- /wxProject/taroConvert/report => ,
- /wxProject/taroConvert/report/index.html =>
convert report
,
- /wxProject/taroConvert/report/static/js => ,
- /wxProject/taroConvert/report/static/js/bundle.js => /******/ (function() { / webpackBootstrap
+",
+ "/wxProject/taroConvert/src/pages/index/index.config.js" => "export default {}
+",
+ "/wxProject/taroConvert/report" => "",
+ "/wxProject/taroConvert/report/index.html" => "convert report
",
+ "/wxProject/taroConvert/report/static/js" => "",
+ "/wxProject/taroConvert/report/static/js/bundle.js" => "/******/ (function() { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 270:
@@ -544,7 +544,7 @@ export default _C
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
- http:/jedwatson.github.io/classnames
+ http://jedwatson.github.io/classnames
*/
/* global define */
@@ -586,7 +586,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
classNames.default = classNames;
module.exports = classNames;
} else if (true) {
- / register as 'classnames', consistent with npm package name
+ // register as 'classnames', consistent with npm package name
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
return classNames;
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
@@ -752,7 +752,7 @@ if (true) {
var aa = __webpack_require__(519),
ca = __webpack_require__(514);
function p(a) {
- for (var b = "https:/reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
+ for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
var da = new Set(),
@@ -767,7 +767,7 @@ function ha(a, b) {
}
var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement),
ja = Object.prototype.hasOwnProperty,
- ka = /^[:A-Z_a-z/u00C0-/u00D6/u00D8-/u00F6/u00F8-/u02FF/u0370-/u037D/u037F-/u1FFF/u200C-/u200D/u2070-/u218F/u2C00-/u2FEF/u3001-/uD7FF/uF900-/uFDCF/uFDF0-/uFFFD][:A-Z_a-z/u00C0-/u00D6/u00D8-/u00F6/u00F8-/u02FF/u0370-/u037D/u037F-/u1FFF/u200C-/u200D/u2070-/u218F/u2C00-/u2FEF/u3001-/uD7FF/uF900-/uFDCF/uFDF0-/uFFFD/-.0-9/u00B7/u0300-/u036F/u203F-/u2040]*$/,
+ ka = /^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,
la = {},
ma = {};
function oa(a) {
@@ -846,7 +846,7 @@ var z = {};
["rowSpan", "start"].forEach(function (a) {
z[a] = new v(a, 5, !1, a.toLowerCase(), null, !1, !1);
});
-var ra = /[/-:]([a-z])/g;
+var ra = /[\\-:]([a-z])/g;
function sa(a) {
return a[1].toUpperCase();
}
@@ -856,16 +856,16 @@ function sa(a) {
});
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) {
var b = a.replace(ra, sa);
- z[b] = new v(b, 1, !1, a, "http:/www.w3.org/1999/xlink", !1, !1);
+ z[b] = new v(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1);
});
["xml:base", "xml:lang", "xml:space"].forEach(function (a) {
var b = a.replace(ra, sa);
- z[b] = new v(b, 1, !1, a, "http:/www.w3.org/XML/1998/namespace", !1, !1);
+ z[b] = new v(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1);
});
["tabIndex", "crossOrigin"].forEach(function (a) {
z[a] = new v(a, 1, !1, a.toLowerCase(), null, !1, !1);
});
-z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http:/www.w3.org/1999/xlink", !0, !1);
+z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
["src", "href", "action", "formAction"].forEach(function (a) {
z[a] = new v(a, 1, !1, a.toLowerCase(), null, !0, !0);
});
@@ -904,10 +904,10 @@ function Ma(a) {
if (void 0 === La) try {
throw Error();
} catch (c) {
- var b = c.stack.trim().match(/n( *(at )?)/);
+ var b = c.stack.trim().match(/\\n( *(at )?)/);
La = b && b[1] || "";
}
- return "/n" + La + a;
+ return "\\n" + La + a;
}
var Na = !1;
function Oa(a, b) {
@@ -948,11 +948,11 @@ function Oa(a, b) {
}
} catch (l) {
if (l && d && "string" === typeof l.stack) {
- for (var e = l.stack.split("/n"), f = d.stack.split("/n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h];) h--;
+ for (var e = l.stack.split("\\n"), f = d.stack.split("\\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h];) h--;
for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) {
if (1 !== g || 1 !== h) {
do if (g--, h--, 0 > h || e[g] !== f[h]) {
- var k = "/n" + e[g].replace(" at new ", " at ");
+ var k = "\\n" + e[g].replace(" at new ", " at ");
a.displayName && k.includes("") && (k = k.replace("", a.displayName));
return k;
} while (1 <= g && 0 <= h);
@@ -1265,15 +1265,15 @@ function jb(a) {
function kb(a) {
switch (a) {
case "svg":
- return "http:/www.w3.org/2000/svg";
+ return "http://www.w3.org/2000/svg";
case "math":
- return "http:/www.w3.org/1998/Math/MathML";
+ return "http://www.w3.org/1998/Math/MathML";
default:
- return "http:/www.w3.org/1999/xhtml";
+ return "http://www.w3.org/1999/xhtml";
}
}
function lb(a, b) {
- return null == a || "http:/www.w3.org/1999/xhtml" === a ? kb(b) : "http:/www.w3.org/2000/svg" === a && "foreignObject" === b ? "http:/www.w3.org/1999/xhtml" : a;
+ return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a;
}
var mb,
nb = function (a) {
@@ -1283,7 +1283,7 @@ var mb,
});
} : a;
}(function (a, b) {
- if ("http:/www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;else {
+ if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;else {
mb = mb || document.createElement("div");
mb.innerHTML = "";
for (b = mb.firstChild; a.firstChild;) a.removeChild(a.firstChild);
@@ -3021,10 +3021,10 @@ function wf(a, b, c, d, e) {
listeners: g
});
}
-var xf = /r/n?/g,
- yf = /u0000|/uFFFD/g;
+var xf = /\\r\\n?/g,
+ yf = /\\u0000|\\uFFFD/g;
function zf(a) {
- return ("string" === typeof a ? a : "" + a).replace(xf, "/n").replace(yf, "");
+ return ("string" === typeof a ? a : "" + a).replace(xf, "\\n").replace(yf, "");
}
function Af(a, b, c) {
b = zf(b);
@@ -4627,7 +4627,7 @@ function Ki(a, b) {
do c += Pa(d), d = d.return; while (d);
var e = c;
} catch (f) {
- e = "/nError generating stack: " + f.message + "/n" + f.stack;
+ e = "\\nError generating stack: " + f.message + "\\n" + f.stack;
}
return {
value: a,
@@ -5396,8 +5396,8 @@ function Fj(a, b, c) {
null !== d && (b.flags |= 4);
} else {
g = 9 === e.nodeType ? e : e.ownerDocument;
- "http:/www.w3.org/1999/xhtml" === a && (a = kb(c));
- "http:/www.w3.org/1999/xhtml" === a ? "script" === c ? (a = g.createElement("div"), a.innerHTML = "