@happyvertical/images 0.101.3 → 0.102.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.
@@ -1,4 +1,12 @@
1
- import { ConvertOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ImageProcessorInterface, ImgproxyOptions, ResizeOptions, ThumbnailOptions } from '../shared/types.js';
1
+ /**
2
+ * imgproxy adapter for remote image processing
3
+ *
4
+ * Uses a self-hosted imgproxy server for scalable image processing.
5
+ * Ideal for enterprise deployments where processing is offloaded to dedicated servers.
6
+ *
7
+ * @see https://imgproxy.net/
8
+ */
9
+ import type { ConvertOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ImageProcessorInterface, ImgproxyOptions, ResizeOptions, ThumbnailOptions } from '../shared/types.js';
2
10
  /**
3
11
  * Options for generating signed imgproxy URLs
4
12
  */
@@ -1,4 +1,9 @@
1
- import { ConvertOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ImageProcessorInterface, JimpOptions, ResizeOptions, ThumbnailOptions } from '../shared/types.js';
1
+ /**
2
+ * Jimp adapter for image processing
3
+ * Uses pure JavaScript for image processing (no native dependencies)
4
+ * Ideal for serverless/edge environments where Sharp cannot be used
5
+ */
6
+ import type { ConvertOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ImageProcessorInterface, JimpOptions, ResizeOptions, ThumbnailOptions } from '../shared/types.js';
2
7
  /**
3
8
  * Jimp adapter for pure JavaScript image processing
4
9
  *
@@ -1,4 +1,8 @@
1
- import { ConvertOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ImageProcessorInterface, ResizeOptions, SharpOptions, ThumbnailOptions } from '../shared/types.js';
1
+ /**
2
+ * Sharp adapter for image processing
3
+ * Uses the native sharp library for fast image processing
4
+ */
5
+ import type { ConvertOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ImageProcessorInterface, ResizeOptions, SharpOptions, ThumbnailOptions } from '../shared/types.js';
2
6
  /**
3
7
  * Sharp adapter for high-performance image processing
4
8
  *
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { ConvertOptions, GetImageProcessorOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ResizeOptions, ThumbnailOptions } from './shared/types.js';
2
1
  /**
3
2
  * @happyvertical/images - Image processing utilities with adapter pattern
4
3
  *
@@ -50,6 +49,7 @@ export { generateHeadlineCard, type HeadlineCardOptions, type HeadlineCardResult
50
49
  export * from './shared/errors.js';
51
50
  export { getAvailableAdapters, getImageProcessor } from './shared/factory.js';
52
51
  export * from './shared/types.js';
52
+ import type { ConvertOptions, GetImageProcessorOptions, HashAlgorithm, ImageDimensions, ImageInput, ImageMetadata, ResizeOptions, ThumbnailOptions } from './shared/types.js';
53
53
  /**
54
54
  * Reset the cached processor (useful for testing)
55
55
  */
@@ -1,4 +1,7 @@
1
- import { GetImageProcessorOptions, ImageProcessorInterface } from './types.js';
1
+ /**
2
+ * Factory function for creating image processor instances
3
+ */
4
+ import type { GetImageProcessorOptions, ImageProcessorInterface } from './types.js';
2
5
  /**
3
6
  * Creates an image processor instance based on the provided options.
4
7
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/images",
3
- "version": "0.101.3",
3
+ "version": "0.102.1",
4
4
  "description": "Image processing utilities with adapter pattern for scaling from static to enterprise",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",