Skip to content

build(deps): bump langium from 3.5.0 to 4.0.0#1389

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/langium-4.0.0
Closed

build(deps): bump langium from 3.5.0 to 4.0.0#1389
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/langium-4.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Aug 1, 2025

Bumps langium from 3.5.0 to 4.0.0.

Release notes

Sourced from langium's releases.

v4.0.0

Changes: https://github.com/eclipse-langium/langium/blob/main/packages/langium/CHANGELOG.md#v400-jul-2025

Changelog

Sourced from langium's changelog.

v4.0.0 (Jul. 2025)

Multi-Target References

With the new multi-target references (#1509), references in your language can now target multiple elements at once:

interface Obj {
    A: number
}
interface Obj {
    B: string
}
// `Obj` is a reference to both interfaces (not only one of them)
// Our type system should merge those definitions
const x: Obj = {
    A: 123,
    B: "hello world"
}

There are a lot of existing programming languages out there that provide features like interface merging or partial classes, which allow you to target multiple AST elements with one reference. This feature is now available in the grammar language via the [+ReferenceType] syntax:

Item: name=ID;
ReferenceElement: item=[+Item]; // Can reference multiple `Item` elements with the same name

This will generate a item: MultiReference<Item> field now.

Infix Operator Rules

To improve readability of grammars, adopters can now use the new infix rule notation (#1836) to declare parsing rules used for infix operator parsing:

infix BinaryExpression on PrimaryExpression:
    '%' // <-- Highest precedence
    > '^'
    > '*' | '/'
    > '+' | '-';  // <-- Lowest precedence
PrimaryExpression infers Expression:
'(' Expression ')' |
{infer NumberLiteral} value=NUMBER;

Note that the previous tree-rewriting action based grammar is still (and always will be) supported. In addition to better readability, the new notation also makes use of performance optimizations to speed up expression parsing by roughly 50% compared to the typical way of writing expressions.

... (truncated)

Commits
  • 5ce8d6b Update versions and changelog for version 4.0 of Langium (#1988)
  • 4136f7d Remove long-time deprecated properties (#1991)
  • 9f4729b AstUtils: added an optional trace map to copyAstNode (#1990)
  • 47d629c Improve generated ast.ts regarding multiple languages (#1979)
  • ee5f71d Disable syntax highlighting delta (#1985)
  • 7c4f871 Enable explicit types for infix rules (#1954)
  • 6d9a47e Added DocumentBuilder method to reset document state
  • 56edb45 Make linker subclassing easier (#1981)
  • 28bc964 langium/generate: supplement of the generator API (#1965)
  • 8ee6977 feat: pass ref info and context to createReferenceCompletionItem (#1976)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 1, 2025
@dependabot dependabot bot requested a review from lars-reimann as a code owner August 1, 2025 14:44
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 1, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/langium-4.0.0 branch from b6c3171 to 2c3497d Compare August 5, 2025 10:35
Bumps [langium](https://github.com/eclipse-langium/langium/tree/HEAD/packages/langium) from 3.5.0 to 4.0.0.
- [Release notes](https://github.com/eclipse-langium/langium/releases)
- [Changelog](https://github.com/eclipse-langium/langium/blob/main/packages/langium/CHANGELOG.md)
- [Commits](https://github.com/eclipse-langium/langium/commits/v4.0.0/packages/langium)

---
updated-dependencies:
- dependency-name: langium
  dependency-version: 4.0.0
  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/langium-4.0.0 branch from 2c3497d to 0959535 Compare August 8, 2025 09:12
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Oct 1, 2025

Superseded by #1397.

@dependabot dependabot bot closed this Oct 1, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/langium-4.0.0 branch October 1, 2025 14:04
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.

0 participants