Skip to content

Commit

Permalink
Remove unused dependencies (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau authored Jan 20, 2025
1 parent f11dcb1 commit 6284e0b
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 539 deletions.
1 change: 1 addition & 0 deletions packages/core-cairo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

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

## 0.21.0 (2025-01-13)

Expand Down
7 changes: 0 additions & 7 deletions packages/core-cairo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,12 @@
"version": "node ../../scripts/bump-changelog.js"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
"@types/node": "^18.0.0",
"@types/semver": "^7.5.7",
"array.prototype.flat": "^1.2.4",
"ava": "^6.0.0",
"rimraf": "^5.0.0",
"ts-node": "^10.4.0",
"typescript": "^5.0.0",
"semver": "^7.6.0"
},
"dependencies": {
"array.prototype.flatmap": "^1.2.4",
"bn.js": "^5.2.0",
"ethereum-cryptography": "^3.0.0"
}
}
2 changes: 0 additions & 2 deletions packages/core-cairo/src/print.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'array.prototype.flatmap/auto';

import type { Contract, Component, Argument, Value, Impl, ContractFunction, ImplementedTrait, UseClause, } from './contract';

import { formatLines, spaceBetween, Lines } from './utils/format-lines';
Expand Down
2 changes: 0 additions & 2 deletions packages/core-cairo/src/utils/format-lines.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'array.prototype.flatmap/auto';

export type Lines = string | typeof whitespace | Lines[];

const whitespace = Symbol('whitespace');
Expand Down
1 change: 1 addition & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

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

- **Breaking changes**:
- Update Contracts Wizard license to AGPLv3. ([#424](https://github.com/OpenZeppelin/contracts-wizard/pull/424))
Expand Down
2 changes: 0 additions & 2 deletions packages/core/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ const {
} = require('hardhat/builtin-tasks/task-names');
const SOLIDITY_VERSION = require('./src/solidity-version.json');

require('array.prototype.flat/auto');

// Unused parameter warnings are caused by OpenZeppelin Upgradeable Contracts.
const WARN_UNUSED_PARAMETER = '5667';
const WARN_CODE_SIZE = '5574';
Expand Down
4 changes: 0 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@openzeppelin/contracts-upgradeable": "^5.1.0",
"@types/node": "^18.0.0",
"@types/semver": "^7.5.7",
"array.prototype.flat": "^1.2.4",
"ava": "^6.0.0",
"hardhat": "^2.1.1",
"jszip": "^3.6.0",
Expand All @@ -36,8 +35,5 @@
"solidity-ast": "^0.4.18",
"ts-node": "^10.4.0",
"typescript": "^5.0.0"
},
"dependencies": {
"array.prototype.flatmap": "^1.2.4"
}
}
2 changes: 0 additions & 2 deletions packages/core/src/print.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'array.prototype.flatmap/auto';

import type { Contract, Parent, ContractFunction, FunctionArgument, Value, NatspecTag, ImportContract } from './contract';
import { Options, Helpers, withHelpers } from './options';

Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/utils/format-lines.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'array.prototype.flatmap/auto';

export type Lines = string | typeof whitespace | Lines[];

const whitespace = Symbol('whitespace');
Expand Down
Loading

0 comments on commit 6284e0b

Please sign in to comment.