@giveitsmaller/sdk 0.14.0 → 0.15.0

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,8 +1,14 @@
1
1
  import type { ResolvedOptions } from '../builder.js';
2
2
  import type { OptimizeFor } from '../generated/sdk_spec/enums.js';
3
3
  import { type PresetDefaults, type PresetMedia, type PresetOp } from './presets/index.js';
4
- /** Bumped on any change to a `*PresetOptions.shippedDefaultsFor(...)` cell value. */
5
- export declare const PRESET_VERSION = "1.0";
4
+ /**
5
+ * Bumped on any change to a `*PresetOptions.shippedDefaultsFor(...)` cell value.
6
+ * Must track the contracts `sdk-spec/version.yaml` `presetVersion` (mirrored in
7
+ * the generated `sdk_spec/version.ts`). 1.0 → 1.2 on the contracts v2.71.0
8
+ * (video_compress `audioBitrate` dropped) + v2.73.0 (image Size/Balanced
9
+ * `outputFormat` Smallest/Auto → Original — VcPeRWdD facade self-422 guard) cuts.
10
+ */
11
+ export declare const PRESET_VERSION = "1.2";
6
12
  /**
7
13
  * Inputs to {@link resolveCompressOptions}. `media` selects which leaf
8
14
  * DTO drives sdkDefault + clientDefault lookups + invalid-combo
@@ -37,8 +37,14 @@
37
37
  import { sha256Hex } from '../sha256.js';
38
38
  import { GislConfigError } from '../errors.js';
39
39
  import { ImageCompressPresetOptions, AudioCompressPresetOptions, VideoCompressPresetOptions, DocumentPdfCompressPresetOptions, DocumentOfficeCompressPresetOptions, DocumentOdfCompressPresetOptions, DocumentEpubCompressPresetOptions, } from './presets/index.js';
40
- /** Bumped on any change to a `*PresetOptions.shippedDefaultsFor(...)` cell value. */
41
- export const PRESET_VERSION = '1.0';
40
+ /**
41
+ * Bumped on any change to a `*PresetOptions.shippedDefaultsFor(...)` cell value.
42
+ * Must track the contracts `sdk-spec/version.yaml` `presetVersion` (mirrored in
43
+ * the generated `sdk_spec/version.ts`). 1.0 → 1.2 on the contracts v2.71.0
44
+ * (video_compress `audioBitrate` dropped) + v2.73.0 (image Size/Balanced
45
+ * `outputFormat` Smallest/Auto → Original — VcPeRWdD facade self-422 guard) cuts.
46
+ */
47
+ export const PRESET_VERSION = '1.2';
42
48
  // ---------------------------------------------------------------------------
43
49
  // Wire-field alias map (declarative — NOT generic toSnakeCase).
44
50
  // ---------------------------------------------------------------------------
@@ -9,7 +9,7 @@ export const PRESETS = Object.freeze({
9
9
  "metadata": "All",
10
10
  "iccProfile": "Strip",
11
11
  "progressive": true,
12
- "outputFormat": "Smallest",
12
+ "outputFormat": "Original",
13
13
  }),
14
14
  Balanced: Object.freeze({
15
15
  "mode": "Auto",
@@ -17,7 +17,7 @@ export const PRESETS = Object.freeze({
17
17
  "metadata": "Sensitive",
18
18
  "iccProfile": "Preserve",
19
19
  "progressive": true,
20
- "outputFormat": "Auto",
20
+ "outputFormat": "Original",
21
21
  }),
22
22
  Quality: Object.freeze({
23
23
  "mode": "Lossless",
@@ -48,17 +48,14 @@ export const PRESETS = Object.freeze({
48
48
  Size: Object.freeze({
49
49
  "crf": 30,
50
50
  "preset": "Slow",
51
- "audioBitrate": "_96",
52
51
  }),
53
52
  Balanced: Object.freeze({
54
53
  "crf": 23,
55
54
  "preset": "Medium",
56
- "audioBitrate": "_128",
57
55
  }),
58
56
  Quality: Object.freeze({
59
57
  "crf": 18,
60
58
  "preset": "Slow",
61
- "audioBitrate": "_192",
62
59
  }),
63
60
  }),
64
61
  "document_pdf_compress": Object.freeze({
@@ -1,3 +1,3 @@
1
- export declare const SDK_SPEC_VERSION: "1.5.0";
2
- export declare const PRESET_VERSION: "1.0";
3
- export declare const PRESET_CONFIG_HASH: "sha256:3791bd2d0cd474c5029707f6e50480bf49be33899f7fc5c1a4e77edb136f6e95";
1
+ export declare const SDK_SPEC_VERSION: "1.7.0";
2
+ export declare const PRESET_VERSION: "1.2";
3
+ export declare const PRESET_CONFIG_HASH: "sha256:ef4d66a81920cec353633d788061a03f7c8891d622908c1bfca326679725e72b";
@@ -1,6 +1,6 @@
1
1
  // CODE GENERATED — DO NOT EDIT.
2
2
  // Source: compression_contracts/sdk-spec/ (see sdk-spec/README.md).
3
3
  // Regenerate with: scripts/generate.py.
4
- export const SDK_SPEC_VERSION = "1.5.0";
5
- export const PRESET_VERSION = "1.0";
6
- export const PRESET_CONFIG_HASH = "sha256:3791bd2d0cd474c5029707f6e50480bf49be33899f7fc5c1a4e77edb136f6e95";
4
+ export const SDK_SPEC_VERSION = "1.7.0";
5
+ export const PRESET_VERSION = "1.2";
6
+ export const PRESET_CONFIG_HASH = "sha256:ef4d66a81920cec353633d788061a03f7c8891d622908c1bfca326679725e72b";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giveitsmaller/sdk",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Node.js SDK for the GISL (Give It Smaller) file compression and processing API",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "dependencies": {
34
- "@giveitsmaller/contracts": "^0.18.0"
34
+ "@giveitsmaller/contracts": "^0.19.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^22",