Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Latest
* [#487](https://github.com/cleverage/process-bundle/issues/487) Shell completion of the process codes (`cleverage:process:execute`, `cleverage:process:help`): the error logged for each process whose configuration is not valid is no longer completed as a process code, the configurations are no longer resolved (all the process codes are completed). Update documentation, add tests.
* [#489](https://github.com/cleverage/process-bundle/issues/489) `cleverage:process:execute --output=<file> --output-format=json-stream`: an output that cannot be encoded as JSON (`Output not stored in '<file>'...`) no longer truncates the existing file, the output is encoded before the file is opened. Update documentation, add tests.

* [#493](https://github.com/cleverage/process-bundle/issues/493) Documentation: the `constant()` function of the `evaluator` expressions is deprecated by Symfony 8.2 (a `ConstantFunctionProvider` must be registered), avoid it. The test no longer uses it.
* [#483](https://github.com/cleverage/process-bundle/issues/483) Documentation: an exception thrown by `IterableTaskInterface::next()` makes the process fail right away with this exception, the `error_strategy` and the `error_outputs` of the task do not apply.

v5.9
-----

Expand Down Expand Up @@ -397,7 +400,6 @@ v3.2.2
* `\CleverAge\ProcessBundle\Exception\InvalidProcessConfigurationException` now displays the failing process code
* `\CleverAge\ProcessBundle\Transformer\TransformerTrait` now displays a more explicit message on wrong options type


v3.2.1
------

Expand All @@ -418,8 +420,6 @@ v3.2.0
There is no BC break for this version, but note that `sidus/base-bundle` has been removed from dependencies.
If you use it, it should already be inside your own composer.json.



Release v3.1
============

Expand All @@ -445,15 +445,13 @@ v3.1.5

* [GITHUB-120](https://github.com/cleverage/process-bundle/pull/120): FolderBrowserTask: Accept array type for `name_pattern` option


v3.1.4
------

### Features

* (_backport from v3.0.9_) Adding simple task to launch system commands


v3.1.3
------

Expand Down Expand Up @@ -509,7 +507,6 @@ v3.1.0
* [GITHUB-106](https://github.com/cleverage/process-bundle/issues/106): an entry-point cannot have an ancestor anymore.
The behaviour was undefined, and now it will throw an exception.


UPGRADE TO 2.0
==============

Expand All @@ -533,7 +530,6 @@ options:
<key>: <options>
```


UPGRADE TO 1.1
==============

Expand Down
3 changes: 3 additions & 0 deletions docs/reference/transformers/evaluator_transformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ Notes
This transformer uses its own `ExpressionLanguage` instance, not the bundle's `cleverage_process.expression_language`
service: the extra functions registered on that service (e.g. `preg_match`) are not available here, unlike in
[RulesTransformer](rules_transformer.md) and [ExpressionLanguageMapTransformer](expression_language_map_transformer.md).

The `constant()` built-in function of ExpressionLanguage is deprecated since Symfony 8.2 (Symfony asks to register a
`ConstantFunctionProvider` listing the allowed constants instead): avoid it in expressions.
2 changes: 1 addition & 1 deletion tests/Transformer/EvaluatorTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function expressionProvider(): iterable
yield 'ternary' => ['value ? "yes" : "no"', ['value' => false], 'no'];
yield 'array access' => ['item["name"]', ['item' => ['name' => 'foo']], 'foo'];
yield 'constant expression with empty input' => ['1 + 1', [], 2];
yield 'built-in function' => ['constant("PHP_INT_MAX")', [], \PHP_INT_MAX];
yield 'string concatenation' => ['"foo" ~ "bar"', [], 'foobar'];
}

/**
Expand Down
Loading