Skip to content

Bump prettier-plugin-solidity from 1.4.3 to 2.0.0-beta.2#15

Merged
snissn merged 1 commit intomasterfrom
dependabot/npm_and_yarn/prettier-plugin-solidity-2.0.0-beta.2
Feb 5, 2026
Merged

Bump prettier-plugin-solidity from 1.4.3 to 2.0.0-beta.2#15
snissn merged 1 commit intomasterfrom
dependabot/npm_and_yarn/prettier-plugin-solidity-2.0.0-beta.2

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 5, 2026

Bumps prettier-plugin-solidity from 1.4.3 to 2.0.0-beta.2.

Release notes

Sourced from prettier-plugin-solidity's releases.

v2.0.0-beta.2

Moving closer to a release candidate, this pre-release adds the following features:

2.0.0-beta.1

This year we have been working hard on adopting Nomic Foundation's Slang as our new parser.

This allowed us to update our architecture, address issues that the ANTLR parser was blocking, have more control in the rendering of comments, and officially move our codebase to typescript.

While in beta, we will still serve the solidity-parse parser, but the plugin will now log a deprecation warning recommending using the slang-solidity parser.

To start using the new parser just replace solidity-parse with slang-solidity in the .prettierrc file.

{
  "plugins": ["prettier-plugin-solidity"],
  "overrides": [
    {
      "files": "*.sol",
      "options": {
        "parser": "slang-solidity",
        "printWidth": 80,
        "tabWidth": 4,
        "useTabs": false,
        "singleQuote": false,
        "bracketSpacing": false,
        "compiler": "0.8.26",
      }
    }
  ]
}

If a compiler version is specified, this will be used to parse all the contracts in your project. By default the compiler version will be the latest Solidity version supported by @nomicfoundation/slang. The final 2.0.0 release will infer the Solidity version from the pragma statements in each contract.

A wasm build of the @nomicfoundation/slang package is not included in this beta release. This means the beta release can currently be used in node projects and build pipelines where Rust is supported.

We are working with Nomic Foundation to include a wasm build in the final 2.0.0 release to support browser based IDEs like Remix.

import prettier from 'prettier';
import solidityPlugin from 'prettier-plugin-solidity';
async function format(code) {
return await prettier.format(code, {
parser: 'slang-solidity',
compiler: '0.8.26',
plugins: [solidityPlugin],
</tr></table>

... (truncated)

Commits
  • 921b501 bump version (#1048)
  • 44a48ea Infer version (#1047)
  • 3551102 Slang 0.17.0 (#1043)
  • e5d506d Merge remote-tracking branch 'origin/main' into v2
  • 0fded41 Merge pull request #1032 from prettier-solidity/slang
  • 22edc8e Comments running closer to prettier for edge cases
  • d3f7141 add comments for new line decision at the end of SourceUnit
  • 9703ff8 Use explicit names for antlr and slang parsers, printers, etc.
  • e7ad30d Clear line when printing warnings
  • f213b18 Since Slang is under active development we better fix the version we are usin...
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Feb 5, 2026
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/prettier-plugin-solidity-2.0.0-beta.2 branch from 38fac08 to d9b6f76 Compare February 5, 2026 19:05
@snissn
Copy link
Contributor

snissn commented Feb 5, 2026

@dependabot rebase

Bumps [prettier-plugin-solidity](https://github.com/prettier-solidity/prettier-plugin-solidity) from 1.4.3 to 2.0.0-beta.2.
- [Release notes](https://github.com/prettier-solidity/prettier-plugin-solidity/releases)
- [Commits](prettier-solidity/prettier-plugin-solidity@v1.4.3...v2.0.0-beta.2)

---
updated-dependencies:
- dependency-name: prettier-plugin-solidity
  dependency-version: 2.0.0-beta.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/prettier-plugin-solidity-2.0.0-beta.2 branch from d9b6f76 to 2b70a4d Compare February 5, 2026 22:45
@snissn snissn merged commit 7d3cd2c into master Feb 5, 2026
2 checks passed
@snissn snissn deleted the dependabot/npm_and_yarn/prettier-plugin-solidity-2.0.0-beta.2 branch February 5, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant