Skip to content

Commit 6284e0b

Browse files
authored
Remove unused dependencies (#430)
1 parent f11dcb1 commit 6284e0b

File tree

10 files changed

+14
-539
lines changed

10 files changed

+14
-539
lines changed

packages/core-cairo/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Update to use TypeScript v5. ([#231](https://github.com/OpenZeppelin/contracts-wizard/pull/231))
6+
- Remove unused dependencies. ([#430](https://github.com/OpenZeppelin/contracts-wizard/pull/430))
67

78
## 0.21.0 (2025-01-13)
89

packages/core-cairo/package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,12 @@
2222
"version": "node ../../scripts/bump-changelog.js"
2323
},
2424
"devDependencies": {
25-
"@types/bn.js": "^5.1.0",
2625
"@types/node": "^18.0.0",
2726
"@types/semver": "^7.5.7",
28-
"array.prototype.flat": "^1.2.4",
2927
"ava": "^6.0.0",
3028
"rimraf": "^5.0.0",
3129
"ts-node": "^10.4.0",
3230
"typescript": "^5.0.0",
3331
"semver": "^7.6.0"
34-
},
35-
"dependencies": {
36-
"array.prototype.flatmap": "^1.2.4",
37-
"bn.js": "^5.2.0",
38-
"ethereum-cryptography": "^3.0.0"
3932
}
4033
}

packages/core-cairo/src/print.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'array.prototype.flatmap/auto';
2-
31
import type { Contract, Component, Argument, Value, Impl, ContractFunction, ImplementedTrait, UseClause, } from './contract';
42

53
import { formatLines, spaceBetween, Lines } from './utils/format-lines';

packages/core-cairo/src/utils/format-lines.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'array.prototype.flatmap/auto';
2-
31
export type Lines = string | typeof whitespace | Lines[];
42

53
const whitespace = Symbol('whitespace');

packages/core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Update to use TypeScript v5. ([#231](https://github.com/OpenZeppelin/contracts-wizard/pull/231))
6+
- Remove unused dependencies. ([#430](https://github.com/OpenZeppelin/contracts-wizard/pull/430))
67

78
- **Breaking changes**:
89
- Update Contracts Wizard license to AGPLv3. ([#424](https://github.com/OpenZeppelin/contracts-wizard/pull/424))

packages/core/hardhat.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ const {
88
} = require('hardhat/builtin-tasks/task-names');
99
const SOLIDITY_VERSION = require('./src/solidity-version.json');
1010

11-
require('array.prototype.flat/auto');
12-
1311
// Unused parameter warnings are caused by OpenZeppelin Upgradeable Contracts.
1412
const WARN_UNUSED_PARAMETER = '5667';
1513
const WARN_CODE_SIZE = '5574';

packages/core/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"@openzeppelin/contracts-upgradeable": "^5.1.0",
2828
"@types/node": "^18.0.0",
2929
"@types/semver": "^7.5.7",
30-
"array.prototype.flat": "^1.2.4",
3130
"ava": "^6.0.0",
3231
"hardhat": "^2.1.1",
3332
"jszip": "^3.6.0",
@@ -36,8 +35,5 @@
3635
"solidity-ast": "^0.4.18",
3736
"ts-node": "^10.4.0",
3837
"typescript": "^5.0.0"
39-
},
40-
"dependencies": {
41-
"array.prototype.flatmap": "^1.2.4"
4238
}
4339
}

packages/core/src/print.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'array.prototype.flatmap/auto';
2-
31
import type { Contract, Parent, ContractFunction, FunctionArgument, Value, NatspecTag, ImportContract } from './contract';
42
import { Options, Helpers, withHelpers } from './options';
53

packages/core/src/utils/format-lines.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'array.prototype.flatmap/auto';
2-
31
export type Lines = string | typeof whitespace | Lines[];
42

53
const whitespace = Symbol('whitespace');

0 commit comments

Comments
 (0)