Skip to content

Commit

Permalink
Add release 2.5.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Apanatshka committed Jul 24, 2024
1 parent 9e9ffa2 commit 10ca8f4
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 36 deletions.
21 changes: 21 additions & 0 deletions content/release/migrate/2.5.21.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Spoofax 2.5.21 Migration Guide

## Metaborg Version in metaborg.yaml
Before, the value of `metaborgVersion` in `metaborg.yaml` was hardcoded in Spoofax 2 to be `2.6.0-SNAPSHOT`. From now on, it is no longer hardcoded and must be explicitly specified in the `metaborg.yaml` file of a language project. For example:

```yaml
---
id: org.metaborg:mylang:1.0.0
name: mylang
metaborgVersion: 2.6.0-SNAPSHOT
# ...
```

If this is not done, the following error can occur:

```
MissingDependencyException: Language for dependency org.metaborg:org.metaborg.meta.lang.spt:2.5.20 does not exist
```

## Install Virtualenv
To build Spoofax 2 as a developer, you need to install Python Virtualenv using `python3 -m pip install virtualenv`.
22 changes: 0 additions & 22 deletions content/release/migrate/vnext.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
# Spoofax vNext Migration Guide

This is a stub for the migration guide of the upcoming version of Spoofax.

## Metaborg Version in metaborg.yaml
Before, the value of `metaborgVersion` in `metaborg.yaml` was hardcoded in Spoofax 2 to be `2.6.0-SNAPSHOT`. From now on, it is no longer hardcoded and must be explicitly specified in the `metaborg.yaml` file of a language project. For example:

```yaml
---
id: org.metaborg:mylang:1.0.0
name: mylang
metaborgVersion: 2.6.0-SNAPSHOT
# ...
```

If this is not done, the following error can occur:

```
MissingDependencyException: Language for dependency org.metaborg:org.metaborg.meta.lang.spt:2.5.20 does not exist
```



## Install Virtualenv
To build Spoofax 2 as a developer, you need to install Python Virtualenv using `python3 -m pip install virtualenv`.
2 changes: 1 addition & 1 deletion content/release/note/2.5.20.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Spoofax 2.5.20 (12-04-2023)

Spoofax 2.5.20 updates multiple dependencies, rearranges some, fixes a bug in the new porject wizard, and makes small fixes and improvements to Statix.
Spoofax 2.5.20 updates multiple dependencies, rearranges some, fixes a bug in the new project wizard, and makes small fixes and improvements to Statix.

## Fixes

Expand Down
29 changes: 29 additions & 0 deletions content/release/note/2.5.21.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Spoofax 2.5.20 (23-07-2023)

Spoofax 2.5.20 updates multiple dependencies, fixes a few bugs, and introduces a new required field in the `metaborg.yaml` file.

See the corresponding [migration guide](../migrate/2.5.21.md) for migrating from Spoofax 2.5.20 (or below) to Spoofax 2.5.21.

## Fixes

### Statix
- `RuleUtil.inline` now inserts equalities for ascribed values
- Rule names are now unique across files
- List origins are now tracked, fixing spurious failure in NaBL2 solver

## Added

## Changes
- The value of `metaborgVersion` in `metaborg.yaml` is no longer hardcoded and must be specified explicitly in the `metaborg.yaml` file of a language project. See the migration guide.

### Dependencies
- Introduced `util-vfs2` and moved the parts of `org.metaborg.util` that depend on `org.apache.commons:commons-vfs2` to there. This makes it possible for parts of Spoofax that do not use vfs2 to not depend on vfs2.
- Loading a parse table and using it to parse a file (example in [`spoofax2-lang-example:java/parse`](https://github.com/MetaBorgCube/spoofax2-lang-example/tree/main/java/parse)) no longer depends on `commons-io:commons-io`. The only third-party dependencies are now `jakarta.annotation:jakarta.annotation-api`, `org.slf4j:slf4j-api` and `io.usethesource:capsule`.
- `com.virtlink.commons:commons-configuration2-jackson1`: 1.3.1 -> 1.3.5
- `com.fasterxml.jackson.core:jackson-core`: 2.14.0 -> 2.17.1
- `com.fasterxml.jackson.core:jackson-databind`: 2.14.0 -> 2.17.1
- `com.fasterxml.jackson.core:jackson-annotations`: 2.14.0 -> 2.17.1
- `com.fasterxml.jackson.dataformat:jackson-dataformat-yaml`: 2.14.0 -> 2.17.1

{% from 'downloads.md' import downloads with context %}
{{ downloads('2.5.21') }}
13 changes: 0 additions & 13 deletions content/release/note/vnext.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,8 @@ See the corresponding [migration guide](../migrate/vnext.md) for migrating from

## Fixes

### Statix
- `RuleUtil.inline` now inserts equalities for ascribed values
- Rule names are now unique across files
- List origins are now tracked, fixing spurious failure in NaBL2 solver

## Added

## Changes
- The value of `metaborgVersion` in `metaborg.yaml` is no longer hardcoded and must be specified explicitly in the `metaborg.yaml` file of a language project. See the migration guide.

### Dependencies
- Introduced `util-vfs2` and moved the parts of `org.metaborg.util` that depend on `org.apache.commons:commons-vfs2` to there. This makes it possible for parts of Spoofax that do not use vfs2 to not depend on vfs2.
- Loading a parse table and using it to parse a file (example in [`spoofax2-lang-example:java/parse`](https://github.com/MetaBorgCube/spoofax2-lang-example/tree/main/java/parse)) no longer depends on `commons-io:commons-io`. The only third-party dependencies are now `jakarta.annotation:jakarta.annotation-api`, `org.slf4j:slf4j-api` and `io.usethesource:capsule`.
- `com.virtlink.commons:commons-configuration2-jackson1`: 1.3.1 -> 1.3.5
- `com.fasterxml.jackson.core:jackson-core`: 2.14.0 -> 2.17.1
- `com.fasterxml.jackson.core:jackson-databind`: 2.14.0 -> 2.17.1
- `com.fasterxml.jackson.core:jackson-annotations`: 2.14.0 -> 2.17.1
- `com.fasterxml.jackson.dataformat:jackson-dataformat-yaml`: 2.14.0 -> 2.17.1
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ nav:
- release/stable.md
- release/develop.md
- Release Notes:
- release/note/2.5.21.md
- release/note/2.5.20.md
- release/note/2.5.19.md
- release/note/2.5.18.md
Expand Down Expand Up @@ -338,6 +339,7 @@ nav:
- release/note/1.0.0.md
- release/note/vnext.md
- Migration Guides:
- release/migrate/2.5.21.md
- release/migrate/2.5.15.md
- release/migrate/2.5.10.md
- release/migrate/2.5.5.md
Expand Down
1 change: 1 addition & 0 deletions tools/macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def fill_vars_with_release(vars, env_version: str, version: str, download_versio


release_versions = {
'2.5.21': '23-07-2024',
'2.5.20': '12-04-2024',
'2.5.19': '06-12-2023',
'2.5.18': '14-11-2022',
Expand Down

0 comments on commit 10ca8f4

Please sign in to comment.