From 69c8def5f222ff96f2b5beff05dfba996368aa79 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
 <41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 17 Oct 2024 13:52:59 +0200
Subject: [PATCH] Release v5.1.0 (#5265)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
---
 .changeset/chilled-walls-develop.md           |  5 --
 .changeset/chilly-humans-warn.md              |  5 --
 .changeset/cold-cheetahs-check.md             |  5 --
 .changeset/cool-mangos-compare.md             |  5 --
 .changeset/curvy-crabs-repeat.md              |  5 --
 .changeset/dirty-cobras-smile.md              |  5 --
 .changeset/eight-eyes-burn.md                 |  5 --
 .changeset/eleven-planets-relax.md            |  5 --
 .changeset/flat-turtles-repeat.md             |  5 --
 .changeset/fluffy-buses-jump.md               |  5 --
 .changeset/fluffy-steaks-exist.md             |  5 --
 .changeset/forty-dodos-visit.md               |  5 --
 .changeset/friendly-nails-push.md             |  5 --
 .changeset/gentle-bulldogs-turn.md            |  5 --
 .changeset/gorgeous-badgers-vanish.md         |  5 --
 .changeset/great-pianos-work.md               |  5 --
 .changeset/heavy-baboons-give.md              |  5 --
 .changeset/kind-planets-cough.md              |  5 --
 .changeset/light-news-listen.md               |  5 --
 .changeset/lucky-crews-eat.md                 |  5 --
 .changeset/nervous-eyes-teach.md              |  5 --
 .changeset/nervous-pans-grow.md               |  5 --
 .changeset/nice-paws-pull.md                  |  5 --
 .changeset/odd-files-protect.md               |  5 --
 .changeset/odd-lobsters-wash.md               |  5 --
 .changeset/poor-chefs-cheat.md                |  5 --
 .changeset/pre.json                           | 53 -------------------
 .changeset/serious-carrots-provide.md         |  5 --
 .changeset/shiny-poets-whisper.md             |  5 --
 .changeset/silver-swans-promise.md            |  5 --
 .changeset/smart-bugs-switch.md               |  5 --
 .changeset/spotty-falcons-explain.md          |  5 --
 .changeset/spotty-queens-own.md               |  5 --
 .changeset/strong-singers-talk.md             |  5 --
 .changeset/thick-pumpkins-report.md           |  5 --
 .changeset/thin-walls-drop.md                 |  5 --
 .changeset/tricky-bats-pretend.md             |  5 --
 .changeset/twenty-feet-grin.md                |  5 --
 .changeset/violet-moons-tell.md               |  5 --
 .changeset/warm-sheep-cover.md                |  5 --
 .changeset/wise-bobcats-speak.md              |  5 --
 .changeset/witty-chicken-smile.md             |  5 --
 .changeset/yellow-deers-walk.md               |  5 --
 .changeset/yellow-moles-hammer.md             |  5 --
 .changeset/yellow-tables-sell.md              |  5 --
 CHANGELOG.md                                  |  7 +--
 contracts/access/IAccessControl.sol           |  2 +-
 contracts/access/Ownable2Step.sol             |  2 +-
 .../extensions/AccessControlEnumerable.sol    |  2 +-
 .../IAccessControlDefaultAdminRules.sol       |  2 +-
 .../extensions/IAccessControlEnumerable.sol   |  2 +-
 contracts/access/manager/AccessManaged.sol    |  2 +-
 contracts/access/manager/AccessManager.sol    |  2 +-
 contracts/access/manager/IAccessManager.sol   |  2 +-
 contracts/finance/VestingWallet.sol           |  2 +-
 contracts/finance/VestingWalletCliff.sol      |  2 +-
 contracts/governance/Governor.sol             |  2 +-
 contracts/governance/IGovernor.sol            |  2 +-
 .../extensions/GovernorCountingFractional.sol |  2 +-
 .../extensions/GovernorCountingSimple.sol     |  2 +-
 .../governance/extensions/GovernorStorage.sol |  2 +-
 .../extensions/GovernorTimelockAccess.sol     |  2 +-
 .../extensions/GovernorTimelockCompound.sol   |  2 +-
 .../extensions/GovernorTimelockControl.sol    |  2 +-
 .../governance/extensions/GovernorVotes.sol   |  2 +-
 contracts/governance/utils/Votes.sol          |  2 +-
 contracts/interfaces/IERC1271.sol             |  2 +-
 contracts/interfaces/IERC1363.sol             |  2 +-
 contracts/interfaces/IERC1363Receiver.sol     |  2 +-
 contracts/interfaces/IERC1363Spender.sol      |  2 +-
 contracts/interfaces/IERC1820Implementer.sol  |  2 +-
 contracts/interfaces/IERC1820Registry.sol     |  2 +-
 contracts/interfaces/IERC2981.sol             |  2 +-
 .../interfaces/IERC3156FlashBorrower.sol      |  2 +-
 contracts/interfaces/IERC3156FlashLender.sol  |  2 +-
 contracts/interfaces/IERC4626.sol             |  2 +-
 contracts/interfaces/IERC4906.sol             |  2 +-
 contracts/interfaces/IERC777.sol              |  2 +-
 contracts/interfaces/IERC777Recipient.sol     |  2 +-
 contracts/interfaces/IERC777Sender.sol        |  2 +-
 contracts/interfaces/draft-IERC1822.sol       |  2 +-
 contracts/interfaces/draft-IERC6093.sol       |  2 +-
 contracts/interfaces/draft-IERC7674.sol       |  2 +-
 contracts/metatx/ERC2771Context.sol           |  2 +-
 contracts/metatx/ERC2771Forwarder.sol         |  2 +-
 contracts/package.json                        |  2 +-
 contracts/proxy/Clones.sol                    |  2 +-
 contracts/proxy/ERC1967/ERC1967Proxy.sol      |  2 +-
 contracts/proxy/ERC1967/ERC1967Utils.sol      |  2 +-
 contracts/proxy/beacon/BeaconProxy.sol        |  2 +-
 contracts/proxy/transparent/ProxyAdmin.sol    |  2 +-
 .../TransparentUpgradeableProxy.sol           |  2 +-
 contracts/proxy/utils/UUPSUpgradeable.sol     |  2 +-
 contracts/token/ERC1155/ERC1155.sol           |  2 +-
 contracts/token/ERC1155/IERC1155.sol          |  2 +-
 contracts/token/ERC1155/IERC1155Receiver.sol  |  2 +-
 .../ERC1155/extensions/ERC1155Pausable.sol    |  2 +-
 .../ERC1155/extensions/ERC1155Supply.sol      |  2 +-
 .../ERC1155/extensions/ERC1155URIStorage.sol  |  2 +-
 .../extensions/IERC1155MetadataURI.sol        |  2 +-
 .../token/ERC1155/utils/ERC1155Holder.sol     |  2 +-
 .../token/ERC1155/utils/ERC1155Utils.sol      |  2 +-
 contracts/token/ERC20/ERC20.sol               |  2 +-
 contracts/token/ERC20/IERC20.sol              |  2 +-
 contracts/token/ERC20/extensions/ERC1363.sol  |  2 +-
 .../token/ERC20/extensions/ERC20FlashMint.sol |  2 +-
 .../token/ERC20/extensions/ERC20Pausable.sol  |  2 +-
 .../token/ERC20/extensions/ERC20Permit.sol    |  2 +-
 .../token/ERC20/extensions/ERC20Votes.sol     |  2 +-
 .../token/ERC20/extensions/ERC20Wrapper.sol   |  2 +-
 contracts/token/ERC20/extensions/ERC4626.sol  |  2 +-
 .../token/ERC20/extensions/IERC20Metadata.sol |  2 +-
 .../token/ERC20/extensions/IERC20Permit.sol   |  2 +-
 .../draft-ERC20TemporaryApproval.sol          |  2 +-
 contracts/token/ERC20/utils/ERC1363Utils.sol  |  2 +-
 contracts/token/ERC20/utils/SafeERC20.sol     |  2 +-
 contracts/token/ERC721/ERC721.sol             |  2 +-
 contracts/token/ERC721/IERC721.sol            |  2 +-
 contracts/token/ERC721/IERC721Receiver.sol    |  2 +-
 .../ERC721/extensions/ERC721Burnable.sol      |  2 +-
 .../ERC721/extensions/ERC721Consecutive.sol   |  2 +-
 .../ERC721/extensions/ERC721Enumerable.sol    |  2 +-
 .../ERC721/extensions/ERC721Pausable.sol      |  2 +-
 .../token/ERC721/extensions/ERC721Royalty.sol |  2 +-
 .../ERC721/extensions/ERC721URIStorage.sol    |  2 +-
 .../token/ERC721/extensions/ERC721Votes.sol   |  2 +-
 .../token/ERC721/extensions/ERC721Wrapper.sol |  2 +-
 contracts/token/ERC721/utils/ERC721Utils.sol  |  2 +-
 contracts/token/common/ERC2981.sol            |  2 +-
 contracts/utils/Address.sol                   |  2 +-
 contracts/utils/Arrays.sol                    |  2 +-
 contracts/utils/Base64.sol                    |  2 +-
 contracts/utils/Comparators.sol               |  2 +-
 contracts/utils/Create2.sol                   |  2 +-
 contracts/utils/Errors.sol                    |  2 +-
 contracts/utils/Packing.sol                   |  2 +-
 contracts/utils/Panic.sol                     |  2 +-
 contracts/utils/ReentrancyGuard.sol           |  2 +-
 contracts/utils/ReentrancyGuardTransient.sol  |  2 +-
 contracts/utils/ShortStrings.sol              |  2 +-
 contracts/utils/SlotDerivation.sol            |  2 +-
 contracts/utils/StorageSlot.sol               |  2 +-
 contracts/utils/Strings.sol                   |  2 +-
 contracts/utils/TransientSlot.sol             |  2 +-
 contracts/utils/cryptography/ECDSA.sol        |  2 +-
 contracts/utils/cryptography/EIP712.sol       |  2 +-
 contracts/utils/cryptography/Hashes.sol       |  2 +-
 contracts/utils/cryptography/MerkleProof.sol  |  2 +-
 .../utils/cryptography/MessageHashUtils.sol   |  2 +-
 contracts/utils/cryptography/P256.sol         |  2 +-
 contracts/utils/cryptography/RSA.sol          |  2 +-
 .../utils/cryptography/SignatureChecker.sol   |  2 +-
 contracts/utils/introspection/ERC165.sol      |  2 +-
 .../utils/introspection/ERC165Checker.sol     |  2 +-
 contracts/utils/introspection/IERC165.sol     |  2 +-
 contracts/utils/math/Math.sol                 |  2 +-
 contracts/utils/math/SafeCast.sol             |  2 +-
 contracts/utils/math/SignedMath.sol           |  2 +-
 contracts/utils/structs/Checkpoints.sol       |  2 +-
 contracts/utils/structs/CircularBuffer.sol    |  2 +-
 contracts/utils/structs/DoubleEndedQueue.sol  |  2 +-
 contracts/utils/structs/EnumerableMap.sol     |  2 +-
 contracts/utils/structs/EnumerableSet.sol     |  2 +-
 contracts/utils/structs/Heap.sol              |  2 +-
 contracts/utils/structs/MerkleTree.sol        |  2 +-
 contracts/utils/types/Time.sol                |  2 +-
 docs/antora.yml                               |  4 +-
 package.json                                  |  2 +-
 168 files changed, 125 insertions(+), 401 deletions(-)
 delete mode 100644 .changeset/chilled-walls-develop.md
 delete mode 100644 .changeset/chilly-humans-warn.md
 delete mode 100644 .changeset/cold-cheetahs-check.md
 delete mode 100644 .changeset/cool-mangos-compare.md
 delete mode 100644 .changeset/curvy-crabs-repeat.md
 delete mode 100644 .changeset/dirty-cobras-smile.md
 delete mode 100644 .changeset/eight-eyes-burn.md
 delete mode 100644 .changeset/eleven-planets-relax.md
 delete mode 100644 .changeset/flat-turtles-repeat.md
 delete mode 100644 .changeset/fluffy-buses-jump.md
 delete mode 100644 .changeset/fluffy-steaks-exist.md
 delete mode 100644 .changeset/forty-dodos-visit.md
 delete mode 100644 .changeset/friendly-nails-push.md
 delete mode 100644 .changeset/gentle-bulldogs-turn.md
 delete mode 100644 .changeset/gorgeous-badgers-vanish.md
 delete mode 100644 .changeset/great-pianos-work.md
 delete mode 100644 .changeset/heavy-baboons-give.md
 delete mode 100644 .changeset/kind-planets-cough.md
 delete mode 100644 .changeset/light-news-listen.md
 delete mode 100644 .changeset/lucky-crews-eat.md
 delete mode 100644 .changeset/nervous-eyes-teach.md
 delete mode 100644 .changeset/nervous-pans-grow.md
 delete mode 100644 .changeset/nice-paws-pull.md
 delete mode 100644 .changeset/odd-files-protect.md
 delete mode 100644 .changeset/odd-lobsters-wash.md
 delete mode 100644 .changeset/poor-chefs-cheat.md
 delete mode 100644 .changeset/pre.json
 delete mode 100644 .changeset/serious-carrots-provide.md
 delete mode 100644 .changeset/shiny-poets-whisper.md
 delete mode 100644 .changeset/silver-swans-promise.md
 delete mode 100644 .changeset/smart-bugs-switch.md
 delete mode 100644 .changeset/spotty-falcons-explain.md
 delete mode 100644 .changeset/spotty-queens-own.md
 delete mode 100644 .changeset/strong-singers-talk.md
 delete mode 100644 .changeset/thick-pumpkins-report.md
 delete mode 100644 .changeset/thin-walls-drop.md
 delete mode 100644 .changeset/tricky-bats-pretend.md
 delete mode 100644 .changeset/twenty-feet-grin.md
 delete mode 100644 .changeset/violet-moons-tell.md
 delete mode 100644 .changeset/warm-sheep-cover.md
 delete mode 100644 .changeset/wise-bobcats-speak.md
 delete mode 100644 .changeset/witty-chicken-smile.md
 delete mode 100644 .changeset/yellow-deers-walk.md
 delete mode 100644 .changeset/yellow-moles-hammer.md
 delete mode 100644 .changeset/yellow-tables-sell.md

diff --git a/.changeset/chilled-walls-develop.md b/.changeset/chilled-walls-develop.md
deleted file mode 100644
index 4108feb612d..00000000000
--- a/.changeset/chilled-walls-develop.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Clones`: Add version of `clone` and `cloneDeterministic` that support sending value at creation.
diff --git a/.changeset/chilly-humans-warn.md b/.changeset/chilly-humans-warn.md
deleted file mode 100644
index 1301dfec416..00000000000
--- a/.changeset/chilly-humans-warn.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': patch
----
-
-`ProxyAdmin`: Fixed documentation for `UPGRADE_INTERFACE_VERSION` getter.
diff --git a/.changeset/cold-cheetahs-check.md b/.changeset/cold-cheetahs-check.md
deleted file mode 100644
index 0697dcdf7b4..00000000000
--- a/.changeset/cold-cheetahs-check.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`CircularBuffer`: Add a data structure that stores the last `N` values pushed to it.
diff --git a/.changeset/cool-mangos-compare.md b/.changeset/cool-mangos-compare.md
deleted file mode 100644
index 470ee089456..00000000000
--- a/.changeset/cool-mangos-compare.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Math`: add an `invMod` function to get the modular multiplicative inverse of a number in Z/nZ.
diff --git a/.changeset/curvy-crabs-repeat.md b/.changeset/curvy-crabs-repeat.md
deleted file mode 100644
index db3ef275bb3..00000000000
--- a/.changeset/curvy-crabs-repeat.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`RSA`: Library to verify signatures according to RFC 8017 Signature Verification Operation
diff --git a/.changeset/dirty-cobras-smile.md b/.changeset/dirty-cobras-smile.md
deleted file mode 100644
index d71194cfc21..00000000000
--- a/.changeset/dirty-cobras-smile.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Arrays`: add a `sort` functions for `address[]`, `bytes32[]` and `uint256[]` memory arrays.
diff --git a/.changeset/eight-eyes-burn.md b/.changeset/eight-eyes-burn.md
deleted file mode 100644
index 908c90c7bbf..00000000000
--- a/.changeset/eight-eyes-burn.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`GovernorCountingFractional`: Add a governor counting module that allows distributing voting power amongst 3 options (For, Against, Abstain).
diff --git a/.changeset/eleven-planets-relax.md b/.changeset/eleven-planets-relax.md
deleted file mode 100644
index a1f1bbf1c4e..00000000000
--- a/.changeset/eleven-planets-relax.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': patch
----
-
-`TransparentUpgradeableProxy`: Make internal `_proxyAdmin()` getter have `view` visibility.
diff --git a/.changeset/flat-turtles-repeat.md b/.changeset/flat-turtles-repeat.md
deleted file mode 100644
index 6b627201ac9..00000000000
--- a/.changeset/flat-turtles-repeat.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Arrays`: deprecate `findUpperBound` in favor of the new `lowerBound`.
diff --git a/.changeset/fluffy-buses-jump.md b/.changeset/fluffy-buses-jump.md
deleted file mode 100644
index 0525a4d8e43..00000000000
--- a/.changeset/fluffy-buses-jump.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Comparator`: A library of comparator functions, useful for customizing the behavior of the Heap structure.
diff --git a/.changeset/fluffy-steaks-exist.md b/.changeset/fluffy-steaks-exist.md
deleted file mode 100644
index b625e243481..00000000000
--- a/.changeset/fluffy-steaks-exist.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': patch
----
-
-`Create2`, `Clones`: Mask `computeAddress` and `cloneDeterministic` outputs to produce a clean value for an `address` type (i.e. only use 20 bytes)
diff --git a/.changeset/forty-dodos-visit.md b/.changeset/forty-dodos-visit.md
deleted file mode 100644
index 7d5ae747335..00000000000
--- a/.changeset/forty-dodos-visit.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Strings`: Added a utility function for converting an address to checksummed string.
diff --git a/.changeset/friendly-nails-push.md b/.changeset/friendly-nails-push.md
deleted file mode 100644
index 157bf05561a..00000000000
--- a/.changeset/friendly-nails-push.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`ERC1363`: Add implementation of the token payable standard allowing execution of contract code after transfers and approvals.
diff --git a/.changeset/gentle-bulldogs-turn.md b/.changeset/gentle-bulldogs-turn.md
deleted file mode 100644
index 12bc87a2dfb..00000000000
--- a/.changeset/gentle-bulldogs-turn.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`DoubleEndedQueue`: Custom errors replaced with native panic codes.
diff --git a/.changeset/gorgeous-badgers-vanish.md b/.changeset/gorgeous-badgers-vanish.md
deleted file mode 100644
index ce75ed6ebae..00000000000
--- a/.changeset/gorgeous-badgers-vanish.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`SlotDerivation`: Add a library of methods for derivating common storage slots.
diff --git a/.changeset/great-pianos-work.md b/.changeset/great-pianos-work.md
deleted file mode 100644
index da54483e47e..00000000000
--- a/.changeset/great-pianos-work.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Heap`: A data structure that implements a heap-based priority queue.
diff --git a/.changeset/heavy-baboons-give.md b/.changeset/heavy-baboons-give.md
deleted file mode 100644
index 5852748f81c..00000000000
--- a/.changeset/heavy-baboons-give.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Packing`: Added a new utility for packing, extracting and replacing bytesXX values.
diff --git a/.changeset/kind-planets-cough.md b/.changeset/kind-planets-cough.md
deleted file mode 100644
index 988e24c4ad2..00000000000
--- a/.changeset/kind-planets-cough.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`StorageSlot`: Add primitives for operating on the transient storage space using a typed-slot representation.
diff --git a/.changeset/light-news-listen.md b/.changeset/light-news-listen.md
deleted file mode 100644
index 1572d908139..00000000000
--- a/.changeset/light-news-listen.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`AccessManager`: Allow the `onlyAuthorized` modifier to restrict functions added to the manager.
diff --git a/.changeset/lucky-crews-eat.md b/.changeset/lucky-crews-eat.md
deleted file mode 100644
index 48592b5eaf1..00000000000
--- a/.changeset/lucky-crews-eat.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Votes`: Set `_moveDelegateVotes` visibility to internal instead of private.
diff --git a/.changeset/nervous-eyes-teach.md b/.changeset/nervous-eyes-teach.md
deleted file mode 100644
index f85bc66d8f7..00000000000
--- a/.changeset/nervous-eyes-teach.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Create2`: Bubbles up returndata from a deployed contract that reverted during construction.
diff --git a/.changeset/nervous-pans-grow.md b/.changeset/nervous-pans-grow.md
deleted file mode 100644
index b86a075c678..00000000000
--- a/.changeset/nervous-pans-grow.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': patch
----
-
-`SafeCast`: Add `toUint(bool)` for operating on `bool` values as `uint256`.
diff --git a/.changeset/nice-paws-pull.md b/.changeset/nice-paws-pull.md
deleted file mode 100644
index 11f48d51f82..00000000000
--- a/.changeset/nice-paws-pull.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`SafeERC20`: Add "relaxed" function for interacting with ERC-1363 functions in a way that is compatible with EOAs.
diff --git a/.changeset/odd-files-protect.md b/.changeset/odd-files-protect.md
deleted file mode 100644
index 8b334acfd11..00000000000
--- a/.changeset/odd-files-protect.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Hashes`: A library with commonly used hash functions.
diff --git a/.changeset/odd-lobsters-wash.md b/.changeset/odd-lobsters-wash.md
deleted file mode 100644
index 578f7a42ea7..00000000000
--- a/.changeset/odd-lobsters-wash.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`P256`: Library for verification and public key recovery of P256 (aka secp256r1) signatures.
diff --git a/.changeset/poor-chefs-cheat.md b/.changeset/poor-chefs-cheat.md
deleted file mode 100644
index 39db3d5139c..00000000000
--- a/.changeset/poor-chefs-cheat.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`ERC721Utils` and `ERC1155Utils`: Add reusable libraries with functions to perform acceptance checks on `IERC721Receiver` and `IERC1155Receiver` implementers.
diff --git a/.changeset/pre.json b/.changeset/pre.json
deleted file mode 100644
index 67cb6ac7ee5..00000000000
--- a/.changeset/pre.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
-  "mode": "exit",
-  "tag": "rc",
-  "initialVersions": {
-    "openzeppelin-solidity": "5.0.2"
-  },
-  "changesets": [
-    "chilled-walls-develop",
-    "chilly-humans-warn",
-    "cold-cheetahs-check",
-    "cool-mangos-compare",
-    "curvy-crabs-repeat",
-    "dirty-cobras-smile",
-    "eight-eyes-burn",
-    "eleven-planets-relax",
-    "flat-turtles-repeat",
-    "fluffy-buses-jump",
-    "fluffy-steaks-exist",
-    "forty-dodos-visit",
-    "friendly-nails-push",
-    "gentle-bulldogs-turn",
-    "gorgeous-badgers-vanish",
-    "great-pianos-work",
-    "heavy-baboons-give",
-    "kind-planets-cough",
-    "light-news-listen",
-    "lucky-crews-eat",
-    "nervous-eyes-teach",
-    "nervous-pans-grow",
-    "nice-paws-pull",
-    "odd-files-protect",
-    "odd-lobsters-wash",
-    "poor-chefs-cheat",
-    "serious-carrots-provide",
-    "shiny-poets-whisper",
-    "silver-swans-promise",
-    "smart-bugs-switch",
-    "spotty-falcons-explain",
-    "spotty-queens-own",
-    "strong-singers-talk",
-    "thick-pumpkins-report",
-    "thin-walls-drop",
-    "tricky-bats-pretend",
-    "twenty-feet-grin",
-    "violet-moons-tell",
-    "warm-sheep-cover",
-    "wise-bobcats-speak",
-    "witty-chicken-smile",
-    "yellow-deers-walk",
-    "yellow-moles-hammer",
-    "yellow-tables-sell"
-  ]
-}
diff --git a/.changeset/serious-carrots-provide.md b/.changeset/serious-carrots-provide.md
deleted file mode 100644
index 60a16580d8a..00000000000
--- a/.changeset/serious-carrots-provide.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`ERC20TemporaryApproval`: Add an ERC-20 extension that implements temporary approval using transient storage, based on ERC7674 (draft).
diff --git a/.changeset/shiny-poets-whisper.md b/.changeset/shiny-poets-whisper.md
deleted file mode 100644
index 92497033acf..00000000000
--- a/.changeset/shiny-poets-whisper.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Math`: Add `modExp` function that exposes the `EIP-198` precompile. Includes `uint256` and `bytes memory` versions.
diff --git a/.changeset/silver-swans-promise.md b/.changeset/silver-swans-promise.md
deleted file mode 100644
index 1d2ff2e9ef8..00000000000
--- a/.changeset/silver-swans-promise.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Panic`: Add a library for reverting with panic codes.
diff --git a/.changeset/smart-bugs-switch.md b/.changeset/smart-bugs-switch.md
deleted file mode 100644
index 8a001ae58a1..00000000000
--- a/.changeset/smart-bugs-switch.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Math`: Custom errors replaced with native panic codes.
diff --git a/.changeset/spotty-falcons-explain.md b/.changeset/spotty-falcons-explain.md
deleted file mode 100644
index 28cb95190c1..00000000000
--- a/.changeset/spotty-falcons-explain.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Math`, `SignedMath`: Add a branchless `ternary` function that computes`cond ? a : b` in constant gas cost.
diff --git a/.changeset/spotty-queens-own.md b/.changeset/spotty-queens-own.md
deleted file mode 100644
index 98fb2fbc0ed..00000000000
--- a/.changeset/spotty-queens-own.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`MerkleProof`: Add variations of `verify`, `processProof`, `multiProofVerify` and `processMultiProof` (and equivalent calldata version) with support for custom hashing functions.
diff --git a/.changeset/strong-singers-talk.md b/.changeset/strong-singers-talk.md
deleted file mode 100644
index 7897980cbae..00000000000
--- a/.changeset/strong-singers-talk.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Errors`: New library of common custom errors.
diff --git a/.changeset/thick-pumpkins-report.md b/.changeset/thick-pumpkins-report.md
deleted file mode 100644
index f17a208950c..00000000000
--- a/.changeset/thick-pumpkins-report.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Arrays`: add new functions `lowerBound`, `upperBound`, `lowerBoundMemory` and `upperBoundMemory` for lookups in sorted arrays with potential duplicates.
diff --git a/.changeset/thin-walls-drop.md b/.changeset/thin-walls-drop.md
deleted file mode 100644
index 80260020256..00000000000
--- a/.changeset/thin-walls-drop.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`AccessManager`, `VestingWallet`, `TimelockController` and `ERC2771Forwarder`: Added a public `initializer` function in their corresponding upgradeable variants.
diff --git a/.changeset/tricky-bats-pretend.md b/.changeset/tricky-bats-pretend.md
deleted file mode 100644
index 2809d329357..00000000000
--- a/.changeset/tricky-bats-pretend.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`ERC1363Utils`: Add helper similar to the existing `ERC721Utils` and `ERC1155Utils`
diff --git a/.changeset/twenty-feet-grin.md b/.changeset/twenty-feet-grin.md
deleted file mode 100644
index 69b4fe63b2e..00000000000
--- a/.changeset/twenty-feet-grin.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`Base64`: Add `encodeURL` following section 5 of RFC4648 for URL encoding
diff --git a/.changeset/violet-moons-tell.md b/.changeset/violet-moons-tell.md
deleted file mode 100644
index be215e1934b..00000000000
--- a/.changeset/violet-moons-tell.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`AccessControlEnumerable`: Add a `getRoleMembers` method to return all accounts that have `role`.
diff --git a/.changeset/warm-sheep-cover.md b/.changeset/warm-sheep-cover.md
deleted file mode 100644
index f0a2ebaa256..00000000000
--- a/.changeset/warm-sheep-cover.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`MerkleTree`: A data structure that allows inserting elements into a merkle tree and updating its root hash.
diff --git a/.changeset/wise-bobcats-speak.md b/.changeset/wise-bobcats-speak.md
deleted file mode 100644
index 6ecd9695723..00000000000
--- a/.changeset/wise-bobcats-speak.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`VestingWalletCliff`: Add an extension of the `VestingWallet` contract with an added cliff.
diff --git a/.changeset/witty-chicken-smile.md b/.changeset/witty-chicken-smile.md
deleted file mode 100644
index 6fae3e744ad..00000000000
--- a/.changeset/witty-chicken-smile.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`ReentrancyGuardTransient`: Added a variant of `ReentrancyGuard` that uses transient storage.
diff --git a/.changeset/yellow-deers-walk.md b/.changeset/yellow-deers-walk.md
deleted file mode 100644
index ad370b36e58..00000000000
--- a/.changeset/yellow-deers-walk.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`EnumerableMap`: add `UintToBytes32Map`, `AddressToAddressMap`, `AddressToBytes32Map` and `Bytes32ToAddressMap`.
diff --git a/.changeset/yellow-moles-hammer.md b/.changeset/yellow-moles-hammer.md
deleted file mode 100644
index b13971a28a9..00000000000
--- a/.changeset/yellow-moles-hammer.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`SignatureChecker`: refactor `isValidSignatureNow` to avoid validating ECDSA signatures if there is code deployed at the signer's address.
diff --git a/.changeset/yellow-tables-sell.md b/.changeset/yellow-tables-sell.md
deleted file mode 100644
index f8cdc8d306b..00000000000
--- a/.changeset/yellow-tables-sell.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'openzeppelin-solidity': minor
----
-
-`SafeERC20`: Document risks of `safeIncreaseAllowance` and `safeDecreaseAllowance` when associated with ERC-7674.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c2f3c6b77d3..b652a68fac4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,11 +1,7 @@
 # Changelog
 
 
-## 5.1.0-rc.1 (2024-10-17)
-
-- `SafeERC20`: Document risks of `safeIncreaseAllowance` and `safeDecreaseAllowance` when associated with ERC-7674.
-
-## 5.1.0-rc.0 (2024-10-03)
+## 5.1.0 (2024-10-17)
 
 ### Breaking changes
 
@@ -56,6 +52,7 @@ This version comes with changes to the custom error identifiers. Contracts previ
 - `ERC1363`: Add implementation of the token payable standard allowing execution of contract code after transfers and approvals. ([#4631](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4631))
 - `ERC20TemporaryApproval`: Add an ERC-20 extension that implements temporary approval using transient storage, based on ERC7674 (draft). ([#5071](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5071))
 - `SafeERC20`: Add "relaxed" function for interacting with ERC-1363 functions in a way that is compatible with EOAs. ([#4631](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4631))
+- `SafeERC20`: Document risks of `safeIncreaseAllowance` and `safeDecreaseAllowance` when associated with ERC-7674.
 - `ERC721Utils` and `ERC1155Utils`: Add reusable libraries with functions to perform acceptance checks on `IERC721Receiver` and `IERC1155Receiver` implementers. ([#4845](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4845))
 - `ERC1363Utils`: Add helper similar to the existing ERC721Utils and ERC1155Utils. ([#5133](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5133))
 
diff --git a/contracts/access/IAccessControl.sol b/contracts/access/IAccessControl.sol
index a7fcf943f0d..4c16a6ef75c 100644
--- a/contracts/access/IAccessControl.sol
+++ b/contracts/access/IAccessControl.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/IAccessControl.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/IAccessControl.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/access/Ownable2Step.sol b/contracts/access/Ownable2Step.sol
index da9edb0a583..3a0747ce7cd 100644
--- a/contracts/access/Ownable2Step.sol
+++ b/contracts/access/Ownable2Step.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/Ownable2Step.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/access/extensions/AccessControlEnumerable.sol b/contracts/access/extensions/AccessControlEnumerable.sol
index a81d0d2d37e..b1980e364b0 100644
--- a/contracts/access/extensions/AccessControlEnumerable.sol
+++ b/contracts/access/extensions/AccessControlEnumerable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/extensions/AccessControlEnumerable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/extensions/AccessControlEnumerable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/access/extensions/IAccessControlDefaultAdminRules.sol b/contracts/access/extensions/IAccessControlDefaultAdminRules.sol
index e390f2e54a9..3740749c4b8 100644
--- a/contracts/access/extensions/IAccessControlDefaultAdminRules.sol
+++ b/contracts/access/extensions/IAccessControlDefaultAdminRules.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/extensions/IAccessControlDefaultAdminRules.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/extensions/IAccessControlDefaultAdminRules.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/access/extensions/IAccessControlEnumerable.sol b/contracts/access/extensions/IAccessControlEnumerable.sol
index ec4d5547821..bb9bac86ee1 100644
--- a/contracts/access/extensions/IAccessControlEnumerable.sol
+++ b/contracts/access/extensions/IAccessControlEnumerable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/extensions/IAccessControlEnumerable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/extensions/IAccessControlEnumerable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/access/manager/AccessManaged.sol b/contracts/access/manager/AccessManaged.sol
index 62b4ab07124..352a54def2e 100644
--- a/contracts/access/manager/AccessManaged.sol
+++ b/contracts/access/manager/AccessManaged.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/manager/AccessManaged.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/manager/AccessManaged.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/access/manager/AccessManager.sol b/contracts/access/manager/AccessManager.sol
index 17f10a7f4ea..051080554c6 100644
--- a/contracts/access/manager/AccessManager.sol
+++ b/contracts/access/manager/AccessManager.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/manager/AccessManager.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/manager/AccessManager.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/access/manager/IAccessManager.sol b/contracts/access/manager/IAccessManager.sol
index 68202905572..ebcd1d614a1 100644
--- a/contracts/access/manager/IAccessManager.sol
+++ b/contracts/access/manager/IAccessManager.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (access/manager/IAccessManager.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (access/manager/IAccessManager.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/finance/VestingWallet.sol b/contracts/finance/VestingWallet.sol
index c61c19de8a3..0e0321d0da2 100644
--- a/contracts/finance/VestingWallet.sol
+++ b/contracts/finance/VestingWallet.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (finance/VestingWallet.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (finance/VestingWallet.sol)
 pragma solidity ^0.8.20;
 
 import {IERC20} from "../token/ERC20/IERC20.sol";
diff --git a/contracts/finance/VestingWalletCliff.sol b/contracts/finance/VestingWalletCliff.sol
index 79825147e38..dd1da6580bd 100644
--- a/contracts/finance/VestingWalletCliff.sol
+++ b/contracts/finance/VestingWalletCliff.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (finance/VestingWalletCliff.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (finance/VestingWalletCliff.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/Governor.sol b/contracts/governance/Governor.sol
index 7ddef5a61ad..465a5ef2ff4 100644
--- a/contracts/governance/Governor.sol
+++ b/contracts/governance/Governor.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/Governor.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/Governor.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/IGovernor.sol b/contracts/governance/IGovernor.sol
index 34290f326be..28f8aaac044 100644
--- a/contracts/governance/IGovernor.sol
+++ b/contracts/governance/IGovernor.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/IGovernor.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/IGovernor.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/extensions/GovernorCountingFractional.sol b/contracts/governance/extensions/GovernorCountingFractional.sol
index 1dc86b5ab99..d2231bb9529 100644
--- a/contracts/governance/extensions/GovernorCountingFractional.sol
+++ b/contracts/governance/extensions/GovernorCountingFractional.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorCountingFractional.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorCountingFractional.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/extensions/GovernorCountingSimple.sol b/contracts/governance/extensions/GovernorCountingSimple.sol
index 9a1d6ca465f..0b89b24381d 100644
--- a/contracts/governance/extensions/GovernorCountingSimple.sol
+++ b/contracts/governance/extensions/GovernorCountingSimple.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorCountingSimple.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorCountingSimple.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/extensions/GovernorStorage.sol b/contracts/governance/extensions/GovernorStorage.sol
index 65de8a83d5a..22db099924a 100644
--- a/contracts/governance/extensions/GovernorStorage.sol
+++ b/contracts/governance/extensions/GovernorStorage.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorStorage.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorStorage.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/extensions/GovernorTimelockAccess.sol b/contracts/governance/extensions/GovernorTimelockAccess.sol
index fe4cd460ab6..5b8429b8320 100644
--- a/contracts/governance/extensions/GovernorTimelockAccess.sol
+++ b/contracts/governance/extensions/GovernorTimelockAccess.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorTimelockAccess.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorTimelockAccess.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/extensions/GovernorTimelockCompound.sol b/contracts/governance/extensions/GovernorTimelockCompound.sol
index 1b885a0ba60..309f9a4fa76 100644
--- a/contracts/governance/extensions/GovernorTimelockCompound.sol
+++ b/contracts/governance/extensions/GovernorTimelockCompound.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorTimelockCompound.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorTimelockCompound.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/extensions/GovernorTimelockControl.sol b/contracts/governance/extensions/GovernorTimelockControl.sol
index 4e5ef598f71..ba0953d1608 100644
--- a/contracts/governance/extensions/GovernorTimelockControl.sol
+++ b/contracts/governance/extensions/GovernorTimelockControl.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorTimelockControl.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorTimelockControl.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/extensions/GovernorVotes.sol b/contracts/governance/extensions/GovernorVotes.sol
index d919d9f770e..9aeaf1214a1 100644
--- a/contracts/governance/extensions/GovernorVotes.sol
+++ b/contracts/governance/extensions/GovernorVotes.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/extensions/GovernorVotes.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/extensions/GovernorVotes.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/governance/utils/Votes.sol b/contracts/governance/utils/Votes.sol
index 29922e42c9d..bbbc2264ff9 100644
--- a/contracts/governance/utils/Votes.sol
+++ b/contracts/governance/utils/Votes.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (governance/utils/Votes.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (governance/utils/Votes.sol)
 pragma solidity ^0.8.20;
 
 import {IERC5805} from "../../interfaces/IERC5805.sol";
diff --git a/contracts/interfaces/IERC1271.sol b/contracts/interfaces/IERC1271.sol
index eb3bb65cbbe..8c239942ac8 100644
--- a/contracts/interfaces/IERC1271.sol
+++ b/contracts/interfaces/IERC1271.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC1271.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1271.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC1363.sol b/contracts/interfaces/IERC1363.sol
index da4db2f7d0a..02de2285997 100644
--- a/contracts/interfaces/IERC1363.sol
+++ b/contracts/interfaces/IERC1363.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC1363.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC1363Receiver.sol b/contracts/interfaces/IERC1363Receiver.sol
index f1d347e0c35..02c065861cc 100644
--- a/contracts/interfaces/IERC1363Receiver.sol
+++ b/contracts/interfaces/IERC1363Receiver.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC1363Receiver.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363Receiver.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC1363Spender.sol b/contracts/interfaces/IERC1363Spender.sol
index d890e7ff73e..13af938f066 100644
--- a/contracts/interfaces/IERC1363Spender.sol
+++ b/contracts/interfaces/IERC1363Spender.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC1363Spender.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363Spender.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC1820Implementer.sol b/contracts/interfaces/IERC1820Implementer.sol
index 9e3d188b8e8..95289c65cf4 100644
--- a/contracts/interfaces/IERC1820Implementer.sol
+++ b/contracts/interfaces/IERC1820Implementer.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC1820Implementer.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1820Implementer.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC1820Registry.sol b/contracts/interfaces/IERC1820Registry.sol
index 2cf02333868..fa70466114d 100644
--- a/contracts/interfaces/IERC1820Registry.sol
+++ b/contracts/interfaces/IERC1820Registry.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC1820Registry.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1820Registry.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC2981.sol b/contracts/interfaces/IERC2981.sol
index 8964e1d35e9..db5eb5cd446 100644
--- a/contracts/interfaces/IERC2981.sol
+++ b/contracts/interfaces/IERC2981.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC2981.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC3156FlashBorrower.sol b/contracts/interfaces/IERC3156FlashBorrower.sol
index 1349a5cb34f..daafb17ee05 100644
--- a/contracts/interfaces/IERC3156FlashBorrower.sol
+++ b/contracts/interfaces/IERC3156FlashBorrower.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC3156FlashBorrower.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC3156FlashBorrower.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC3156FlashLender.sol b/contracts/interfaces/IERC3156FlashLender.sol
index f3a8a9cacd0..7b1b071d4df 100644
--- a/contracts/interfaces/IERC3156FlashLender.sol
+++ b/contracts/interfaces/IERC3156FlashLender.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC3156FlashLender.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC3156FlashLender.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC4626.sol b/contracts/interfaces/IERC4626.sol
index c3793520acb..8ebadd72fcf 100644
--- a/contracts/interfaces/IERC4626.sol
+++ b/contracts/interfaces/IERC4626.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC4626.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC4626.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC4906.sol b/contracts/interfaces/IERC4906.sol
index aed89f4f577..6ecd061347b 100644
--- a/contracts/interfaces/IERC4906.sol
+++ b/contracts/interfaces/IERC4906.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC4906.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC4906.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC777.sol b/contracts/interfaces/IERC777.sol
index e103cd3fe4c..1e672330a41 100644
--- a/contracts/interfaces/IERC777.sol
+++ b/contracts/interfaces/IERC777.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC777.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC777.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC777Recipient.sol b/contracts/interfaces/IERC777Recipient.sol
index 72fe236467c..c377de971fc 100644
--- a/contracts/interfaces/IERC777Recipient.sol
+++ b/contracts/interfaces/IERC777Recipient.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC777Recipient.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC777Recipient.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/IERC777Sender.sol b/contracts/interfaces/IERC777Sender.sol
index c97ab7a65f9..0ec8c278484 100644
--- a/contracts/interfaces/IERC777Sender.sol
+++ b/contracts/interfaces/IERC777Sender.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/IERC777Sender.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC777Sender.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/draft-IERC1822.sol b/contracts/interfaces/draft-IERC1822.sol
index c77a95e3158..f846ea6bf0e 100644
--- a/contracts/interfaces/draft-IERC1822.sol
+++ b/contracts/interfaces/draft-IERC1822.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/draft-IERC1822.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC1822.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/interfaces/draft-IERC6093.sol b/contracts/interfaces/draft-IERC6093.sol
index 2216d5291c3..3227fd624fc 100644
--- a/contracts/interfaces/draft-IERC6093.sol
+++ b/contracts/interfaces/draft-IERC6093.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/draft-IERC6093.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
 pragma solidity ^0.8.20;
 
 /**
diff --git a/contracts/interfaces/draft-IERC7674.sol b/contracts/interfaces/draft-IERC7674.sol
index 9eba50bd008..be3c413ec36 100644
--- a/contracts/interfaces/draft-IERC7674.sol
+++ b/contracts/interfaces/draft-IERC7674.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (interfaces/draft-IERC7674.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC7674.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/metatx/ERC2771Context.sol b/contracts/metatx/ERC2771Context.sol
index daaea193aa9..794bfb3e5ef 100644
--- a/contracts/metatx/ERC2771Context.sol
+++ b/contracts/metatx/ERC2771Context.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (metatx/ERC2771Context.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (metatx/ERC2771Context.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/metatx/ERC2771Forwarder.sol b/contracts/metatx/ERC2771Forwarder.sol
index 7815c390c86..4a069874ecb 100644
--- a/contracts/metatx/ERC2771Forwarder.sol
+++ b/contracts/metatx/ERC2771Forwarder.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (metatx/ERC2771Forwarder.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (metatx/ERC2771Forwarder.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/package.json b/contracts/package.json
index 5ec2138ca0f..e0ed163d05a 100644
--- a/contracts/package.json
+++ b/contracts/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@openzeppelin/contracts",
   "description": "Secure Smart Contract library for Solidity",
-  "version": "5.1.0-rc.1",
+  "version": "5.1.0",
   "files": [
     "**/*.sol",
     "/build/contracts/*.json",
diff --git a/contracts/proxy/Clones.sol b/contracts/proxy/Clones.sol
index c16e1b04579..f276130b9f1 100644
--- a/contracts/proxy/Clones.sol
+++ b/contracts/proxy/Clones.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/Clones.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (proxy/Clones.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/proxy/ERC1967/ERC1967Proxy.sol b/contracts/proxy/ERC1967/ERC1967Proxy.sol
index 451fa2ec323..4f51cd9578b 100644
--- a/contracts/proxy/ERC1967/ERC1967Proxy.sol
+++ b/contracts/proxy/ERC1967/ERC1967Proxy.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/ERC1967/ERC1967Proxy.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (proxy/ERC1967/ERC1967Proxy.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/proxy/ERC1967/ERC1967Utils.sol b/contracts/proxy/ERC1967/ERC1967Utils.sol
index 8a069e68458..1f320135277 100644
--- a/contracts/proxy/ERC1967/ERC1967Utils.sol
+++ b/contracts/proxy/ERC1967/ERC1967Utils.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/ERC1967/ERC1967Utils.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (proxy/ERC1967/ERC1967Utils.sol)
 
 pragma solidity ^0.8.21;
 
diff --git a/contracts/proxy/beacon/BeaconProxy.sol b/contracts/proxy/beacon/BeaconProxy.sol
index 7942b4db022..2606f21db08 100644
--- a/contracts/proxy/beacon/BeaconProxy.sol
+++ b/contracts/proxy/beacon/BeaconProxy.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/beacon/BeaconProxy.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (proxy/beacon/BeaconProxy.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/proxy/transparent/ProxyAdmin.sol b/contracts/proxy/transparent/ProxyAdmin.sol
index 41053ba2d7a..31772350392 100644
--- a/contracts/proxy/transparent/ProxyAdmin.sol
+++ b/contracts/proxy/transparent/ProxyAdmin.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/transparent/ProxyAdmin.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (proxy/transparent/ProxyAdmin.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/proxy/transparent/TransparentUpgradeableProxy.sol b/contracts/proxy/transparent/TransparentUpgradeableProxy.sol
index b8781b3a4a7..a35a725f2b3 100644
--- a/contracts/proxy/transparent/TransparentUpgradeableProxy.sol
+++ b/contracts/proxy/transparent/TransparentUpgradeableProxy.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/transparent/TransparentUpgradeableProxy.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (proxy/transparent/TransparentUpgradeableProxy.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/proxy/utils/UUPSUpgradeable.sol b/contracts/proxy/utils/UUPSUpgradeable.sol
index 9ef796d9a5f..dc799962cb3 100644
--- a/contracts/proxy/utils/UUPSUpgradeable.sol
+++ b/contracts/proxy/utils/UUPSUpgradeable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (proxy/utils/UUPSUpgradeable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (proxy/utils/UUPSUpgradeable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/ERC1155.sol b/contracts/token/ERC1155/ERC1155.sol
index 6b233559413..3e0a91f8bcc 100644
--- a/contracts/token/ERC1155/ERC1155.sol
+++ b/contracts/token/ERC1155/ERC1155.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/ERC1155.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/ERC1155.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/IERC1155.sol b/contracts/token/ERC1155/IERC1155.sol
index 8d811ba1212..0da320fbefb 100644
--- a/contracts/token/ERC1155/IERC1155.sol
+++ b/contracts/token/ERC1155/IERC1155.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/IERC1155.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/IERC1155.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/IERC1155Receiver.sol b/contracts/token/ERC1155/IERC1155Receiver.sol
index 359335904bf..7d9bc239719 100644
--- a/contracts/token/ERC1155/IERC1155Receiver.sol
+++ b/contracts/token/ERC1155/IERC1155Receiver.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/IERC1155Receiver.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/IERC1155Receiver.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/extensions/ERC1155Pausable.sol b/contracts/token/ERC1155/extensions/ERC1155Pausable.sol
index 0d8a0fa19df..a0de999f0cf 100644
--- a/contracts/token/ERC1155/extensions/ERC1155Pausable.sol
+++ b/contracts/token/ERC1155/extensions/ERC1155Pausable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/extensions/ERC1155Pausable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/ERC1155Pausable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/extensions/ERC1155Supply.sol b/contracts/token/ERC1155/extensions/ERC1155Supply.sol
index c5c73be8b4d..00dd082a383 100644
--- a/contracts/token/ERC1155/extensions/ERC1155Supply.sol
+++ b/contracts/token/ERC1155/extensions/ERC1155Supply.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/extensions/ERC1155Supply.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/ERC1155Supply.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/extensions/ERC1155URIStorage.sol b/contracts/token/ERC1155/extensions/ERC1155URIStorage.sol
index 57ec55c9eac..5abf319d327 100644
--- a/contracts/token/ERC1155/extensions/ERC1155URIStorage.sol
+++ b/contracts/token/ERC1155/extensions/ERC1155URIStorage.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/extensions/ERC1155URIStorage.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/ERC1155URIStorage.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol b/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol
index 66e790b9db9..b413f4304d3 100644
--- a/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol
+++ b/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/extensions/IERC1155MetadataURI.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/utils/ERC1155Holder.sol b/contracts/token/ERC1155/utils/ERC1155Holder.sol
index 836ec274c44..7ad5943aceb 100644
--- a/contracts/token/ERC1155/utils/ERC1155Holder.sol
+++ b/contracts/token/ERC1155/utils/ERC1155Holder.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/utils/ERC1155Holder.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/utils/ERC1155Holder.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC1155/utils/ERC1155Utils.sol b/contracts/token/ERC1155/utils/ERC1155Utils.sol
index dd8d0754ddf..371cd86ba46 100644
--- a/contracts/token/ERC1155/utils/ERC1155Utils.sol
+++ b/contracts/token/ERC1155/utils/ERC1155Utils.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC1155/utils/ERC1155Utils.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/utils/ERC1155Utils.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/ERC20.sol b/contracts/token/ERC20/ERC20.sol
index 2e52c69c2a4..0b707604c0c 100644
--- a/contracts/token/ERC20/ERC20.sol
+++ b/contracts/token/ERC20/ERC20.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/ERC20.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/IERC20.sol b/contracts/token/ERC20/IERC20.sol
index a97d057166a..7d1019563f5 100644
--- a/contracts/token/ERC20/IERC20.sol
+++ b/contracts/token/ERC20/IERC20.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/IERC20.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/ERC1363.sol b/contracts/token/ERC20/extensions/ERC1363.sol
index 798ef90473a..acc841d78fc 100644
--- a/contracts/token/ERC20/extensions/ERC1363.sol
+++ b/contracts/token/ERC20/extensions/ERC1363.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC1363.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC1363.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/ERC20FlashMint.sol b/contracts/token/ERC20/extensions/ERC20FlashMint.sol
index d62c498326d..4d3a31f6df2 100644
--- a/contracts/token/ERC20/extensions/ERC20FlashMint.sol
+++ b/contracts/token/ERC20/extensions/ERC20FlashMint.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20FlashMint.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20FlashMint.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/ERC20Pausable.sol b/contracts/token/ERC20/extensions/ERC20Pausable.sol
index 6c0e7c76cc7..2f6d86c4a53 100644
--- a/contracts/token/ERC20/extensions/ERC20Pausable.sol
+++ b/contracts/token/ERC20/extensions/ERC20Pausable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Pausable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Pausable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/ERC20Permit.sol b/contracts/token/ERC20/extensions/ERC20Permit.sol
index 5082a47497c..3d36561a85f 100644
--- a/contracts/token/ERC20/extensions/ERC20Permit.sol
+++ b/contracts/token/ERC20/extensions/ERC20Permit.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Permit.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Permit.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/ERC20Votes.sol b/contracts/token/ERC20/extensions/ERC20Votes.sol
index 948bbb5bd26..c15e7f56885 100644
--- a/contracts/token/ERC20/extensions/ERC20Votes.sol
+++ b/contracts/token/ERC20/extensions/ERC20Votes.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Votes.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Votes.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/ERC20Wrapper.sol b/contracts/token/ERC20/extensions/ERC20Wrapper.sol
index 2907a2c89a3..9cc5aaf5f68 100644
--- a/contracts/token/ERC20/extensions/ERC20Wrapper.sol
+++ b/contracts/token/ERC20/extensions/ERC20Wrapper.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC20Wrapper.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Wrapper.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/ERC4626.sol b/contracts/token/ERC20/extensions/ERC4626.sol
index 64705390d83..ec9a255076c 100644
--- a/contracts/token/ERC20/extensions/ERC4626.sol
+++ b/contracts/token/ERC20/extensions/ERC4626.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/ERC4626.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC4626.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/IERC20Metadata.sol b/contracts/token/ERC20/extensions/IERC20Metadata.sol
index c2f09886977..3c067ef4012 100644
--- a/contracts/token/ERC20/extensions/IERC20Metadata.sol
+++ b/contracts/token/ERC20/extensions/IERC20Metadata.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/IERC20Metadata.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/IERC20Permit.sol b/contracts/token/ERC20/extensions/IERC20Permit.sol
index 49d542d42d3..fc374368fd2 100644
--- a/contracts/token/ERC20/extensions/IERC20Permit.sol
+++ b/contracts/token/ERC20/extensions/IERC20Permit.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/IERC20Permit.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Permit.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/extensions/draft-ERC20TemporaryApproval.sol b/contracts/token/ERC20/extensions/draft-ERC20TemporaryApproval.sol
index c28c8dbd4c4..d30521b49bb 100644
--- a/contracts/token/ERC20/extensions/draft-ERC20TemporaryApproval.sol
+++ b/contracts/token/ERC20/extensions/draft-ERC20TemporaryApproval.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/extensions/draft-ERC20TemporaryApproval.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/draft-ERC20TemporaryApproval.sol)
 
 pragma solidity ^0.8.24;
 
diff --git a/contracts/token/ERC20/utils/ERC1363Utils.sol b/contracts/token/ERC20/utils/ERC1363Utils.sol
index b2461064f52..6ba26901eb0 100644
--- a/contracts/token/ERC20/utils/ERC1363Utils.sol
+++ b/contracts/token/ERC20/utils/ERC1363Utils.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/utils/ERC1363Utils.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/ERC1363Utils.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC20/utils/SafeERC20.sol b/contracts/token/ERC20/utils/SafeERC20.sol
index a7e30435f5e..eb2f903fbed 100644
--- a/contracts/token/ERC20/utils/SafeERC20.sol
+++ b/contracts/token/ERC20/utils/SafeERC20.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC20/utils/SafeERC20.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/ERC721.sol b/contracts/token/ERC721/ERC721.sol
index 817eb22818a..6aebc37309f 100644
--- a/contracts/token/ERC721/ERC721.sol
+++ b/contracts/token/ERC721/ERC721.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/ERC721.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/ERC721.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/IERC721.sol b/contracts/token/ERC721/IERC721.sol
index 48964b782ad..da393014753 100644
--- a/contracts/token/ERC721/IERC721.sol
+++ b/contracts/token/ERC721/IERC721.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/IERC721.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/IERC721Receiver.sol b/contracts/token/ERC721/IERC721Receiver.sol
index 1d4df0d45c6..d472eec338a 100644
--- a/contracts/token/ERC721/IERC721Receiver.sol
+++ b/contracts/token/ERC721/IERC721Receiver.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/IERC721Receiver.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721Burnable.sol b/contracts/token/ERC721/extensions/ERC721Burnable.sol
index 39cc883e979..c6d22455761 100644
--- a/contracts/token/ERC721/extensions/ERC721Burnable.sol
+++ b/contracts/token/ERC721/extensions/ERC721Burnable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Burnable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Burnable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721Consecutive.sol b/contracts/token/ERC721/extensions/ERC721Consecutive.sol
index 57dbfd57754..6b849d77438 100644
--- a/contracts/token/ERC721/extensions/ERC721Consecutive.sol
+++ b/contracts/token/ERC721/extensions/ERC721Consecutive.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Consecutive.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Consecutive.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721Enumerable.sol b/contracts/token/ERC721/extensions/ERC721Enumerable.sol
index ef0d17bdbae..43aa81e6e09 100644
--- a/contracts/token/ERC721/extensions/ERC721Enumerable.sol
+++ b/contracts/token/ERC721/extensions/ERC721Enumerable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Enumerable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Enumerable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721Pausable.sol b/contracts/token/ERC721/extensions/ERC721Pausable.sol
index 0ba462f22fa..9a75623c62a 100644
--- a/contracts/token/ERC721/extensions/ERC721Pausable.sol
+++ b/contracts/token/ERC721/extensions/ERC721Pausable.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Pausable.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Pausable.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721Royalty.sol b/contracts/token/ERC721/extensions/ERC721Royalty.sol
index 18118fb3c97..cfce1786c7a 100644
--- a/contracts/token/ERC721/extensions/ERC721Royalty.sol
+++ b/contracts/token/ERC721/extensions/ERC721Royalty.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Royalty.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Royalty.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721URIStorage.sol b/contracts/token/ERC721/extensions/ERC721URIStorage.sol
index b8a8f64d181..d8b4d8d1f91 100644
--- a/contracts/token/ERC721/extensions/ERC721URIStorage.sol
+++ b/contracts/token/ERC721/extensions/ERC721URIStorage.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721URIStorage.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721URIStorage.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721Votes.sol b/contracts/token/ERC721/extensions/ERC721Votes.sol
index fe2b2e72b56..f71195ce7c8 100644
--- a/contracts/token/ERC721/extensions/ERC721Votes.sol
+++ b/contracts/token/ERC721/extensions/ERC721Votes.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Votes.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Votes.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/extensions/ERC721Wrapper.sol b/contracts/token/ERC721/extensions/ERC721Wrapper.sol
index 7f4027865c3..111136bbe77 100644
--- a/contracts/token/ERC721/extensions/ERC721Wrapper.sol
+++ b/contracts/token/ERC721/extensions/ERC721Wrapper.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/extensions/ERC721Wrapper.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/extensions/ERC721Wrapper.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/ERC721/utils/ERC721Utils.sol b/contracts/token/ERC721/utils/ERC721Utils.sol
index 534aab685fd..2fd091afd67 100644
--- a/contracts/token/ERC721/utils/ERC721Utils.sol
+++ b/contracts/token/ERC721/utils/ERC721Utils.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/ERC721/utils/ERC721Utils.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/utils/ERC721Utils.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/token/common/ERC2981.sol b/contracts/token/common/ERC2981.sol
index 485cdf2ed6a..8335e56efab 100644
--- a/contracts/token/common/ERC2981.sol
+++ b/contracts/token/common/ERC2981.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (token/common/ERC2981.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (token/common/ERC2981.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/Address.sol b/contracts/utils/Address.sol
index a8a4e0e49b8..a1c8af296ce 100644
--- a/contracts/utils/Address.sol
+++ b/contracts/utils/Address.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Address.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/Arrays.sol b/contracts/utils/Arrays.sol
index 2f8512a9e72..bd3401703d4 100644
--- a/contracts/utils/Arrays.sol
+++ b/contracts/utils/Arrays.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Arrays.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Arrays.sol)
 // This file was procedurally generated from scripts/generate/templates/Arrays.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/Base64.sol b/contracts/utils/Base64.sol
index d0ce5e731ed..8b7c5c5ed06 100644
--- a/contracts/utils/Base64.sol
+++ b/contracts/utils/Base64.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Base64.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Base64.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/Comparators.sol b/contracts/utils/Comparators.sol
index 71e5d4d9d0f..a8c5e73dfea 100644
--- a/contracts/utils/Comparators.sol
+++ b/contracts/utils/Comparators.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Comparators.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Comparators.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/Create2.sol b/contracts/utils/Create2.sol
index d655108267d..ffd39d9a46c 100644
--- a/contracts/utils/Create2.sol
+++ b/contracts/utils/Create2.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Create2.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Create2.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/Errors.sol b/contracts/utils/Errors.sol
index 99863249bff..442fc18920f 100644
--- a/contracts/utils/Errors.sol
+++ b/contracts/utils/Errors.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Errors.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/Packing.sol b/contracts/utils/Packing.sol
index e7d727e2959..069153bef4a 100644
--- a/contracts/utils/Packing.sol
+++ b/contracts/utils/Packing.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Packing.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Packing.sol)
 // This file was procedurally generated from scripts/generate/templates/Packing.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/Panic.sol b/contracts/utils/Panic.sol
index e88938bbe3e..e168824d34b 100644
--- a/contracts/utils/Panic.sol
+++ b/contracts/utils/Panic.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Panic.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/ReentrancyGuard.sol b/contracts/utils/ReentrancyGuard.sol
index a1f280d8840..a95fb512f31 100644
--- a/contracts/utils/ReentrancyGuard.sol
+++ b/contracts/utils/ReentrancyGuard.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/ReentrancyGuard.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/ReentrancyGuardTransient.sol b/contracts/utils/ReentrancyGuardTransient.sol
index 7a4729780b8..1a62e29dafa 100644
--- a/contracts/utils/ReentrancyGuardTransient.sol
+++ b/contracts/utils/ReentrancyGuardTransient.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/ReentrancyGuardTransient.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuardTransient.sol)
 
 pragma solidity ^0.8.24;
 
diff --git a/contracts/utils/ShortStrings.sol b/contracts/utils/ShortStrings.sol
index f2702db0187..fb8bde51668 100644
--- a/contracts/utils/ShortStrings.sol
+++ b/contracts/utils/ShortStrings.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/ShortStrings.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/ShortStrings.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/SlotDerivation.sol b/contracts/utils/SlotDerivation.sol
index 97606f86c2e..62d1545c650 100644
--- a/contracts/utils/SlotDerivation.sol
+++ b/contracts/utils/SlotDerivation.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/SlotDerivation.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/SlotDerivation.sol)
 // This file was procedurally generated from scripts/generate/templates/SlotDerivation.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/StorageSlot.sol b/contracts/utils/StorageSlot.sol
index 47eb95f4278..aebb10524a2 100644
--- a/contracts/utils/StorageSlot.sol
+++ b/contracts/utils/StorageSlot.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/StorageSlot.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
 // This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/Strings.sol b/contracts/utils/Strings.sol
index bbbdb1c9a6c..35cdf5baa76 100644
--- a/contracts/utils/Strings.sol
+++ b/contracts/utils/Strings.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Strings.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/Strings.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/TransientSlot.sol b/contracts/utils/TransientSlot.sol
index fd0b9d699ad..25c57dd3f96 100644
--- a/contracts/utils/TransientSlot.sol
+++ b/contracts/utils/TransientSlot.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/TransientSlot.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/TransientSlot.sol)
 // This file was procedurally generated from scripts/generate/templates/TransientSlot.js.
 
 pragma solidity ^0.8.24;
diff --git a/contracts/utils/cryptography/ECDSA.sol b/contracts/utils/cryptography/ECDSA.sol
index 1b67f78904c..6493f56338a 100644
--- a/contracts/utils/cryptography/ECDSA.sol
+++ b/contracts/utils/cryptography/ECDSA.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/ECDSA.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/cryptography/EIP712.sol b/contracts/utils/cryptography/EIP712.sol
index 6d8b95fab8d..f15a67bd9b5 100644
--- a/contracts/utils/cryptography/EIP712.sol
+++ b/contracts/utils/cryptography/EIP712.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/EIP712.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/EIP712.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/cryptography/Hashes.sol b/contracts/utils/cryptography/Hashes.sol
index 2e562aa87f1..893883164fb 100644
--- a/contracts/utils/cryptography/Hashes.sol
+++ b/contracts/utils/cryptography/Hashes.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/Hashes.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/Hashes.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/cryptography/MerkleProof.sol b/contracts/utils/cryptography/MerkleProof.sol
index d462e040d5d..19b09e2af65 100644
--- a/contracts/utils/cryptography/MerkleProof.sol
+++ b/contracts/utils/cryptography/MerkleProof.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/MerkleProof.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/MerkleProof.sol)
 // This file was procedurally generated from scripts/generate/templates/MerkleProof.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/cryptography/MessageHashUtils.sol b/contracts/utils/cryptography/MessageHashUtils.sol
index ffaa83bd2c9..e1cbccb65ec 100644
--- a/contracts/utils/cryptography/MessageHashUtils.sol
+++ b/contracts/utils/cryptography/MessageHashUtils.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/MessageHashUtils.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/MessageHashUtils.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/cryptography/P256.sol b/contracts/utils/cryptography/P256.sol
index 1982433b662..510eb55e700 100644
--- a/contracts/utils/cryptography/P256.sol
+++ b/contracts/utils/cryptography/P256.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/P256.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/P256.sol)
 pragma solidity ^0.8.20;
 
 import {Math} from "../math/Math.sol";
diff --git a/contracts/utils/cryptography/RSA.sol b/contracts/utils/cryptography/RSA.sol
index 6e79cb8afcf..4e04ce5cc56 100644
--- a/contracts/utils/cryptography/RSA.sol
+++ b/contracts/utils/cryptography/RSA.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/RSA.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/RSA.sol)
 pragma solidity ^0.8.20;
 
 import {Math} from "../math/Math.sol";
diff --git a/contracts/utils/cryptography/SignatureChecker.sol b/contracts/utils/cryptography/SignatureChecker.sol
index 8540ac36c23..554f00d89d1 100644
--- a/contracts/utils/cryptography/SignatureChecker.sol
+++ b/contracts/utils/cryptography/SignatureChecker.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/cryptography/SignatureChecker.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/SignatureChecker.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/introspection/ERC165.sol b/contracts/utils/introspection/ERC165.sol
index b8c84c4105f..9fbce0447e7 100644
--- a/contracts/utils/introspection/ERC165.sol
+++ b/contracts/utils/introspection/ERC165.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/introspection/ERC165.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/introspection/ERC165Checker.sol b/contracts/utils/introspection/ERC165Checker.sol
index f7aa7a9578a..8650f5503cc 100644
--- a/contracts/utils/introspection/ERC165Checker.sol
+++ b/contracts/utils/introspection/ERC165Checker.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/introspection/ERC165Checker.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165Checker.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/introspection/IERC165.sol b/contracts/utils/introspection/IERC165.sol
index c6d2b07a6e5..719ec358659 100644
--- a/contracts/utils/introspection/IERC165.sol
+++ b/contracts/utils/introspection/IERC165.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/introspection/IERC165.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/math/Math.sol b/contracts/utils/math/Math.sol
index ddf3fead252..85a420b1a7b 100644
--- a/contracts/utils/math/Math.sol
+++ b/contracts/utils/math/Math.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/math/Math.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/math/SafeCast.sol b/contracts/utils/math/SafeCast.sol
index acae0326458..b345ede1e69 100644
--- a/contracts/utils/math/SafeCast.sol
+++ b/contracts/utils/math/SafeCast.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/math/SafeCast.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)
 // This file was procedurally generated from scripts/generate/templates/SafeCast.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/math/SignedMath.sol b/contracts/utils/math/SignedMath.sol
index c1f1b8db2a4..7c97aa4c22d 100644
--- a/contracts/utils/math/SignedMath.sol
+++ b/contracts/utils/math/SignedMath.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/math/SignedMath.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/structs/Checkpoints.sol b/contracts/utils/structs/Checkpoints.sol
index 8d4e46530fb..8d8f130319d 100644
--- a/contracts/utils/structs/Checkpoints.sol
+++ b/contracts/utils/structs/Checkpoints.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/structs/Checkpoints.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/Checkpoints.sol)
 // This file was procedurally generated from scripts/generate/templates/Checkpoints.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/structs/CircularBuffer.sol b/contracts/utils/structs/CircularBuffer.sol
index 27623e81553..ae0a4a88f68 100644
--- a/contracts/utils/structs/CircularBuffer.sol
+++ b/contracts/utils/structs/CircularBuffer.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/structs/CircularBuffer.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/CircularBuffer.sol)
 pragma solidity ^0.8.20;
 
 import {Math} from "../math/Math.sol";
diff --git a/contracts/utils/structs/DoubleEndedQueue.sol b/contracts/utils/structs/DoubleEndedQueue.sol
index 9882a82a057..f243243bbd7 100644
--- a/contracts/utils/structs/DoubleEndedQueue.sol
+++ b/contracts/utils/structs/DoubleEndedQueue.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/structs/DoubleEndedQueue.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/DoubleEndedQueue.sol)
 pragma solidity ^0.8.20;
 
 import {Panic} from "../Panic.sol";
diff --git a/contracts/utils/structs/EnumerableMap.sol b/contracts/utils/structs/EnumerableMap.sol
index 91cab2e833c..4e12acec142 100644
--- a/contracts/utils/structs/EnumerableMap.sol
+++ b/contracts/utils/structs/EnumerableMap.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/structs/EnumerableMap.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/EnumerableMap.sol)
 // This file was procedurally generated from scripts/generate/templates/EnumerableMap.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/structs/EnumerableSet.sol b/contracts/utils/structs/EnumerableSet.sol
index c83d71e16f7..065202e8204 100644
--- a/contracts/utils/structs/EnumerableSet.sol
+++ b/contracts/utils/structs/EnumerableSet.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/structs/EnumerableSet.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/EnumerableSet.sol)
 // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
 
 pragma solidity ^0.8.20;
diff --git a/contracts/utils/structs/Heap.sol b/contracts/utils/structs/Heap.sol
index 7f73602d56d..c97bb432a33 100644
--- a/contracts/utils/structs/Heap.sol
+++ b/contracts/utils/structs/Heap.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/structs/Heap.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/Heap.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/structs/MerkleTree.sol b/contracts/utils/structs/MerkleTree.sol
index fb5bd075203..56f5bc67237 100644
--- a/contracts/utils/structs/MerkleTree.sol
+++ b/contracts/utils/structs/MerkleTree.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/structs/MerkleTree.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/structs/MerkleTree.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/contracts/utils/types/Time.sol b/contracts/utils/types/Time.sol
index ded5f9e3c59..a495932de39 100644
--- a/contracts/utils/types/Time.sol
+++ b/contracts/utils/types/Time.sol
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
-// OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/types/Time.sol)
+// OpenZeppelin Contracts (last updated v5.1.0) (utils/types/Time.sol)
 
 pragma solidity ^0.8.20;
 
diff --git a/docs/antora.yml b/docs/antora.yml
index 46c7444e03d..4bc06b36a38 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -1,7 +1,7 @@
 name: contracts
 title: Contracts
-version: 5.x-rc
-prerelease: true
+version: 5.x
+prerelease: false
 nav:
   - modules/ROOT/nav.adoc
   - modules/api/nav.adoc
diff --git a/package.json b/package.json
index 7535260b8d8..94b7c2a6ad8 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "openzeppelin-solidity",
   "description": "Secure Smart Contract library for Solidity",
-  "version": "5.1.0-rc.1",
+  "version": "5.1.0",
   "private": true,
   "files": [
     "/contracts/**/*.sol",