From 3387fe3c493e611cf748f45e4c19bd0c6165f37e Mon Sep 17 00:00:00 2001 From: Ioannis Rosuochatzakis Date: Thu, 26 Mar 2026 13:46:47 +0100 Subject: [PATCH] pom: Set version to 2.0.0-alpha.6 and update dependencies --- CHANGELOG.md | 68 +++++++++++++++++++++++++++++++++++++++------------- pom.xml | 6 ++--- 2 files changed, 54 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bc566e1..39efcc6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# EFX Toolkit 2.0.0-alpha.5 Release Notes +# EFX Toolkit 2.0.0-alpha.6 Release Notes _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._ @@ -6,28 +6,60 @@ _The EFX Toolkit for Java developers is a library that enables the transpilation ## In this release -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. +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. +### EFX-2 language support -## EFX-1 Support +- 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. -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. +### EFX Rules translator -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**. +- Added a new EFX Rules to Schematron translator, enabling business rules authored in EFX to be transpiled into Schematron validation schemas. +- Rules that apply to all notice subtypes are deduplicated into a shared Schematron pattern. +- New `ValidatorGenerator` interface for Schematron output generation. + +### Dependency analysis + +- Added dependency extractors for EFX rules, producing dependency graphs that track field, codelist, and variable references. + +### Template translator + +- Dictionary lookups are now translated using XSL keys for better performance. +- Profiling and timing support for template translation via new `TranslatorOptions` methods. + +### EFX autocomplete API + +- Added an autocomplete API for code editors, providing completion items for EFX keywords, built-in functions, and field properties. +### New interfaces and classes -## EFX-2 Support +- `ValidatorGenerator`: Interface for generating validation output (Schematron). +- `TranslatorContext`: Interface providing translation context to `MarkupGenerator` methods. +- `TypeChecker`: Interface for SDK-specific type validation. +- `IncludedFileResolver`: Interface for resolving `#include` directives in EFX files. +- New typed exception hierarchy: `EfxCompilationException`, `InvalidArgumentException`, `InvalidIdentifierException`, `InvalidIndentationException`, `InvalidUsageException`, `SdkInconsistencyException`, `SymbolResolutionException`, `TranslatorConfigurationException`, `TypeMismatchException`. -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. +### Bug fixes + +- Fixed invalid XPath in typed uniqueness conditions. +- Fixed quote escaping in string literals. + +## EFX-1 Support + +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. + +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**. ## Breaking changes -For users of the Toolkit that have implemented custom transpilers, this release contains a few breaking changes from 1.3.0. -More specifically: +For users of the Toolkit that have implemented custom transpilers, this release contains breaking changes from 2.0.0-alpha.5: -- 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. -- Some deprecated methods were removed. -- 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. +- 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`). +- `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. +- Several new methods have been added to the `SymbolResolver`, `ScriptGenerator`, and `MarkupGenerator` interfaces. +- `TranslatorOptions` has three new methods without defaults: `getUserDefinedFunctionNamespace()`, `isProfilerEnabled()`, `getProfilerOutputPath()`. +- New typed exception classes replace previously generic exceptions. +- Axis support and cross-notice references have been removed from the V2 translator. Users of the Toolkit that only use the included EFX-to-XPath transpiler will not be affected by the above changes. @@ -37,16 +69,18 @@ Further alpha and beta releases of SDK 2 and EFX Toolkit 2 will be issued. While --- -You can download the latest EFX Toolkit from Maven Central. +You can download the latest EFX Toolkit from Maven Central. [![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) Documentation for the EFX Toolkit is available at: --- -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: +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: + +- eForms SDK 1.x.x (SDK 1.13.0 grammar) +- eForms SDK 2.0.0-alpha.2 -- eForms SDK 1.x.x -- eForms SDK 2.0.0-alpha.1 +It also depends on the [eForms Core Java library](https://github.com/OP-TED/eforms-core-java) version 1.6.0. -It also depends on the [eForms Core Java library](https://github.com/OP-TED/eforms-core-java) version 1.5.0. +NOTE: The POM currently references SNAPSHOT versions for the SDK 2 and Core dependencies. These will be updated to released versions before publication. diff --git a/pom.xml b/pom.xml index 6c69a6ee..72c7d032 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ eu.europa.ted.eforms efx-toolkit-java - 2.0.0-SNAPSHOT + 2.0.0-alpha.6 jar EFX Toolkit for Java @@ -47,8 +47,8 @@ 1.13.0 - 2.0.0-SNAPSHOT - 1.6.0-SNAPSHOT + 2.0.0-alpha.2 + 1.6.0 4.13.1