@automattic/jetpack-image-guide 1.0.17 → 1.0.19

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
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.19] - 2026-08-14
9
+ ### Changed
10
+ - Update package dependencies. [#50510]
11
+ - Update package dependencies. [#50751]
12
+ - Update package dependencies. [#50753]
13
+ - Update package dependencies. [#51008]
14
+
15
+ ## [1.0.18] - 2026-06-26
16
+ ### Changed
17
+ - Internal updates.
18
+
8
19
  ## [1.0.17] - 2026-06-24
9
20
  ### Changed
10
21
  - Update package dependencies. [#49757]
@@ -255,6 +266,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
255
266
  ### Removed
256
267
  - Minor package.json change - removing private entry.
257
268
 
269
+ [1.0.19]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.18...v1.0.19
270
+ [1.0.18]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.17...v1.0.18
258
271
  [1.0.17]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.16...v1.0.17
259
272
  [1.0.16]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.15...v1.0.16
260
273
  [1.0.15]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.14...v1.0.15
@@ -47,7 +47,21 @@ export declare class MeasurableImage {
47
47
  height: number;
48
48
  };
49
49
  getOversizedRatio(fileSize: Dimensions, sizeOnPage: Dimensions): number;
50
+ /**
51
+ * Fetches the weight of the image at the given URL,
52
+ * by reading the Content-Length header.
53
+ *
54
+ * @param {string} url - string The URL of the image.
55
+ * @return {number} Weight.
56
+ */
50
57
  private fetchFileWeight;
58
+ /**
59
+ * Fetches the dimensions of the image at the given URL,
60
+ * This creates a new image element and loads the image.
61
+ *
62
+ * @param {string} url - image url
63
+ * @return {object} dimensions File dimensions.
64
+ */
51
65
  private fetchFileDimensions;
52
66
  /**
53
67
  * Checks if the image is too small and should be ignored. Will return true on images
@@ -1,7 +1,7 @@
1
1
  import { type Writable } from 'svelte/store';
2
2
  declare const store: {
3
- readonly active: "Active";
4
- readonly paused: "Paused";
3
+ readonly active: 'Active';
4
+ readonly paused: 'Paused';
5
5
  };
6
6
  type State = keyof typeof store;
7
7
  type CyclableStore = Writable<State> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-image-guide",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Go through the dom to analyze image size on screen vs actual file size.",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/image-guide/#readme",
6
6
  "bugs": {
@@ -47,19 +47,19 @@
47
47
  "@rollup/plugin-replace": "5.0.2",
48
48
  "@rollup/plugin-terser": "1.0.0",
49
49
  "@rollup/plugin-typescript": "12.1.0",
50
- "@typescript/native-preview": "7.0.0-dev.20260225.1",
50
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
51
51
  "concurrently": "10.0.3",
52
52
  "jest": "30.4.2",
53
- "postcss": "8.5.14",
53
+ "postcss": "8.5.23",
54
54
  "rollup": "3.30.0",
55
55
  "rollup-plugin-postcss": "4.0.2",
56
56
  "rollup-plugin-svelte": "7.2.2",
57
57
  "sass": "npm:sass-embedded@^1.97.2",
58
58
  "svelte": "5.55.7",
59
- "svelte-preprocess": "6.0.2",
59
+ "svelte-preprocess": "6.0.5",
60
60
  "tslib": "2.8.1",
61
- "typescript": "5.9.3",
61
+ "typescript": "6.0.3",
62
62
  "webpack": "5.107.2",
63
- "webpack-cli": "6.0.1"
63
+ "webpack-cli": "7.2.1"
64
64
  }
65
65
  }
package/rollup.config.js CHANGED
@@ -84,7 +84,7 @@ export default {
84
84
  // In order to let @rollup/plugin-typescript hanlde TS files from js-packages
85
85
  // we need to include those here and pass the custom tsconfig as well
86
86
  include: [ './src/**/*' ],
87
- tsconfig: 'tsconfig.json',
87
+ tsconfig: 'tsconfig.rollup.json',
88
88
  declaration: true,
89
89
  } ),
90
90