Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spoenemann committed Jun 9, 2022
1 parent 923b1dc commit 87f6958
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 39 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ We maintain separate change logs for the individual packages:

### Closed Issues and PRs

* [v0.4.0](https://github.com/langium/langium/milestone/3?closed=1)
* [v0.3.0](https://github.com/langium/langium/milestone/2?closed=1)
* [v0.2.0](https://github.com/langium/langium/milestone/1?closed=1)
4 changes: 2 additions & 2 deletions examples/arithmetics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "0.3.0",
"langium": "0.4.0",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
},
Expand All @@ -56,7 +56,7 @@
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-plugin-header": "^3.1.1",
"langium-cli": "0.3.0",
"langium-cli": "0.4.0",
"typescript": "^4.6.2"
}
}
4 changes: 2 additions & 2 deletions examples/domainmodel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "0.3.0",
"langium": "0.4.0",
"lodash": "^4.17.21",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
Expand All @@ -58,7 +58,7 @@
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-plugin-header": "^3.1.1",
"langium-cli": "0.3.0",
"langium-cli": "0.4.0",
"typescript": "^4.6.2",
"@types/jest": "^26.0.20",
"jest": "^26.6.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/statemachine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "0.3.0",
"langium": "0.4.0",
"lodash": "^4.17.21",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
Expand All @@ -57,7 +57,7 @@
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-plugin-header": "^3.1.1",
"langium-cli": "0.3.0",
"langium-cli": "0.4.0",
"typescript": "^4.6.2"
}
}
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/generator-langium/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log of `generator-langium`

## v0.4.0 (Jun. 2022)

This release updates the generated dependencies to Langium version `0.4.0`.


## v0.3.0 (Mar. 2022)

* The generated project is adapted to the new structure supporting multiple languages ([#311](https://github.com/langium/langium/pull/311)). This mainly affects the configuration format of the `langium` CLI and the separation of _shared services_ and _language-specific services_.
Expand Down
4 changes: 2 additions & 2 deletions packages/generator-langium/langium-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"chevrotain": "^9.1.0",
"colors": "^1.4.0",
"commander": "^8.0.0",
"langium": "^0.3.0",
"langium": "^0.4.0",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0",
"vscode-uri": "^3.0.2"
Expand All @@ -57,7 +57,7 @@
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"langium-cli": "^0.3.0",
"langium-cli": "^0.4.0",
"typescript": "^4.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/generator-langium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-langium",
"version": "0.3.0",
"version": "0.4.0",
"description": "Yeoman generator for Langium - the language engineering tool",
"homepage": "https://langium.org",
"engines": {
Expand Down
4 changes: 4 additions & 0 deletions packages/langium-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log of `langium-cli`

## v0.4.0 (Jun. 2022)

This release brings lots of bug fixes and is adapted to version `0.4.0` of the Langium core library.

## v0.3.0 (Mar. 2022)

### General Improvements
Expand Down
4 changes: 2 additions & 2 deletions packages/langium-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langium-cli",
"version": "0.3.0",
"version": "0.4.0",
"description": "CLI for Langium - the language engineering tool",
"homepage": "https://langium.org",
"engines": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"commander": "^7.2.0",
"fs-extra": "^9.1.0",
"jsonschema": "^1.4.0",
"langium": "~0.3.0",
"langium": "~0.4.0",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/langium-sprotty/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langium-sprotty",
"version": "0.3.0",
"version": "0.4.0",
"description": "Use Langium as source for Sprotty diagram models",
"homepage": "https://langium.org",
"keywords": [
Expand Down Expand Up @@ -29,7 +29,7 @@
"publish:latest": "npm publish --tag latest"
},
"dependencies": {
"langium": "~0.3.0",
"langium": "~0.4.0",
"sprotty-protocol": "^0.11.0"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/langium-vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log of `langium-vscode`

## v0.4.0 (Jun. 2022)

* Hover pop-up shows information for cross-references ([#473](https://github.com/langium/langium/pull/473)).
* Formatting of grammar files is now available ([#479](https://github.com/langium/langium/pull/479)).
* You can "Go to Definition" on property assignments where the return type is explicitly declared ([#505](https://github.com/langium/langium/pull/505)).
* Improved validation and general handling of inferred and declared types.

---

## v0.3.0 (Mar. 2022)

This release brought several changes to the grammar language:
Expand Down
4 changes: 2 additions & 2 deletions packages/langium-vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "langium-vscode",
"publisher": "langium",
"version": "0.3.0",
"version": "0.4.0",
"displayName": "Langium",
"description": "Support for the Langium Grammar Language",
"homepage": "https://langium.org",
Expand Down Expand Up @@ -53,7 +53,7 @@
"lint": "eslint src --ext ts"
},
"dependencies": {
"langium": "0.3.0",
"langium": "0.4.0",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
},
Expand Down
32 changes: 32 additions & 0 deletions packages/langium/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Change Log of `langium`

## v0.4.0 (Jun. 2022)

### Formatting

Langium now features an API to configure formatting of your language ([#479](https://github.com/langium/langium/pull/479)). To use this feature, you need to implement a subclass of `AbstractFormatter` and register it to the `lsp.Formatter` service:
```typescript
export class MyDSLFormatter extends AbstractFormatter {
protected format(node: AstNode): void {
...
}
}
```

The concrete formatting can be specified by first obtaining a node formatter and then choosing specific parts to format, like a keyword of the corresponding grammar rule. The chosen parts can be adjusted by appending or prepending white space:
```typescript
const formatter = this.getNodeFormatter(node);
const bracesClose = formatter.keyword('}');
bracesClose.prepend(Formatting.newLine());
```

See the [domain model formatter](https://github.com/langium/langium/blob/main/examples/domainmodel/src/language-server/domain-model-formatter.ts) for a full example.

### Further Improvements

* [Unordered groups](https://langium.org/docs/grammar-language/#unordered-groups) are supported in the grammar ([#522](https://github.com/langium/langium/pull/522)).
* `Date` and `bigint` data types are supported in the grammar ([#508](https://github.com/langium/langium/pull/508)).
* AST properties of type `boolean` are initialized to `false` even when they are not assigned a value during parsing ([#469](https://github.com/langium/langium/pull/469)).
* The JavaScript code compiled from the TypeScript sources is now compatible to ES2017 (previously ES2015), so `async` and `await` keywords are preserved ([#495](https://github.com/langium/langium/pull/495)).
* An API for testing validation checks is now available ([#506](https://github.com/langium/langium/pull/506)).

---

## v0.3.0 (Mar. 2022)

### Multi-Language Support
Expand Down
2 changes: 1 addition & 1 deletion packages/langium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langium",
"version": "0.3.0",
"version": "0.4.0",
"description": "A language engineering tool for the Language Server Protocol",
"homepage": "https://langium.org",
"engines": {
Expand Down

0 comments on commit 87f6958

Please sign in to comment.