execonvert 0.5.2 → 0.5.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.
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,15 @@ Categorías usadas: **Añadido**, **Cambiado**, **Corregido**, **Eliminado**.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.5.3] - 2026-09-05
|
|
13
|
+
|
|
14
|
+
### Corregido
|
|
15
|
+
- Los `.elpx` generados desde `.docx` y `.md` se escribían sin comprimir, de
|
|
16
|
+
modo que ocupaban unas cuatro veces más de lo debido: un proyecto que
|
|
17
|
+
eXeLearning guarda en 2,4 MB salía de 10,3 MB. El empaquetado usa ahora el
|
|
18
|
+
mismo nivel de compresión habitual del formato, sin coste apreciable de
|
|
19
|
+
tiempo. Los archivos anteriores siguen abriéndose con normalidad.
|
|
20
|
+
|
|
12
21
|
## [0.5.2] - 2026-09-05
|
|
13
22
|
|
|
14
23
|
### Corregido
|
|
@@ -10,9 +10,9 @@ import { convertElpToElpx } from '../src/legacy-elp.js';
|
|
|
10
10
|
import { convertMarkdownToElpx } from '../src/markdown-import.js';
|
|
11
11
|
import { installCliRuntime } from './runtime.js';
|
|
12
12
|
import { automaticCheck, autoCheckAllowed, runUpdate, updateText } from './updates.js';
|
|
13
|
-
const CLI_VERSION = '0.5.
|
|
13
|
+
const CLI_VERSION = '0.5.3'.startsWith('__')
|
|
14
14
|
? String(JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8')).version)
|
|
15
|
-
: '0.5.
|
|
15
|
+
: '0.5.3';
|
|
16
16
|
const cliMessages = {
|
|
17
17
|
es: {
|
|
18
18
|
'help.title': 'CLI de eXeConvert',
|
|
@@ -440,7 +440,10 @@ function buildElpxFromTemplate(template, project) {
|
|
|
440
440
|
const { entries } = template;
|
|
441
441
|
entries['content.xml'] = new TextEncoder().encode(generateContentXml(project));
|
|
442
442
|
addPreviewHtmlEntries(entries, project);
|
|
443
|
-
|
|
443
|
+
// Stored entries made a .elpx four times bigger than the one eXeLearning
|
|
444
|
+
// writes for the same project. Level 6 is what the format is usually packed
|
|
445
|
+
// with, and the bundled runtime compresses well.
|
|
446
|
+
return zipSync(entries, { level: 6 });
|
|
444
447
|
}
|
|
445
448
|
function buildStandalonePreviewPages(project, entries, previewOptions = {}) {
|
|
446
449
|
const pages = getPreviewPages(project);
|