@automattic/jetpack-image-guide 1.0.18 → 1.0.20

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.20] - 2026-09-14
9
+ ### Changed
10
+ - Update package dependencies. [#51399]
11
+
12
+ ## [1.0.19] - 2026-08-14
13
+ ### Changed
14
+ - Update package dependencies. [#50510]
15
+ - Update package dependencies. [#50751]
16
+ - Update package dependencies. [#50753]
17
+ - Update package dependencies. [#51008]
18
+
8
19
  ## [1.0.18] - 2026-06-26
9
20
  ### Changed
10
21
  - Internal updates.
@@ -259,6 +270,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
259
270
  ### Removed
260
271
  - Minor package.json change - removing private entry.
261
272
 
273
+ [1.0.20]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.19...v1.0.20
274
+ [1.0.19]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.18...v1.0.19
262
275
  [1.0.18]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.17...v1.0.18
263
276
  [1.0.17]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.16...v1.0.17
264
277
  [1.0.16]: https://github.com/Automattic/jetpack-image-guide/compare/v1.0.15...v1.0.16
package/SECURITY.md CHANGED
@@ -16,6 +16,7 @@ Our HackerOne program covers the below plugin software, as well as a variety of
16
16
  * Jetpack Protect
17
17
  * Jetpack Search
18
18
  * Jetpack Social
19
+ * Jetpack Stats
19
20
  * Jetpack VideoPress
20
21
 
21
22
  **For responsible disclosure of security issues and to be eligible for our bug bounty program, please submit your report via the [HackerOne](https://hackerone.com/automattic) portal.**
@@ -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.18",
3
+ "version": "1.0.20",
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",
51
- "concurrently": "10.0.3",
50
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
51
+ "concurrently": "10.0.5",
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