Releases: killme2008/aviatorscript
Releases · killme2008/aviatorscript
AviatorScript 5.4.3
What's Changed
- Feat: new method
AviatorEvaluatorInstance#enableSandboxMode
to enable sandbox mode for security. 5de8560 - Fix: getVariableFullNames returns incorrect result, #549
Full Changelog: aviator-5.4.2...aviator-5.4.3
AviatorScript 5.4.2
What's Changed
- Fix: NPE for
bigint/double/long
function by @shuailung in #615 - Feat: adds new option
Options.EVAL_TIMEOUT_MS
to set the execution timeout value in milliseconds. #629
For example, set the execution timeout to be 100 milliseconds:
AviatorEvaluator.setOption(Options.EVAL_TIMEOUT_MS, 100);
Throw the TimeoutException
when it exceeds. It's not precise and may hurt a little performance. Read the doc
- Fix:
Expression#getVariableFullNames
returns the imported class names #597 - Feat: adds
Expression#getFunctionNames
to get all function names in the compiled script by @killme2008 in #631
Breaking changes
- Upgrade the JDK compiler version to 1.8
New Contributors
- @shuailung made their first contribution in #615
Full Changelog: aviator-5.4.1...aviator-5.4.2
AviatorScript 5.4.1
What's Changed
- compelet the compile api by @DangHT in #504
- fix typo by @nesuk in #516
- set
ScriptEngineFactory.getLanguageName
return aviator by @qiukeren in #525 - Improve class cache performance when class not found by @jiudc in #522
- fix: capitalize java bean property names
by @killme2008 in #540 - feat: impl serialization for compiled expression by @killme2008 in #524, close #451
- fix: elsif parser by @killme2008 in #574, close #554 #566
- (fix): check innerClazz while get property by @human-user in #571
- fix: recursive function can't work #568
New Contributors
- @DangHT made their first contribution in #504
- @nesuk made their first contribution in #516
- @qiukeren made their first contribution in #525
- @jiudc made their first contribution in #522
- @human-user made their first contribution in #571
Full Changelog: aviator-5.3.3...aviator-5.4.1
AviatorScript 5.3.3
AviatorScript 5.3.2
Several bugs fixed:
- #466 constant folding do not work when operator is overrided
- #484 Stackoverflow in ArrayUtils
- #483 A corner case in parser.
- #476
Expression#getVariableFullNames()
returns the class names when the script has anew
statement.
Thank you for all these bug reports.
It's recommended to upgrade.
AviatorScript 5.3.1
Main changes:
- Adds new method
AviatorEvaluatorInstance.aliasOperator(OperatorType, String)
to set an alias token for logical&&
and||
operator, read the doc. - Improve
[]
index operator and seq functions performance when processing arrays. - Fixed #431
Expression#getVariableNames
returns wrong result in nested scope. - Fixed
AviatorEvaluator.execute(String, Map)
not work with global caching.
主要改动:
AviatorScript 5.3.0
Release 5.3.0 officially, main changes:
- Supports interpreter mode, you can use aviatorscript on android(or other not-standard JVM) right now. See InterpreterExample and doc. #403 #334 #29
- Fixed assign and define operator can't work when enable
TRACE_EVAL
. #408 - Implements
ApplicationContextAware
forSpringContextFunctionLoader
. NowSpringContextFunctionLoader
can be managed by spring container.
AviatorScript 5.2.7
Main changes:
- Fixed a concurrent issue in
Expression#getVariableNames
andExpression#getVariableFullNames
. - Should throw no such property exception if property not found when using variable
a.b.c
dot syntax.
AviatorScript 5.2.6
A strongly recommended upgrading version if you are using 5.x versions.
Main changes:
- Fixed:
- New features:
- New function:
partial(f, &args)
that takes a function f and fewer than the normal arguments to f, and returns a fn that takes a variable number of additional args. When called, the returned function calls f with args + additional args. - Use soft reference for caching reflection result #386
- Added key info to exception message when sequence is null in
seq.get
function.
- New function:
[Deprecated] AviatorScript 5.2.5
Main changes: