Update dependency prettier-plugin-solidity to v1.4.3#106
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Update dependency prettier-plugin-solidity to v1.4.3#106renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
c7521fb to
a5251d2
Compare
aa6f6b2 to
a5251d2
Compare
a5251d2 to
c75019f
Compare
c75019f to
e0bdd0e
Compare
e0bdd0e to
8c2e015
Compare
8c2e015 to
01257a9
Compare
01257a9 to
588667b
Compare
588667b to
1ecbead
Compare
1ecbead to
e101a01
Compare
e101a01 to
2333384
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.0.0-beta.19→1.4.3Release Notes
prettier-solidity/prettier-plugin-solidity (prettier-plugin-solidity)
v1.4.3Compare Source
What's Changed
Full Changelog: prettier-solidity/prettier-plugin-solidity@v1.4.2...v1.4.3
v1.4.2Compare Source
New features
transientkeyword by @Janther in #1079Format changes
Breaking changes
Full Changelog: prettier-solidity/prettier-plugin-solidity@v1.4.1...v1.4.2
v1.4.1Compare Source
@pcaversaccio let us know that one of our formatting decisions was formatting an expected result so this was quickly reverted to the previous standard.
v1.4.0Compare Source
As we are preparing for a version 2.0.0 of this plugin there were a few tweaks in the formatting that we needed to address before proceeding forward.
Empty assembly blocks
Assembly stack assignments
In versions of Solidity prior to v0.5.0 there was a syntax called stack assignment where the last value of the stack would be allocated to a variable. This statement is independent of what happens before it but in some cases the developer could write it in the same line as the last statement.
So far we have been formatting this in the same line as the previous statement but since in v2.0.0 we will have access to an AST much closer to the actual grammar of solidity, it makes more sense to keep it in a separate statement.
HexLiterals in multiple lines
Solidity allows to declare long HexLiterals as a list of HexLiterals separated by white space. The only reason for using this feature is to display said HexLiteral in multiple lines.
Modifier Definitions and Function TypeNames
These 2 cases should format in the same way a function definition does but they remained with separate behaviours.
There are no comments for the else keyword
As we moved into v2.0.0 we got to review many of the formatting prettier inspired us that were in the backlog.
This particular decision had already been changed prettier and we base our work on old code released by prettier. @pcaversaccio very diligently let us notice that this could not be reproduced in prettier, therefore it was quickly reverted in v1.4.1
v1.3.1Compare Source
Needed to put a specific
experimentalTernariesbehaviour behind a feature flag. (thanks @pcaversaccio)v1.3.0Compare Source
This version ships with 2 substantial changes.
externalTernaries, so we invite people to start experimenting with it and give us some feedback. (#953)v1.2.0Compare Source
A few improvements on this release:
.cjsextensionprettier-plugin-solidity/standalone1000e-2(solidity-parser/parser#95)A few tweaks in the code and refactor for simplicity and efficiency.
v1.1.3Compare Source
This version adds support for user-defined operators, a feature introduced in Solidity 0.8.19.
v1.1.2Compare Source
This version adds support for named parameters in mappings, introduced in Solidity 0.8.18. This means you can add names to your mappings parameters:
and Prettier Solidity will format it correctly.
Thanks to @zemse for working on this!
v1.1.1Compare Source
With this version we started supporting prettier V3 which at the moment it's in their
3.0.0-alpha.4version. (#757)Some internal tweaks and removed some dependencies that were no longer used. (thanks to @frangio for noticing #780)
v1.1.0Compare Source
With this version, we are releasing a standalone build (#727).
It follows the same patterns Prettier uses for their internal plugins such as UMD.
Hopefully this will make integration for projects based on the browser easy and will be automatically shipped on each release to http://unpkg.com/prettier-plugin-solidity@latest.
We also took care of a small bug that would print an extra line when formatting solidity code within a markdown code block (#765).
v1.0.0Compare Source
We are happy to release the first stable version of Prettier Solidity! 🎉 🎉
What does this mean for you as a user? Semantic versioning doesn't make a lot of sense for a formatter, so it's hard to give hard rules about what will be the meaning of future versions. But we'll try to follow these guidelines:
What separates a "very minor formatting change" from a "bigger one" is hard to define precisely, of course, so some of these decisions will be very subjective, but we'll try to do our best.
Thanks for using our plugin and remember to star the repo! ⭐
v1.0.0-rc.1Compare Source
This is our first release candidate for a stable v1.0.0!
This version includes some significant changes:
explicitTypesoption, since we believe that this belongs to a linter. The behavior now is the same one that you would get if usingexplicitTypes: "preserve", meaning that we'll never convert anuintto anuint256or vice versa.line-width. Plus, the way this works is that first the parameters are split, then the modifiers (if they also don't fit in a single line), and finally the return parameters (also only if they don't fit).**) now has spaces around it. This is more consistent with other operators, and it looks better for long variable names (that is,base ** decimalsis better thanbase**decimals). We do know that this is not as nice for some cases (2 ** 10), but we are erring on the side of consistency and a better worst-case scenario.As an example, a function like this:
would be formatted in the previous version like this:
and now it will be formatted like this:
Please upgrade to the latest version and let us if you find any issues!
v1.0.0-dev.24Compare Source
v1.0.0-dev.23Compare Source
v1.0.0-dev.22Compare Source
This new release provides some bug fixes and new formatting added by solidity.
#643
#683
#685
#693
#694
v1.0.0-dev.21Compare Source
v1.0.0-beta.24Compare Source
v1.0.0-beta.20Compare Source
Configuration
📅 Schedule: 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.
This PR was generated by Mend Renovate. View the repository job log.