@openzeppelin/upgrades-core 1.41.0 → 1.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/validate.js +3 -1
- package/dist/cli/validate.js.map +1 -1
- package/dist/validate/overrides.d.ts +6 -2
- package/dist/validate/overrides.d.ts.map +1 -1
- package/dist/validate/overrides.js +36 -10
- package/dist/validate/overrides.js.map +1 -1
- package/dist/validate/report.d.ts +1 -0
- package/dist/validate/report.d.ts.map +1 -1
- package/dist/validate/report.js +23 -1
- package/dist/validate/report.js.map +1 -1
- package/dist/validate/run/initializer.d.ts +13 -0
- package/dist/validate/run/initializer.d.ts.map +1 -0
- package/dist/validate/run/initializer.js +246 -0
- package/dist/validate/run/initializer.js.map +1 -0
- package/dist/validate/run.d.ts +23 -2
- package/dist/validate/run.d.ts.map +1 -1
- package/dist/validate/run.js +9 -1
- package/dist/validate/run.js.map +1 -1
- package/dist/validate-initializers.test.d.ts +2 -0
- package/dist/validate-initializers.test.d.ts.map +1 -0
- package/dist/validate-initializers.test.js +181 -0
- package/dist/validate-initializers.test.js.map +1 -0
- package/package.json +2 -2
- package/src/cli/cli.test.ts.md +6 -2
- package/src/cli/cli.test.ts.snap +0 -0
- package/src/cli/validate.ts +4 -4
- package/src/validate/overrides.ts +40 -15
- package/src/validate/report.ts +24 -2
- package/src/validate/run/initializer.ts +316 -0
- package/src/validate/run.ts +38 -2
- package/src/validate-initializers.test.ts +224 -0
- package/CHANGELOG.md +0 -421
package/CHANGELOG.md
DELETED
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.41.0 (2024-11-25)
|
|
4
|
-
|
|
5
|
-
- Update Slang dependency to 0.18.3. ([#1102](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1102))
|
|
6
|
-
- Improves reliability of Hardhat compilation step for namespaced storage layout validations when using Solidity versions 0.8.27 and 0.8.28.
|
|
7
|
-
|
|
8
|
-
## 1.40.0 (2024-10-10)
|
|
9
|
-
|
|
10
|
-
- Fix Hardhat compile error when overriding interface functions with public constant variables. ([#1091](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1091))
|
|
11
|
-
- Support ignoring Hardhat compile errors when extracting detailed namespaced storage layouts for validations. ([#1090](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1090))
|
|
12
|
-
|
|
13
|
-
## 1.39.0 (2024-10-02)
|
|
14
|
-
|
|
15
|
-
- Fix Hardhat compile error when library or interface has struct with namespace annotation. ([#1086](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1086))
|
|
16
|
-
- Log warning if library contains namespace annotation. ([#1086](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1086))
|
|
17
|
-
|
|
18
|
-
> **Note**
|
|
19
|
-
> Namespaces should be defined in contracts according to [ERC-7201: Namespaced Storage Layouts](https://eips.ethereum.org/EIPS/eip-7201). Structs with namespace annotations defined in libraries or interfaces outside of a contract's inheritance are not included in storage layout validations.
|
|
20
|
-
|
|
21
|
-
## 1.38.0 (2024-09-23)
|
|
22
|
-
|
|
23
|
-
- Supports checking to ensure `initialOwner` is not a ProxyAdmin contract when deploying a transparent proxy from Hardhat. ([#1083](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1083))
|
|
24
|
-
|
|
25
|
-
## 1.37.1 (2024-09-09)
|
|
26
|
-
|
|
27
|
-
- Fix Hardhat compile error when using solc version `0.8.27`. ([#1075](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1075))
|
|
28
|
-
|
|
29
|
-
## 1.37.0 (2024-08-28)
|
|
30
|
-
|
|
31
|
-
- **Breaking change**: CLI: Disallow self-references for storage layout validations. ([#1067](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1067))
|
|
32
|
-
- CLI: Support `--exclude` option. ([#1065](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1065))
|
|
33
|
-
|
|
34
|
-
## 1.36.0 (2024-08-21)
|
|
35
|
-
|
|
36
|
-
- Update dependency on Slang. ([#1059](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1059))
|
|
37
|
-
- CLI: Support `--referenceBuildInfoDirs` option. ([#1062](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1062))
|
|
38
|
-
|
|
39
|
-
## 1.35.1 (2024-08-13)
|
|
40
|
-
|
|
41
|
-
- Fix Hardhat compile error when `fallback` or `receive` functions are present. ([#1060](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1060))
|
|
42
|
-
|
|
43
|
-
## 1.35.0 (2024-07-31)
|
|
44
|
-
|
|
45
|
-
- Fix Hardhat compile error when public variables are used to implement interface functions. ([#1055](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1055))
|
|
46
|
-
- Remove non-struct NatSpec from Hardhat compilation step for namespaced storage layout validations. ([#1051](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1051))
|
|
47
|
-
|
|
48
|
-
## 1.34.4 (2024-07-22)
|
|
49
|
-
|
|
50
|
-
- Fix Hardhat compile error when return parameter names are documented as param. ([#1050](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1050))
|
|
51
|
-
|
|
52
|
-
## 1.34.3 (2024-07-19)
|
|
53
|
-
|
|
54
|
-
- Fix Hardhat compile error when multiple return parameters are documented. ([#1048](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1048))
|
|
55
|
-
|
|
56
|
-
## 1.34.2 (2024-07-18)
|
|
57
|
-
|
|
58
|
-
- Fix Hardhat compile error when constants have references to other constants. ([#1046](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1046))
|
|
59
|
-
|
|
60
|
-
## 1.34.1 (2024-06-18)
|
|
61
|
-
|
|
62
|
-
- Fix unexpected validation error when function parameter has internal function pointer. ([#1038](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1038))
|
|
63
|
-
|
|
64
|
-
## 1.34.0 (2024-06-12)
|
|
65
|
-
|
|
66
|
-
- Fix storage layout comparison for function types, disallow internal functions in storage. ([#1032](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1032))
|
|
67
|
-
|
|
68
|
-
## 1.33.1 (2024-04-25)
|
|
69
|
-
|
|
70
|
-
- Fix Hardhat compile error when variable has whitespace before semicolon. ([#1020](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1020))
|
|
71
|
-
|
|
72
|
-
## 1.33.0 (2024-04-24)
|
|
73
|
-
|
|
74
|
-
- Enable changing default network files directory with environment variable. ([#1011](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1011))
|
|
75
|
-
|
|
76
|
-
## 1.32.6 (2024-04-16)
|
|
77
|
-
|
|
78
|
-
- This plugin is now compiled with TypeScript v5. ([#760](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/760))
|
|
79
|
-
- Fix Hardhat compile error when referencing a constant within a struct definition. ([#1009](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/1009))
|
|
80
|
-
|
|
81
|
-
## 1.32.5 (2024-02-21)
|
|
82
|
-
|
|
83
|
-
- Add support for Holesky testnet to manifest file names. ([#974](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/974))
|
|
84
|
-
|
|
85
|
-
## 1.32.4 (2024-01-30)
|
|
86
|
-
|
|
87
|
-
- Add support for OP Sepolia to manifest file names. ([#963](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/963))
|
|
88
|
-
- Add support for Base networks to manifest file names. ([#965](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/965))
|
|
89
|
-
- Fix error when renaming network file and using a separate filesystem. ([#964](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/964))
|
|
90
|
-
|
|
91
|
-
## 1.32.3 (2024-01-16)
|
|
92
|
-
|
|
93
|
-
- CLI: Improve checks for build info file settings. ([#958](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/958))
|
|
94
|
-
|
|
95
|
-
## 1.32.2 (2023-12-21)
|
|
96
|
-
|
|
97
|
-
- Fix manifest error when connecting to an Anvil dev network. ([#950](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/950))
|
|
98
|
-
|
|
99
|
-
## 1.32.1 (2023-12-14)
|
|
100
|
-
|
|
101
|
-
- CLI: Fix ambiguous name error when passing in fully qualified contract names. ([#944](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/944))
|
|
102
|
-
|
|
103
|
-
## 1.32.0 (2023-12-11)
|
|
104
|
-
|
|
105
|
-
- Support deploying proxies from OpenZeppelin Contracts 5.0. ([#919](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/919))
|
|
106
|
-
- Fix address clash when redeploying implementation. ([#939](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/939))
|
|
107
|
-
|
|
108
|
-
## 1.31.3 (2023-11-28)
|
|
109
|
-
|
|
110
|
-
- Fix Hardhat compile errors when contracts have overloaded functions or standalone NatSpec documentation. ([#918](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/918))
|
|
111
|
-
|
|
112
|
-
## 1.31.2 (2023-11-28)
|
|
113
|
-
|
|
114
|
-
- Fix `upgradeProxy` in Hardhat from an implementation that has a fallback function and is not using OpenZeppelin Contracts 5.0. ([#926](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/926))
|
|
115
|
-
|
|
116
|
-
## 1.31.1 (2023-11-01)
|
|
117
|
-
|
|
118
|
-
- CLI: Throw error if `--requireReference` and `--unsafeSkipStorageCheck` are both enabled. ([#913](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/913))
|
|
119
|
-
|
|
120
|
-
## 1.31.0 (2023-10-23)
|
|
121
|
-
|
|
122
|
-
- CLI: Add `--requireReference` option. ([#900](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/900))
|
|
123
|
-
- CLI: Simplify summary message when using `--contract`. ([#905](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/905))
|
|
124
|
-
|
|
125
|
-
## 1.30.1 (2023-10-11)
|
|
126
|
-
|
|
127
|
-
- Fix Hardhat compile error when using Solidity 0.5.x. ([#892](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/892))
|
|
128
|
-
|
|
129
|
-
## 1.30.0 (2023-09-27)
|
|
130
|
-
|
|
131
|
-
- Support new upgrade interface in OpenZeppelin Contracts 5.0. ([#883](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/883))
|
|
132
|
-
- Add validations for namespaced storage layout. ([#876](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/876))
|
|
133
|
-
- Deprecate low-level API. Use [CLI or high-level API](https://docs.openzeppelin.com/upgrades-plugins/1.x/api-core) instead.
|
|
134
|
-
|
|
135
|
-
## 1.29.0 (2023-09-19)
|
|
136
|
-
|
|
137
|
-
- Support implementations with upgradeTo or upgradeToAndCall. ([#880](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/880))
|
|
138
|
-
|
|
139
|
-
## 1.28.0 (2023-08-03)
|
|
140
|
-
|
|
141
|
-
- Support `contract` and `reference` options for CLI. ([#856](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/856))
|
|
142
|
-
|
|
143
|
-
## 1.27.3 (2023-07-12)
|
|
144
|
-
|
|
145
|
-
- Support user-defined value types in mappings. ([#844](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/844))
|
|
146
|
-
|
|
147
|
-
## 1.27.2 (2023-07-10)
|
|
148
|
-
|
|
149
|
-
- Allow assignment of immutable variables if the `state-variable-immutable` override is present. ([#838](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/838))
|
|
150
|
-
|
|
151
|
-
## 1.27.1 (2023-06-15)
|
|
152
|
-
|
|
153
|
-
- Update recommended Foundry config for CLI. ([#818](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/818))
|
|
154
|
-
|
|
155
|
-
## 1.27.0 (2023-06-14)
|
|
156
|
-
|
|
157
|
-
- Add CLI for upgrade safety checks. ([#807](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/807))
|
|
158
|
-
|
|
159
|
-
## 1.26.2 (2023-05-12)
|
|
160
|
-
|
|
161
|
-
- Add missing file in package. ([#797](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/797))
|
|
162
|
-
|
|
163
|
-
## 1.26.1 (2023-05-12)
|
|
164
|
-
|
|
165
|
-
- Use proxies from OpenZeppelin Contracts 4.8.3. ([#795](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/795))
|
|
166
|
-
|
|
167
|
-
## 1.26.0 (2023-05-08)
|
|
168
|
-
|
|
169
|
-
- Enable using OpenZeppelin Platform for deployments. ([#763](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/763))
|
|
170
|
-
|
|
171
|
-
**Note**: OpenZeppelin Platform is currently in beta and functionality related to it is subject to change.
|
|
172
|
-
|
|
173
|
-
## 1.25.0 (2023-04-26)
|
|
174
|
-
|
|
175
|
-
- Add support for Arbitrum to manifest file names. ([#770](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/770))
|
|
176
|
-
- Add support for Sepolia testnet to manifest file names. ([#766](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/766))
|
|
177
|
-
- Support `prepareUpgrade` from an implementation address. ([#777](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/777))
|
|
178
|
-
|
|
179
|
-
## 1.24.1 (2023-03-02)
|
|
180
|
-
|
|
181
|
-
- Remove test contracts from source code verification. ([#751](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/751))
|
|
182
|
-
|
|
183
|
-
## 1.24.0 (2023-02-14)
|
|
184
|
-
|
|
185
|
-
- Support Hardhat tests in --parallel mode when using Hardhat version 2.12.3 or later. ([#726](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/726))
|
|
186
|
-
- Support Hardhat forked networks when using Hardhat version 2.12.3 or later. ([#726](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/726))
|
|
187
|
-
- Add Foundry's anvil as a development network. ([#744](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/744))
|
|
188
|
-
|
|
189
|
-
## 1.23.0 (2023-02-09)
|
|
190
|
-
|
|
191
|
-
- Support storage gaps named with `__gap_*`. ([#732](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/732))
|
|
192
|
-
- Improve detection of storage gap usage. ([#731](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/731))
|
|
193
|
-
- Add support for Optimism to manifest filenames. ([#740](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/740))
|
|
194
|
-
|
|
195
|
-
## 1.22.0 (2023-01-31)
|
|
196
|
-
|
|
197
|
-
- Add support for Binance Smart Chain to manifest file names. ([#729](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/729))
|
|
198
|
-
- Improve compilation performance for validations. ([#724](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/724))
|
|
199
|
-
|
|
200
|
-
## 1.21.0 (2023-01-18)
|
|
201
|
-
|
|
202
|
-
- Add support for celo and celo-alfajores to manifest file names. ([#710](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/710))
|
|
203
|
-
- Only consider errors from functions in use. Validate free functions. ([#702](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/702))
|
|
204
|
-
- Improve handling of NatSpec comments. ([#717](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/717)) ([#720](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/720))
|
|
205
|
-
- Fix runtime type error. ([#721](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/721))
|
|
206
|
-
|
|
207
|
-
## 1.20.6 (2022-12-15)
|
|
208
|
-
|
|
209
|
-
- Fix display issue in storage layout reports. ([#699](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/699))
|
|
210
|
-
|
|
211
|
-
## 1.20.5 (2022-11-25)
|
|
212
|
-
|
|
213
|
-
- Fix incompatible type error when upgrading from mapping with strings ([#689](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/689))
|
|
214
|
-
- Support retype from contract, interface, struct or enum to address. ([#687](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/687))
|
|
215
|
-
|
|
216
|
-
## 1.20.4 (2022-11-03)
|
|
217
|
-
|
|
218
|
-
- Support multiple contracts with same name. ([#263](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/263))
|
|
219
|
-
|
|
220
|
-
## 1.20.3 (2022-11-02)
|
|
221
|
-
|
|
222
|
-
- Use underlying type of user defined value types in the storage layout for layout comparison. ([#682](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/682))
|
|
223
|
-
|
|
224
|
-
## 1.20.2 (2022-10-26)
|
|
225
|
-
|
|
226
|
-
- Add underlying type of user defined value types in the storage layout. ([#681](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/681))
|
|
227
|
-
|
|
228
|
-
## 1.20.1 (2022-10-04)
|
|
229
|
-
|
|
230
|
-
- Fix parsing of renamed/retyped annotations. ([#666](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/666))
|
|
231
|
-
- Fix treatment of type ids for user defined value types. ([#671](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/671))
|
|
232
|
-
|
|
233
|
-
## 1.20.0 (2022-09-27)
|
|
234
|
-
|
|
235
|
-
- Support user defined value types. ([#658](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/658))
|
|
236
|
-
- Include solc version in storage layouts in manifest files. ([#662](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/662))
|
|
237
|
-
|
|
238
|
-
## 1.19.1 (2022-09-10)
|
|
239
|
-
|
|
240
|
-
- Fix missing module. ([#652](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/652))
|
|
241
|
-
|
|
242
|
-
## 1.19.0 (2022-09-10)
|
|
243
|
-
|
|
244
|
-
- Add support for avalanche and avalanche-fuji to manifest file names. ([#622](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/622))
|
|
245
|
-
- Support storage layout gaps. ([#276](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/276))
|
|
246
|
-
|
|
247
|
-
## 1.18.0 (2022-08-08)
|
|
248
|
-
|
|
249
|
-
- Provide granular functions to allow more customizable deployments. ([#580](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/580))
|
|
250
|
-
|
|
251
|
-
## 1.17.0 (2022-07-26)
|
|
252
|
-
|
|
253
|
-
- Remove BN.js in favor of native BigInt. ([#602](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/602))
|
|
254
|
-
- Add support for additional network names in network manifest. ([#547](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/547))
|
|
255
|
-
|
|
256
|
-
## 1.16.1 (2022-06-16)
|
|
257
|
-
|
|
258
|
-
- Fix VM execution error in `proposeUpgrade` with Gnosis Chain. ([#597](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/597))
|
|
259
|
-
|
|
260
|
-
## 1.16.0 (2022-06-16)
|
|
261
|
-
|
|
262
|
-
- Return ethers transaction response with `proposeUpgrade`. ([#554](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/554))
|
|
263
|
-
|
|
264
|
-
## 1.15.0 (2022-05-31)
|
|
265
|
-
|
|
266
|
-
- Support `unsafeSkipStorageCheck` option in `ValidationOptions`. ([#566](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/566))
|
|
267
|
-
- Support verifying a proxy on Etherscan using Hardhat. ([#579](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/579))
|
|
268
|
-
|
|
269
|
-
## 1.14.2 (2022-04-18)
|
|
270
|
-
|
|
271
|
-
- Fix handling of rename annotations when unchanged from one version to the next. ([#558](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/558))
|
|
272
|
-
|
|
273
|
-
## 1.14.1 (2022-03-16)
|
|
274
|
-
|
|
275
|
-
- Fix interference with other Hardhat plugins that use the AST. ([#541](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/541))
|
|
276
|
-
|
|
277
|
-
## 1.14.0 (2022-03-14)
|
|
278
|
-
|
|
279
|
-
- Add support for function types in storage layout. ([#529](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/529))
|
|
280
|
-
- Add ability to change a variable type or name through `/// @custom:oz-renamed-from abc` and `/// @custom:oz-retyped-from bool`. ([#531](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/531))
|
|
281
|
-
|
|
282
|
-
## 1.13.1 (2022-03-08)
|
|
283
|
-
|
|
284
|
-
- Fix bug that caused missing members when using solc storageLayout. ([#534](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/534))
|
|
285
|
-
|
|
286
|
-
## 1.13.0 (2022-03-01)
|
|
287
|
-
|
|
288
|
-
- Remove `admin.deployTransaction` field written to network manifest. ([#510](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/510))
|
|
289
|
-
- Add `forceImport` function to import an existing proxy or beacon. ([#517](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/517))
|
|
290
|
-
- Extract and store more detailed information about storage layout. ([#519](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/519))
|
|
291
|
-
|
|
292
|
-
## 1.12.0 (2022-01-31)
|
|
293
|
-
|
|
294
|
-
- Add options `timeout` and `pollingInterval`. ([#55](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/55))
|
|
295
|
-
|
|
296
|
-
## 1.11.1 (2022-01-20)
|
|
297
|
-
|
|
298
|
-
- Fix error when proposing upgrade to Infura. ([#503](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/503))
|
|
299
|
-
|
|
300
|
-
## 1.11.0 (2022-01-12)
|
|
301
|
-
|
|
302
|
-
- Add support for beacon proxies. ([#342](https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/342))
|
|
303
|
-
|
|
304
|
-
## 1.10.0 (2021-10-22)
|
|
305
|
-
|
|
306
|
-
- Infer whether a proxy should be UUPS or Transparent. ([#441](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/441))
|
|
307
|
-
- Add a standalone interface to the core. ([#442](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/442))
|
|
308
|
-
- Add implementation constructor arguments to initialize immutable variables. ([#433](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/433))
|
|
309
|
-
|
|
310
|
-
## 1.9.2 (2021-09-17)
|
|
311
|
-
|
|
312
|
-
- Fix a bug where libraries used transitively were not considered for safety checks.
|
|
313
|
-
|
|
314
|
-
## 1.9.1 (2021-09-15)
|
|
315
|
-
|
|
316
|
-
- Silence all warnings when using `silenceWarnings`.
|
|
317
|
-
|
|
318
|
-
## 1.9.0 (2021-08-25)
|
|
319
|
-
|
|
320
|
-
- Add `getBeaconAddress`. ([#413](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/413))
|
|
321
|
-
|
|
322
|
-
## 1.8.1 (2021-08-06)
|
|
323
|
-
|
|
324
|
-
- Add support for function types.
|
|
325
|
-
|
|
326
|
-
## 1.8.0 (2021-06-29)
|
|
327
|
-
|
|
328
|
-
- Add option `unsafeAllowRenames` to configure storage layout check to allow variable renaming.
|
|
329
|
-
|
|
330
|
-
## 1.7.6 (2021-05-25)
|
|
331
|
-
|
|
332
|
-
- Fix recognition of value types in storage layouts.
|
|
333
|
-
|
|
334
|
-
## 1.7.5 (2021-05-22)
|
|
335
|
-
|
|
336
|
-
- Fix exception when upgrading mapping key to enum.
|
|
337
|
-
|
|
338
|
-
## 1.7.4 (2021-05-22)
|
|
339
|
-
|
|
340
|
-
- Fix handling of functions with struct or mapping storage pointer arguments.
|
|
341
|
-
|
|
342
|
-
## 1.7.3 (2021-05-13)
|
|
343
|
-
|
|
344
|
-
- Simplify clean up of manifest data before storing to disk.
|
|
345
|
-
|
|
346
|
-
## 1.7.2 (2021-05-13)
|
|
347
|
-
|
|
348
|
-
- Fix bug when the project uses external libraries.
|
|
349
|
-
|
|
350
|
-
## 1.7.1 (2021-05-03)
|
|
351
|
-
|
|
352
|
-
- Use `web3_clientVersion` to better detect development networks.
|
|
353
|
-
|
|
354
|
-
## 1.7.0 (2021-04-29)
|
|
355
|
-
|
|
356
|
-
- Add support for UUPS proxies. ([#315](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/315))
|
|
357
|
-
- Fix parsing of NatSpec `@custom:oz-upgrades-unsafe-allow` when included in a `/**`-style comment.
|
|
358
|
-
|
|
359
|
-
## 1.6.0 (2021-04-14)
|
|
360
|
-
- Add `unsafeAllow` as a new field in `ValidationOptions`, which can be used as a manual override to silence any type of validation error. For example, `opts = { unsafeAllow: ['external-library-linking', 'delegatecall'] }` will silence the corresponding checks. ([#320](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/320))
|
|
361
|
-
- Custom NatSpec comments can disable error checks directly from the Solidity code. See `core/contracts/test/ValidationNatspec.sol` for example usage of these NatSpec comments. Note: this requires Solidity >=0.8.2. ([#320](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/320))
|
|
362
|
-
- Fix a bug with library placeholders when hashing contract source code. ([#320](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/320))
|
|
363
|
-
|
|
364
|
-
## 1.5.1 (2021-02-24)
|
|
365
|
-
|
|
366
|
-
- Add support for enum keys in mappings. ([#301](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/301))
|
|
367
|
-
|
|
368
|
-
## 1.5.0 (2021-01-27)
|
|
369
|
-
|
|
370
|
-
- Add support for structs and enums. ([#261](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/261))
|
|
371
|
-
- Enable optimizations when compiling proxies.
|
|
372
|
-
|
|
373
|
-
## 1.4.4 (2021-01-14)
|
|
374
|
-
|
|
375
|
-
- Fix `InvalidDeployment` error on some networks. ([#282](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/282))
|
|
376
|
-
|
|
377
|
-
## 1.4.3 (2020-12-21)
|
|
378
|
-
|
|
379
|
-
- Fix a type error caused by duplicate contract names in Truffle.
|
|
380
|
-
|
|
381
|
-
## 1.4.2 (2020-12-16)
|
|
382
|
-
|
|
383
|
-
- Fix an error in the `unsafeAllowCustomTypes` flag that would cause other storage layout incompatibilities to be ignored. ([#259](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/259))
|
|
384
|
-
|
|
385
|
-
Users of this flag are advised to update to this version.
|
|
386
|
-
|
|
387
|
-
## 1.4.1 (2020-11-30)
|
|
388
|
-
|
|
389
|
-
- Fix a problem in deployment logic when used with Hyperledger Besu. ([#244](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/244))
|
|
390
|
-
|
|
391
|
-
## 1.4.0 (2020-11-24)
|
|
392
|
-
|
|
393
|
-
- Add `silenceWarnings` to emit a single warning and silence all subsequent ones. ([#228](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/228))
|
|
394
|
-
|
|
395
|
-
## 1.3.1 (2020-11-13)
|
|
396
|
-
|
|
397
|
-
- Add missing artifact files in the package.
|
|
398
|
-
|
|
399
|
-
## 1.3.0 (2020-11-13)
|
|
400
|
-
|
|
401
|
-
- Support Hardhat. ([#214](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/214))
|
|
402
|
-
|
|
403
|
-
## 1.2.0 (2020-10-16)
|
|
404
|
-
|
|
405
|
-
- Support new flag `unsafeAllowLinkedLibraries` to allow deployment of contracts with linked libraries. ([#182](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/182))
|
|
406
|
-
|
|
407
|
-
## 1.1.1 (2020-10-08)
|
|
408
|
-
|
|
409
|
-
- Fix OpenZeppelin CLI migration for projects that were initialized with ZeppelinOS. ([#193](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/193))
|
|
410
|
-
|
|
411
|
-
## 1.1.0 (2020-09-18)
|
|
412
|
-
|
|
413
|
-
- Add ability to migrate from OpenZeppelin CLI. ([#143](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/143))
|
|
414
|
-
|
|
415
|
-
## 1.0.2 (2020-09-16)
|
|
416
|
-
|
|
417
|
-
- Fix false positive variable initialization check in Solidity 0.7.1. ([#171](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/171))
|
|
418
|
-
|
|
419
|
-
## 1.0.1 (2020-09-01)
|
|
420
|
-
|
|
421
|
-
- Include `src` directory in npm packages. ([#150](https://github.com/OpenZeppelin/openzeppelin-upgrades/pull/150))
|