@needle-tools/gltf-build-pipeline 1.2.1 → 1.2.2

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
@@ -4,6 +4,9 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.2.2] - 2023-08-14
8
+ - remove: legacy squoosh dependency
9
+
7
10
  ## [1.2.1] - 2023-07-25
8
11
  - change: set reference to materials used by json pointers
9
12
 
@@ -1,21 +1,5 @@
1
- import { WebPEncoderOptions } from "./types/squoosh.js";
2
1
  import sharp from 'sharp';
3
2
  import { BufferUtils, HTTPUtils } from '@gltf-transform/core';
4
- var Codec;
5
- (function (Codec) {
6
- Codec["OXIPNG"] = "oxipng";
7
- Codec["MOZJPEG"] = "mozjpeg";
8
- Codec["WEBP"] = "webp";
9
- })(Codec || (Codec = {}));
10
- const CODEC_TO_MIME_TYPE = {
11
- [Codec.OXIPNG]: 'image/png',
12
- [Codec.MOZJPEG]: 'image/jpeg',
13
- [Codec.WEBP]: 'image/webp',
14
- };
15
- const defaultWebpCodecOptions = new WebPEncoderOptions();
16
- defaultWebpCodecOptions.quality = 90;
17
- defaultWebpCodecOptions.filter_type = 0; // turn strong filter off
18
- defaultWebpCodecOptions.use_sharp_yuv = 1; // use sharp rgb -> YUV conversion
19
3
  export class NeedleWebPContext {
20
4
  options;
21
5
  logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/gltf-build-pipeline",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
5
5
  "main": "index.mjs",
6
6
  "type": "module",
@@ -19,7 +19,6 @@
19
19
  "@gltf-transform/core": "^3.4.6",
20
20
  "@gltf-transform/extensions": "^3.4.6",
21
21
  "@gltf-transform/functions": "^3.4.6",
22
- "@squoosh/lib": "^0.4.0",
23
22
  "command-exists": "^1.2.9",
24
23
  "command-line-args": "^5.2.1",
25
24
  "draco3dgltf": "^1.5.3",