any2orca 0.4.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # any2orca
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Features
6
+
7
+ - **Converting is faster, most of all on slower machines.** Writing the converted file took more than half of a large conversion's time: every mesh file was recompressed at the slowest setting, for a file a few percent smaller. The converter now uses a faster setting. A 102.6 MB real project converts in 30 seconds instead of 58 on the same laptop, with the file 0.2% larger; the saving is the same share of the time on any machine, so an older computer, or a phone running the web app, gains the most seconds. Every entry in the converted file is the same as before, byte for byte. Only the zip wrapper's bytes differ, so a hash of the whole file changes; the output is still the same for the same input and options.
8
+
3
9
  ## 0.4.0
4
10
 
5
11
  ### Features
@@ -158,6 +158,12 @@ export function applyConvertResponse(parsed, response, extraEntries = {}) {
158
158
  // bytes (stable checksums in a publish step), and a converted file doesn't
159
159
  // record when, or in which time zone, it was converted. Zip times are local
160
160
  // clock fields, so a Date built from local fields encodes identically everywhere.
161
- return zipSync(outputEntries, { level: 9, mtime: FIXED_ENTRY_TIME });
161
+ //
162
+ // Level 6, not 9: on a 100 MB project, level 9 spent three fifths of the whole
163
+ // conversion recompressing mesh files the conversion never changes, for files
164
+ // a few percent smaller. Level 6 halves the time. Every entry's content is the
165
+ // same at any level; only the zip's bytes differ.
166
+ return zipSync(outputEntries, { level: OUTPUT_DEFLATE_LEVEL, mtime: FIXED_ENTRY_TIME });
162
167
  }
168
+ const OUTPUT_DEFLATE_LEVEL = 6;
163
169
  const FIXED_ENTRY_TIME = new Date(2000, 0, 1, 0, 0, 0);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.4.1";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  // Written by scripts/sync-version.mjs from package.json; a test checks they match.
3
- export const VERSION = "0.4.0";
3
+ export const VERSION = "0.4.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "any2orca",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Convert Bambu Studio, Creality Print, Anycubic Slicer Next, ElegooSlicer and Flash Studio 3MF projects for the Snapmaker U1 (Snapmaker Orca), entirely on your own machine. Library, CLI and Web Worker in one package.",
5
5
  "keywords": [
6
6
  "3mf",