Skip to content

chore(deps-dev): bump @openzeppelin/hardhat-upgrades from 3.9.1 to 4.0.0#84

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/openzeppelin/hardhat-upgrades-4.0.0
Closed

chore(deps-dev): bump @openzeppelin/hardhat-upgrades from 3.9.1 to 4.0.0#84
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/openzeppelin/hardhat-upgrades-4.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Copy link
Copy Markdown
Contributor

Bumps @openzeppelin/hardhat-upgrades from 3.9.1 to 4.0.0.

Release notes

Sourced from @​openzeppelin/hardhat-upgrades's releases.

@​openzeppelin/hardhat-upgrades@​4.0.0

  • Migrate to Hardhat 3 with ESM module structure and plugin hooks architecture. (#1241)

    Breaking Changes

    • Requires Hardhat 3: minimum hardhat@^3.6.0 required.
    • ESM-only: package converted to ESM; CommonJS is no longer supported.
    • API Changes:
      • No automatic hre.upgrades — call the upgrades(hre, connection) factory explicitly.
      • Factory functions (upgrades, defender) are async and require a network connection.
      • Network connection must be explicitly created: const connection = await hre.network.connect(). Share one connection across operations.
      • ethers now comes from the connection (const { ethers } = connection), not hre.ethers.
    • Import Changes: import factory functions instead of a side-effect import.
      • Before: import '@openzeppelin/hardhat-upgrades'
      • After: import { upgrades, defender } from '@openzeppelin/hardhat-upgrades'

    Usage and Migration

    See the README for Hardhat 3 usage, the examples directory for sample projects, and the Migration Guide for Hardhat 2 to 3 migration steps.

    Changes

    • Migrated from extendEnvironment to Hardhat 3's HardhatPlugin with hookHandlers.
    • Converted package to ESM.
    • Etherscan verification requires @nomicfoundation/hardhat-verify@^3.0.10 (optional peer dependency).
    • Support Solidity tests in Hardhat 3 with @openzeppelin/foundry-upgrades.
    • Added example projects for Hardhat 3 (Transparent, UUPS, and Solidity-test scaffolds under packages/plugin-hardhat/examples/).
  • Updated dependencies [7f3e4c6, 668f70c]:

    • @​openzeppelin/upgrades-core@​1.45.0

@​openzeppelin/hardhat-upgrades@​4.0.0-alpha.0

Note ⚠️ This version is still in testing. Do not use it to deploy or upgrade production deployments.

  • Migrate to Hardhat 3 with ESM module structure and plugin hooks architecture. (#1194)

    Breaking Changes

    • Requires Hardhat 3: Minimum hardhat@^3.0.0 required
    • ESM-only: Package converted to ESM, CommonJS no longer supported
    • API Changes:
      • No automatic hre.upgrades - must call factory function explicitly
      • Factory functions are async: await upgrades(hre, connection)
      • Network connection must be explicitly created: await hre.network.connect()
      • ethers now comes from connection, not hre.ethers
    • Import Changes: Import factory functions instead of side-effect import
      • Before: import '@openzeppelin/hardhat-upgrades'
      • After: import { upgrades, defender } from '@openzeppelin/hardhat-upgrades'

    Usage and Migration

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​openzeppelin/hardhat-upgrades since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)

Bumps [@openzeppelin/hardhat-upgrades](https://github.com/OpenZeppelin/openzeppelin-upgrades) from 3.9.1 to 4.0.0.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-upgrades/releases)
- [Commits](https://github.com/OpenZeppelin/openzeppelin-upgrades/compare/@openzeppelin/hardhat-upgrades@3.9.1...@openzeppelin/hardhat-upgrades@4.0.0)

---
updated-dependencies:
- dependency-name: "@openzeppelin/hardhat-upgrades"
  dependency-version: 4.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 2, 2026
@CassianK CassianK closed this Jun 4, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@CassianK CassianK reopened this Jun 4, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #85.

@dependabot dependabot Bot closed this Jun 8, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/openzeppelin/hardhat-upgrades-4.0.0 branch June 8, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant