prettier-config-solidity
prettier-config-solidity copied to clipboard
npm(deps): bump prettier-plugin-solidity from 1.0.0-dev.22 to 1.0.0
Bumps prettier-plugin-solidity from 1.0.0-dev.22 to 1.0.0.
Release notes
Sourced from prettier-plugin-solidity's releases.
v1.0.0
We are happy to release the first stable version of Prettier Solidity! :tada: :tada:
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:
- We won't make big formatting changes within the same major version. For example, you shouldn't get all your function signatures changed just because you upgraded to, say, v1.1.0.
- We won't remove any option within the same major version.
- We'll use patch versions (e.g., moving from 1.2.3 to 1.2.4) for bug fixes and very minor formatting changes.
- We'll use minor versions (e.g., moving from 1.2.3 to 1.3.0) for new language constructs, new options (if any) and somewhat bigger formatting changes.
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! :star:
v1.0.0-rc.1
This is our first release candidate for a stable v1.0.0!
This version includes some significant changes:
- We removed the
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.- In previous versions, the parameters of a function definition would always be split if there were more than two of them. Starting now, we only split them if the line doesn't fit in
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).- The exponentiation operator (
**) 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:
contract Foo { function f(uint x, uint y, uint z) mod1 mod2 { x**y**z; } }would be formatted in the previous version like this:
contract Foo { function f( uint256 x, uint256 y, uint256 z ) mod1 mod2 { x**y**z; } }and now it will be formatted like this:
contract Foo { function f(uint x, uint y, uint z) mod1 mod2 { </tr></table>
... (truncated)
Commits
1a10aa4Bump to 1.0.0245ae22Updating tests (#723)6596e18Bump jest from 29.3.0 to 29.3.1 (#756)1c35036Bump jest from 29.2.2 to 29.3.0 (#754)9de4e5bMerge pull request #753 from prettier-solidity/dependabot/npm_and_yarn/eslint...dd43d20Bump eslint from 8.26.0 to 8.27.0b9387caDon't mark the compiler option as experimental3e61cabBump to 1.0.0-rc.184a4c9cMerge pull request #752 from prettier-solidity/cleaning_AssemblyAssignment642bb7eChanging function's name- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
The following labels could not be found: dependency, automerge.