Skip to content

Releases: prettier-solidity/prettier-plugin-solidity

v1.0.0-beta.16

15 Jul 20:49
b488f73
Compare
Choose a tag to compare
v1.0.0-beta.16 Pre-release
Pre-release

This release contains a bug fix and an improvement in our opinionated standardised code.

  • (#557) We fixed a problem in our indentation in MemberAccess chains.
// input
int256 amount = SafeCast.toInt256(amount.mul(10**(18 - underlyingAssetDecimals))).neg();

// v1.0.0-beta.15
int256 amount = SafeCast
.toInt256(amount.mul(10**(18 - underlyingAssetDecimals)))
.neg();

// v1.0.0-beta.16
int256 amount = SafeCast
    .toInt256(amount.mul(10**(18 - underlyingAssetDecimals)))
    .neg();
  • (#555) We also made the decision to enforce parentheses in ModifierDeclarations without parameters,
// input
modifier onlyOwner {
    require(owner() == _msgSender(), "Ownable: caller is not the owner");
    _;
}

// v1.0.0-beta.15
modifier onlyOwner {
    require(owner() == _msgSender(), "Ownable: caller is not the owner");
    _;
}

// v1.0.0-beta.16
modifier onlyOwner() {
    require(owner() == _msgSender(), "Ownable: caller is not the owner");
    _;
}

and remove them from ModifierInvocations without arguments.

// input
function renounceOwnership() public virtual onlyOwner() {
    _setOwner(address(0));
}

// v1.0.0-beta.15
function renounceOwnership() public virtual onlyOwner() {
    _setOwner(address(0));
}

// v1.0.0-beta.16
function renounceOwnership() public virtual onlyOwner {
    _setOwner(address(0));
}

v1.0.0-beta.15

11 Jul 01:37
64ad76f
Compare
Choose a tag to compare
v1.0.0-beta.15 Pre-release
Pre-release

This release adds a runtime security check for Prettier's version.
The printing process will throw if Prettier's version does not satisfy the range >=2.3.0

v1.0.0-beta.14

07 Jul 23:05
1da60ad
Compare
Choose a tag to compare
v1.0.0-beta.14 Pre-release
Pre-release

Release v1.0.0-beta.14 comes with a new option for the configuration file. You can use the compiler option to help prettier-plugin-solidity choose a appropriate formats.

along this mayor change the release includes these other minor changes:

v1.0.0-beta.13

07 Jun 00:55
7092f00
Compare
Choose a tag to compare
v1.0.0-beta.13 Pre-release
Pre-release

Description

In v1.0.0-beta.12 we used a new feature provided by prettier 2.3.0 that allowed us to simplify our codebase drastically. However Prettier was declared as a dependency, thus nom did not enforce the installation of prettier v2.3.0 in existing projects. By declaring it as a peerDependency we hope to warn developers of the new requirement.

v1.0.0-beta.12

06 Jun 05:44
40f3aa7
Compare
Choose a tag to compare
v1.0.0-beta.12 Pre-release
Pre-release

Description

Wow, huge release; thanks @Janther and @fvictorio

v1.0.0-beta.11

26 May 12:52
4fdea82
Compare
Choose a tag to compare
v1.0.0-beta.11 Pre-release
Pre-release

Description

v1.0.0-beta.10

21 Apr 19:58
0519b7f
Compare
Choose a tag to compare
v1.0.0-beta.10 Pre-release
Pre-release

Description

v1.0.0-beta.9

16 Apr 01:23
ae30179
Compare
Choose a tag to compare
v1.0.0-beta.9 Pre-release
Pre-release

Description

v1.0.0-beta.8

12 Apr 00:26
0017c67
Compare
Choose a tag to compare
v1.0.0-beta.8 Pre-release
Pre-release

Description

v1.0.0-beta.7

01 Apr 00:42
e913ed0
Compare
Choose a tag to compare
v1.0.0-beta.7 Pre-release
Pre-release

Description

shout out to @Janther for this one 🎉