svelteesp32 2.0.0 → 2.0.1
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.
- package/README.md +1 -0
- package/dist/commandLine.js +4 -2
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -79,6 +79,7 @@ void setup() {
|
|
|
79
79
|
|
|
80
80
|
## What's New
|
|
81
81
|
|
|
82
|
+
- **v2.0.1** — Dependency updates (ESLint v10, eslint-plugin-unicorn 63), improved error cause chaining
|
|
82
83
|
- **v2.0.0** — **BREAKING**: PsychicHttpServer V2 is now the default `psychic` engine. The `psychic2` engine has been removed. Dry run mode, C++ identifier validation, improved MIME type warnings
|
|
83
84
|
- **v1.16.0** — Size budget constraints (`--maxsize`, `--maxgzipsize`)
|
|
84
85
|
- **v1.15.0** — `--basepath` for multiple frontends (e.g., `/admin`, `/app`)
|
package/dist/commandLine.js
CHANGED
|
@@ -151,7 +151,9 @@ function parsePackageJson(packageJsonPath) {
|
|
|
151
151
|
return JSON.parse(content);
|
|
152
152
|
}
|
|
153
153
|
catch (error) {
|
|
154
|
-
throw new Error(`Failed to parse package.json at ${packageJsonPath}: ${error.message}
|
|
154
|
+
throw new Error(`Failed to parse package.json at ${packageJsonPath}: ${error.message}`, {
|
|
155
|
+
cause: error
|
|
156
|
+
});
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
159
|
function getNpmPackageVariable(packageJson, variableName) {
|
|
@@ -242,7 +244,7 @@ function loadRcFile(rcPath) {
|
|
|
242
244
|
}
|
|
243
245
|
catch (error) {
|
|
244
246
|
if (error instanceof SyntaxError)
|
|
245
|
-
throw new Error(`Invalid JSON in RC file ${rcPath}: ${error.message}
|
|
247
|
+
throw new Error(`Invalid JSON in RC file ${rcPath}: ${error.message}`, { cause: error });
|
|
246
248
|
throw error;
|
|
247
249
|
}
|
|
248
250
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelteesp32",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Convert Svelte (or any frontend) JS application to serve it from ESP32 webserver (PsychicHttp)",
|
|
5
5
|
"author": "BCsabaEngine",
|
|
6
6
|
"license": "ISC",
|
|
@@ -58,16 +58,18 @@
|
|
|
58
58
|
"espasyncwebserver"
|
|
59
59
|
],
|
|
60
60
|
"devDependencies": {
|
|
61
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
62
|
+
"@eslint/js": "^10.0.0",
|
|
61
63
|
"@types/mime-types": "^3.0.1",
|
|
62
|
-
"@types/node": "^25.
|
|
64
|
+
"@types/node": "^25.3.0",
|
|
63
65
|
"@types/picomatch": "^4.0.2",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
65
|
-
"@typescript-eslint/parser": "^8.
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
67
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
66
68
|
"@vitest/coverage-v8": "^4.0.18",
|
|
67
|
-
"eslint": "^
|
|
69
|
+
"eslint": "^10.0.0",
|
|
68
70
|
"eslint-config-prettier": "^10.1.8",
|
|
69
71
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
70
|
-
"eslint-plugin-unicorn": "^
|
|
72
|
+
"eslint-plugin-unicorn": "^63.0.0",
|
|
71
73
|
"memfs": "^4.56.10",
|
|
72
74
|
"nodemon": "^3.1.11",
|
|
73
75
|
"prettier": "^3.8.1",
|