Skip to content

chore(deps): update dependency prettier-plugin-solidity to v2.3.1#111

Open
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/prettier-plugin-solidity-2.x
Open

chore(deps): update dependency prettier-plugin-solidity to v2.3.1#111
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/prettier-plugin-solidity-2.x

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate bot commented Nov 9, 2025

This PR contains the following updates:

Package Change Age Confidence
prettier-plugin-solidity 2.1.02.3.1 age confidence

Release Notes

prettier-solidity/prettier-plugin-solidity (prettier-plugin-solidity)

v2.3.1

Compare Source

What's Changed

// prettier-plugin-solidity 2.3.0
address payable public valueInParentheses =
    (
        FancyLibrary.functionCall(
            data.data1,
            data.data2,
            IERC20(data.token).decimals(),
            currency
        )
    );

// prettier-plugin-solidity 2.3.1
address payable public valueInParentheses = (
    FancyLibrary.functionCall(
        data.data1,
        data.data2,
        IERC20(data.token).decimals(),
        currency
    )
);

Full Changelog: prettier-solidity/prettier-plugin-solidity@v2.3.0...v2.3.1

v2.3.0

Compare Source

What's Changed

Format changes

We had to address formatting choices rather than just fixing formatting bugs thus there was a need to publish a new minor release.

  • standardising all assignment types by @​Janther in #​1437
    There are 4 ways to assign a value to a variable and in each one we used to have a slightly different logic.

    // Constant Definition
    uint constant FOO_BAR = 0x1234;
    
    contract Foo {
        // State Variable Definition
        uint foo = 0x1234;
    
        function bar() {
            // Variable Declaration
            uint foobar = 0x5678;
    
            // Assignment Expression
            foobar = 0xabcd;
        }
    }

    This is likely going to impact variable definitions where the initial value was a long expression.

    // prettier-plugin-solidity@2.2.1
    contract Foo {
        bool success = aggregator1 == address(uint160(SIG_VALIDATION_SUCCESS)) &&
            aggregator2 == address(uint160(SIG_VALIDATION_SUCCESS));
    
        bytes32 public constant BALLOT_TYPEHASH =
            keccak256("Ballot(uint256 proposalId,uint8 support,address voter,uint256 nonce)");
    }
    
    // prettier-plugin-solidity@2.3.0
    contract Foo {
        bool success =
            aggregator1 == address(uint160(SIG_VALIDATION_SUCCESS)) &&
                aggregator2 == address(uint160(SIG_VALIDATION_SUCCESS));
    
        bytes32 public constant BALLOT_TYPEHASH = keccak256(
            "Ballot(uint256 proposalId,uint8 support,address voter,uint256 nonce)"
        );
    }
  • Variables initiated with a multipart string are now indented by @​Janther in #​1436

    // prettier-plugin-solidity@2.2.1
    contract Foo {
        string public constant str =
            "DeadBeef00"
            "DeadBeef01"
            "DeadBeef02";
        function bar() public {
            string str = "DeadBeef03"
            "DeadBeef04"
            "DeadBeef05";
            str = "DeadBeef0a"
            "DeadBeef0b"
            "DeadBeef0c";
        }
    }
    
    // prettier-plugin-solidity@2.3.0
    contract Foo {
        string public constant str =
            "DeadBeef00"
            "DeadBeef01"
            "DeadBeef02";
        function bar() public {
            string str =
                "DeadBeef03"
                "DeadBeef04"
                "DeadBeef05";
            str =
                "DeadBeef0a"
                "DeadBeef0b"
                "DeadBeef0c";
        }
    }

    Notice how the state variable was already formatting correctly thus making clear the need to standardise the value assingments.

  • remove indentation of a logical operation if it's the operand of a conditional by @​Janther in #​1441

    // prettier-plugin-solidity@2.2.1
    uint foo =
        longCondition1 ||
            longCondition2
            ? 1234567890 
            : 9876543210;
    
    // prettier-plugin-solidity@2.3.0
    uint foo =
        longCondition1 ||
        longCondition2
            ? 1234567890 
            : 9876543210;
Dependencies
Behaviour changes
  • Prettier can format multiple files in parallel and this plugin is now multi-thread safe by @​Janther in #​1393
Internal changes
  • Keeping with continuously improving code speed, size and simplicity. There has been a lot of progress in reducing the size and repetition of steps while keeping or improving the execution time.
  • A few bugs if some rare format cases were addressed.
Development changes
  • Improved the code coverage to include all possible edge cases of Slang's AST. by @​Janther in #​1425
  • Improved the types, to be more descriptive and accurate to each scenario.

Full Changelog: prettier-solidity/prettier-plugin-solidity@v2.2.1...v2.3.0

v2.2.1

Compare Source

What's Changed

Release with @nomicfoundation/slang version 1.3.1 which adds support for solidity 0.8.31.

Full Changelog: prettier-solidity/prettier-plugin-solidity@v2.2.0...v2.2.1

v2.2.0

Compare Source

What's Changed

Format fixes
Behaviour changes
Internal changes

There has been a lot of work put into simplifying the printing flow avoiding extra steps and cleaning up the patterns in the printing functions across the codebase. There has been a noticeable improvement in the execution speed and cleaner codebase.

Development changes

Full Changelog: prettier-solidity/prettier-plugin-solidity@v2.1.0...v2.2.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Nov 9, 2025
@renovate renovate bot force-pushed the renovate/prettier-plugin-solidity-2.x branch from 41a7079 to f6380ee Compare December 21, 2025 21:56
@renovate renovate bot changed the title chore(deps): update dependency prettier-plugin-solidity to v2.2.0 chore(deps): update dependency prettier-plugin-solidity to v2.2.1 Dec 21, 2025
@renovate renovate bot force-pushed the renovate/prettier-plugin-solidity-2.x branch from f6380ee to 5b5c55c Compare February 12, 2026 18:36
@renovate renovate bot force-pushed the renovate/prettier-plugin-solidity-2.x branch from 5b5c55c to 2b0daee Compare March 13, 2026 21:06
@renovate renovate bot changed the title chore(deps): update dependency prettier-plugin-solidity to v2.2.1 chore(deps): update dependency prettier-plugin-solidity to v2.3.0 Mar 13, 2026
@renovate renovate bot force-pushed the renovate/prettier-plugin-solidity-2.x branch from 2b0daee to de88399 Compare March 15, 2026 13:27
@renovate renovate bot changed the title chore(deps): update dependency prettier-plugin-solidity to v2.3.0 chore(deps): update dependency prettier-plugin-solidity to v2.3.1 Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants