@diamondslab/diamonds 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,43 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@diamondslab/diamonds` are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.3.3] - 2026-06-27
9
+
10
+ ### Fixed
11
+
12
+ - **Build / types:** Pinned `@nomicfoundation/hardhat-ethers` to `^3.1.2`. It was
13
+ floated to `*`, which under a standalone install resolved to the Hardhat 3 plugin
14
+ (v4) and broke the build: `hre.ethers` lost its type augmentation
15
+ (`Property 'ethers' does not exist on type 'HardhatRuntimeEnvironment'`) and a
16
+ second `ethers` copy caused `Signer`/`Provider` type mismatches in `src/utils/signer.ts`.
17
+ - **Deployment:** `BaseDeploymentStrategy` now emits replace facet selectors for
18
+ `deployInclude` (they were previously omitted).
19
+ - **Signers:** `impersonateAndFundSigner` constructs a `JsonRpcSigner` directly for a
20
+ `JsonRpcProvider` instead of calling `getSigner()`, which throws "invalid account"
21
+ for impersonated accounts under ethers v6.
22
+ - **TypeScript:** Removed `downlevelIteration` from `tsconfig.json`.
23
+ - **Build:** `build` now runs `rimraf dist tsconfig.tsbuildinfo && tsc`, so a stale
24
+ incremental cache can no longer produce an empty `dist/` (e.g. after `rm -rf dist`).
25
+ - **`diamond-abi` CLI:** Restored — the source had been accidentally deleted by an
26
+ unrelated commit. It now ships as a working `bin`: moved to `src/cli/diamond-abi-cli.ts`
27
+ (so it compiles into `dist/cli/`), Hardhat is loaded lazily so `validate` and `compare`
28
+ run without a chain, and `bin` points at `dist/cli/diamond-abi-cli.js`. The previous
29
+ `bin` (`dist/scripts/diamond-abi-cli.js`) was never produced and never worked.
30
+
31
+ ### Added
32
+
33
+ - `LICENSE` file (MIT). It was declared in `package.json` (`license` + `files[]`) but
34
+ was missing from the package.
35
+
36
+ ### Changed
37
+
38
+ - Rewrote `README.md` and corrected docs: package name `@geniusventures/diamonds` →
39
+ `@diamondslab/diamonds`, `yarn` commands instead of `npm`, all imports use the package
40
+ root (the `/strategies` and `/utils` subpaths are not exported), and
41
+ `OZDefenderDeploymentStrategy` is marked legacy.
42
+
43
+ [1.3.3]: https://github.com/DiamondsLab/diamonds/compare/v1.3.2...v1.3.3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 DiamondsLab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.