Skip to content

Commit eae6f62

Browse files
authored
Merge pull request #167 from OP-TED/main
Merge main into develop
2 parents b939b71 + 4fc014d commit eae6f62

File tree

2 files changed

+54
-20
lines changed

2 files changed

+54
-20
lines changed

CHANGELOG.md

Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,65 @@
1-
# EFX Toolkit 2.0.0-alpha.5 Release Notes
1+
# EFX Toolkit 2.0.0-alpha.6 Release Notes
22

33
_The EFX Toolkit for Java developers is a library that enables the transpilation of [EFX](https://docs.ted.europa.eu/eforms/latest/efx) expressions and templates to different target languages. It also includes an implementation of an EFX-to-XPath transpiler._
44

55
---
66

77
## In this release
88

9-
This release fixes an a bug that could result in incorrect context computation for EFX template lines when the same field or node was used as both the parent and child line's context using different predicates. The EFX template translator now correctly calculates the child context, ignoring the predicate of the parent context.
9+
This is a major update that brings the toolkit in line with the complete EFX-2 grammar as released with SDK 2.0.0-alpha.2.
1010

11+
### EFX-2 language support
1112

12-
## EFX-1 Support
13+
- Implemented all new EFX-2 language features introduced in SDK 2.0.0-alpha.2. See the [SDK changelog](https://github.com/OP-TED/eForms-SDK/blob/release/2.0.0-alpha.2/CHANGELOG.md) for the full list.
1314

14-
Although this is a pre-release version of the EFX Toolkit, it provides production-level support for EFX-1 transpilation. EFX-1 is the current version of EFX released with SDK 1.
15+
### EFX Rules translator
1516

16-
NOTE: Transpilation of EFX-1 to XPath and XSL in this version of the EFX Toolkit is **better than** what is provided by **EFX Toolkit 1.3.0**.
17+
- Added a new EFX Rules to Schematron translator, enabling business rules authored in EFX to be transpiled into Schematron validation schemas.
18+
- Rules that apply to all notice subtypes are deduplicated into a shared Schematron pattern.
19+
- New `ValidatorGenerator` interface for Schematron output generation.
20+
21+
### Dependency analysis
22+
23+
- Added dependency extractors for EFX rules, producing dependency graphs that track field, codelist, and variable references.
24+
25+
### Template translator
26+
27+
- Dictionary lookups are now translated using XSL keys for better performance.
28+
- Profiling and timing support for template translation via new `TranslatorOptions` methods.
29+
30+
### EFX autocomplete API
31+
32+
- Added an autocomplete API for code editors, providing completion items for EFX keywords, built-in functions, and field properties.
1733

34+
### New interfaces and classes
1835

19-
## EFX-2 Support
36+
- `ValidatorGenerator`: Interface for generating validation output (Schematron).
37+
- `TranslatorContext`: Interface providing translation context to `MarkupGenerator` methods.
38+
- `TypeChecker`: Interface for SDK-specific type validation.
39+
- `IncludedFileResolver`: Interface for resolving `#include` directives in EFX files.
40+
- New typed exception hierarchy: `EfxCompilationException`, `InvalidArgumentException`, `InvalidIdentifierException`, `InvalidIndentationException`, `InvalidUsageException`, `SdkInconsistencyException`, `SymbolResolutionException`, `TranslatorConfigurationException`, `TypeMismatchException`.
2041

21-
The new version of EFX is still under development and will be released with SDK 2.0.0. For more information on EFX-2 see the release notes of the eForms SDK 2.0.0-alpha.1.
42+
### Bug fixes
43+
44+
- Fixed invalid XPath in typed uniqueness conditions.
45+
- Fixed quote escaping in string literals.
46+
47+
## EFX-1 Support
48+
49+
Although this is a pre-release version of the EFX Toolkit, it provides production-level support for EFX-1 transpilation. EFX-1 is the current version of EFX released with SDK 1.
50+
51+
NOTE: Transpilation of EFX-1 to XPath and XSL in this version of the EFX Toolkit is **better than** what is provided by **EFX Toolkit 1.3.0**.
2252

2353
## Breaking changes
2454

25-
For users of the Toolkit that have implemented custom transpilers, this release contains a few breaking changes from 1.3.0.
26-
More specifically:
55+
For users of the Toolkit that have implemented custom transpilers, this release contains breaking changes from 2.0.0-alpha.5:
2756

28-
- Some additional methods have been added to the SymbolResolver, ScriptGenerator and MarkupGenerator API. As a guide for your implementations please look a the implementations included in the EFX Toolkit for use by the EFX-to-XPath transpilation.
29-
- Some deprecated methods were removed.
30-
- An extensive refactoring in the type management system has rearranged the package structure. As a result some import statements in your code will need to be updated.
57+
- The expression model has been refactored to separate scalar and sequence types. The `path` subpackage has been removed and path expression types have been moved and renamed (e.g. `BooleanPathExpression``BooleanPath` under `scalar`).
58+
- `MarkupGenerator.composeOutputFile` signature changed from 2 parameters to 5 (globals, main section, summary section, navigation section, fragments). The old signature is deprecated with a default implementation.
59+
- Several new methods have been added to the `SymbolResolver`, `ScriptGenerator`, and `MarkupGenerator` interfaces.
60+
- `TranslatorOptions` has three new methods without defaults: `getUserDefinedFunctionNamespace()`, `isProfilerEnabled()`, `getProfilerOutputPath()`.
61+
- New typed exception classes replace previously generic exceptions.
62+
- Axis support and cross-notice references have been removed from the V2 translator.
3163

3264
Users of the Toolkit that only use the included EFX-to-XPath transpiler will not be affected by the above changes.
3365

@@ -37,16 +69,18 @@ Further alpha and beta releases of SDK 2 and EFX Toolkit 2 will be issued. While
3769

3870
---
3971

40-
You can download the latest EFX Toolkit from Maven Central.
72+
You can download the latest EFX Toolkit from Maven Central.
4173
[![Maven Central](https://img.shields.io/maven-central/v/eu.europa.ted.eforms/efx-toolkit-java?label=Download%20&style=flat-square)](https://central.sonatype.com/artifact/eu.europa.ted.eforms/efx-toolkit-java)
4274

4375
Documentation for the EFX Toolkit is available at: <https://docs.ted.europa.eu/eforms/latest/efx-toolkit>
4476

4577
---
4678

47-
This version of the EFX Toolkit has a compile-time dependency on the following versions of eForms SDK versions and uses the EFX grammar that each version provides:
79+
This version of the EFX Toolkit has a compile-time dependency on the following eForms SDK versions and uses the EFX grammar that each version provides:
80+
81+
- eForms SDK 1.x.x (SDK 1.13.0 grammar)
82+
- eForms SDK 2.0.0-alpha.2
4883

49-
- eForms SDK 1.x.x
50-
- eForms SDK 2.0.0-alpha.1
84+
It also depends on the [eForms Core Java library](https://github.com/OP-TED/eforms-core-java) version 1.6.0.
5185

52-
It also depends on the [eForms Core Java library](https://github.com/OP-TED/eforms-core-java) version 1.5.0.
86+
NOTE: The POM currently references SNAPSHOT versions for the SDK 2 and Core dependencies. These will be updated to released versions before publication.

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>eu.europa.ted.eforms</groupId>
55
<artifactId>efx-toolkit-java</artifactId>
6-
<version>2.0.0-SNAPSHOT</version>
6+
<version>2.0.0-alpha.6</version>
77
<packaging>jar</packaging>
88

99
<name>EFX Toolkit for Java</name>
@@ -47,8 +47,8 @@
4747

4848
<!-- Versions - eForms -->
4949
<version.eforms-sdk-1>1.13.0</version.eforms-sdk-1>
50-
<version.eforms-sdk-2>2.0.0-SNAPSHOT</version.eforms-sdk-2>
51-
<version.eforms-core>1.6.0-SNAPSHOT</version.eforms-core>
50+
<version.eforms-sdk-2>2.0.0-alpha.2</version.eforms-sdk-2>
51+
<version.eforms-core>1.6.0</version.eforms-core>
5252

5353
<!-- Versions - Third-party libraries -->
5454
<version.antlr4>4.13.1</version.antlr4>

0 commit comments

Comments
 (0)