Skip to content

Bump image-size from 1.2.1 to 2.0.2#431

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/image-size-2.0.2
Open

Bump image-size from 1.2.1 to 2.0.2#431
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/image-size-2.0.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 1, 2025

Bumps image-size from 1.2.1 to 2.0.2.

Release notes

Sourced from image-size's releases.

v2.0.2

Fixes

Full Changelog: image-size/image-size@v2.0.1...v2.0.2

v2.0.1

Full Changelog: image-size/image-size@v2.0.0...v2.0.1

v2.0.0

The release

  • Adds dual support for CJS and ESM, switches from Buffer to UInt8Array, uses DataView for reads, and can therefore now also be used in browsers
  • Removes all dependencies
  • Introduces some performance improvements
  • Drops synchronous API.

Please see the Readme for the usage examples.

Full Changelog: image-size/image-size@v1.2.0...v2.0.0

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [image-size](https://github.com/image-size/image-size) from 1.2.1 to 2.0.2.
- [Release notes](https://github.com/image-size/image-size/releases)
- [Commits](image-size/image-size@v1.2.1...v2.0.2)

---
updated-dependencies:
- dependency-name: image-size
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the image-size dependency from version 1.2.1 to 2.0.2, which is a major version bump that includes security fixes, performance improvements, and API changes including the removal of synchronous APIs.

Key changes:

  • Updates image-size from ^1.2.0 to ^2.0.2 in package.json
  • Incorporates security fixes for potential Denial of Service vulnerabilities
  • Adopts breaking changes including removal of synchronous API and switch from Buffer to UInt8Array

"axios": "^1.8.4",
"compare-versions": "^6.1.1",
"image-size": "^1.2.0",
"image-size": "^2.0.2",
Copy link

Copilot AI Sep 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This major version update removes the synchronous API from image-size. You need to verify that all usage of image-size in the codebase has been updated to use the asynchronous API, as synchronous calls like imageSize(buffer) will no longer work and need to be replaced with await imageSize(buffer) or Promise-based patterns.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please evalute the required changes to existing code when merging this PR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot
Please evalute the required changes to existing code when merging this PR

@mcm1957
Copy link
Collaborator

mcm1957 commented Sep 27, 2025

@copilot
please evaluate compatibility with existing code

@ioBroker-Bot
Copy link

@dependabot recreate

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 1, 2026

Sorry, only users with push access can use that command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants