Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha #45

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ repositories {
}

group = "org.hisp.dhis.lib.expression"
version = "1.1.0-SNAPSHOT"

val isReleaseVersion = project.hasProperty("removeSnapshot")
if (isReleaseVersion) {
version = (version as String).replace("-SNAPSHOT", "")

if (project.hasProperty("version")) {
println("--- Version passed from semantic-release: "+project.version)
version = project.version
}


kotlin {
jvm {
jvmToolchain(17)
Expand Down
91 changes: 91 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# [1.0.0-alpha.3](https://github.com/kabaros/expression-parser/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2024-02-05)


### Bug Fixes

* test release ([caa093b](https://github.com/kabaros/expression-parser/commit/caa093b71c2229edf21e0ab897dc6554922f489b))

# [1.0.0-alpha.2](https://github.com/kabaros/expression-parser/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2024-02-05)


### Bug Fixes

* update verifyReleaseCmd ([cc8fa9d](https://github.com/kabaros/expression-parser/commit/cc8fa9dfa165f9ff300d9e1360242b1ea9c86050))

# 1.0.0-alpha.1 (2024-02-05)


### Bug Fixes

* accept any type for d2:hasValue ([efee41c](https://github.com/kabaros/expression-parser/commit/efee41c6619c0a9caa3ee2bae5c2c429bc6c8f02))
* add semantic-release ([e1541fb](https://github.com/kabaros/expression-parser/commit/e1541fb0ef2bddbf694642b0dad27a0ef4aa31ab))
* adds d2:right function tests ([4ada8c0](https://github.com/kabaros/expression-parser/commit/4ada8c0f04cba2c3f1983f3ba9e4215bad8d2fc5))
* adds d2:substring tests ([edef920](https://github.com/kabaros/expression-parser/commit/edef9208f3d904dd3240a4c175247ec7c4b9ebb3))
* all tests pass for JVM and native ([04a1c72](https://github.com/kabaros/expression-parser/commit/04a1c72baad2448af0b0c6cffa55c6bed80dcc1c))
* build ([e5db499](https://github.com/kabaros/expression-parser/commit/e5db4998870c3e09d9214d0ba076c337c7a5dac8))
* build? ([9c4e2d8](https://github.com/kabaros/expression-parser/commit/9c4e2d80c10a0ae5ea3a7c17dc5c34cac334c9a7))
* correct next snapshot version [DHIS2-15280] ([c86b734](https://github.com/kabaros/expression-parser/commit/c86b734cf7d7e20af640830765998c72674fed1c))
* d2:lastEventDate function tests ([aeb151c](https://github.com/kabaros/expression-parser/commit/aeb151cb551c311427b9db405314b542d9f46298))
* date between functions should return negative if start after end ([4c2819b](https://github.com/kabaros/expression-parser/commit/4c2819bf7280a41f1f206510e5f20c6d4bd3af01))
* eval for operators and type coercion [DHIS2-13462] ([c98e2bd](https://github.com/kabaros/expression-parser/commit/c98e2bda6f082bdc65eb5b0ec6b98f0ff95924fa))
* eval to kotlin ([086defd](https://github.com/kabaros/expression-parser/commit/086defd1b494d3d75122c3473ea37fbd052830ec))
* evalToVar - do var lookup by name for strings ([ec30f4d](https://github.com/kabaros/expression-parser/commit/ec30f4d17ddcd6a61d94d1549ef38006b63f8fbe))
* extract parts of expression via concatToString (all tests pass) ([4b7d8a5](https://github.com/kabaros/expression-parser/commit/4b7d8a5e75ed5b382e9633ab6c9eb4736bf15b24))
* Fixes to integrate with rule engine ([aa47604](https://github.com/kabaros/expression-parser/commit/aa4760479715d8c61b693b589d16c1a2208b7310))
* gobble block args whitespace ([cf8a3c9](https://github.com/kabaros/expression-parser/commit/cf8a3c990c15379f02c988fbe032177190a735ce))
* hide ExpressionFunctions inside Expression ([d17e8b9](https://github.com/kabaros/expression-parser/commit/d17e8b9b569c9dd8f1d4deef4123ca384b675fe8))
* JS compiles (all tests pass on JVM) ([14a2015](https://github.com/kabaros/expression-parser/commit/14a2015710ba9e8b43a2710af47acdb781c8edf4))
* keep raw string literals as input and decode value [DHIS2-13462} ([bf5b58f](https://github.com/kabaros/expression-parser/commit/bf5b58f232937d69e38adea11ac108f6934b4a65))
* maybe in first argument position [DHIS2-13462] ([34870aa](https://github.com/kabaros/expression-parser/commit/34870aa62fd0fe4a8a7b19dca30ea000a259ee79))
* no use of String.format (all tests pass) ([d425df7](https://github.com/kabaros/expression-parser/commit/d425df7ef0c41b92a1f5104c3c23096ae3f1426e))
* node version ([ff8aebe](https://github.com/kabaros/expression-parser/commit/ff8aebe6327e40d6e41e03e2e9c14dbb5652a0ab))
* operator precedence; feat: consider actual value type of variables ([80ca12f](https://github.com/kabaros/expression-parser/commit/80ca12fad37a3c6a20694fd880422753bc14d69f))
* power precedence ([8edf3c6](https://github.com/kabaros/expression-parser/commit/8edf3c6f19b7e0336a69b4aabb0b66b0a5462bbb))
* publish all artifacts to snapshot ([0b2291b](https://github.com/kabaros/expression-parser/commit/0b2291b41334bd7fbf330ed8c7467b1ab9b00137))
* rename JS classes to have unique names ([b9ddab4](https://github.com/kabaros/expression-parser/commit/b9ddab4c11c452be23ff63bcd8bc9432f9578558))
* Rename package to avoid namespace conflicts ([9d0927e](https://github.com/kabaros/expression-parser/commit/9d0927ec6493096dcdd4056312197c8638b34851))
* retain operators as in input ([716644c](https://github.com/kabaros/expression-parser/commit/716644ceddd2cd7f646fba0fe70d581dbe31b49c))
* some inconsistencies from conversion ([c59d2e8](https://github.com/kabaros/expression-parser/commit/c59d2e85528af1b12125030125f42ce37d28dc52))
* support for android api 21 ([2a4a600](https://github.com/kabaros/expression-parser/commit/2a4a600b612cfc2b787fb035326a6ad871374c68))
* test release ([95e7668](https://github.com/kabaros/expression-parser/commit/95e76689a978831cd68e0fd00af0891adb704c07))
* test release ([42099ba](https://github.com/kabaros/expression-parser/commit/42099ba99b2edd6eeb6b7d2fc38863a4b0eb4ca3))
* to normalised string, more tests ([7b9d626](https://github.com/kabaros/expression-parser/commit/7b9d6268e18383e8c3e70ec02793a605620e1c95))
* try publishing kotlin artifact ([10c7839](https://github.com/kabaros/expression-parser/commit/10c7839a590ccd3114518e34f2c2eb20e43b3386))
* type coercion ([f1763c5](https://github.com/kabaros/expression-parser/commit/f1763c54ebb891c7b603431891aac51d4db2a17c))
* unary negate of numbers in JS ([1920d30](https://github.com/kabaros/expression-parser/commit/1920d30df3b5119a0ddcc06c8155eb22bfae484f))
* use JDK 17 for github CI [DHIS2-15280] ([63a4586](https://github.com/kabaros/expression-parser/commit/63a45863b4e58e7aa48f720474562a54259c6974))


### Features

* adds stddev vector function with tests ([993d47b](https://github.com/kabaros/expression-parser/commit/993d47b6eeb32c1a2e4358f1327cb55d153733f8))
* adds stddevPop vector function with tests ([47b5f77](https://github.com/kabaros/expression-parser/commit/47b5f7735c8bc8bd23c0785f1bf6fdb159c6039a))
* adds variance function with tests ([4a7ea6a](https://github.com/kabaros/expression-parser/commit/4a7ea6aa21d88f0376e625d7aa1d219aeef2d7e6))
* aggregate functions (some) + cleanup ([6d1b57a](https://github.com/kabaros/expression-parser/commit/6d1b57a6544ea1992f64987b1615aa8399da50cd))
* all non test sources files are kotlin (all tests pass) ([054c749](https://github.com/kabaros/expression-parser/commit/054c74974ae3998f67d8e18956eca049ccff67b6))
* all tests in commonTest (all tests pass) ([c013b21](https://github.com/kabaros/expression-parser/commit/c013b218dc039ce2aa1bf15b32db2b86e96a29a1))
* all tests in commonTest (all tests pass) ([b56001e](https://github.com/kabaros/expression-parser/commit/b56001ee61be26023863cef861f411c4b1522154))
* comments, input position start/end, annotated WS [DHIS2-15280] ([6f1b905](https://github.com/kabaros/expression-parser/commit/6f1b9055d7d2f027e8ccce57ff3e3122d70cb6df))
* data fetcher abstraction ([4ee240e](https://github.com/kabaros/expression-parser/commit/4ee240ef41f3c37847d08011b5bb308634467fda))
* exceptions as kotlin (all tests pass) ([e0a449d](https://github.com/kabaros/expression-parser/commit/e0a449db093454353d23ba342d3b681a5e4dba3d))
* Expression high level API functions ([e1d761c](https://github.com/kabaros/expression-parser/commit/e1d761c4ed6f5d7ee327b68c9491295953449172))
* GS1 formatter function ([beb01b5](https://github.com/kabaros/expression-parser/commit/beb01b5175d07bcc5a2237aa733af5807eb29f38))
* JS API export ([ca6a497](https://github.com/kabaros/expression-parser/commit/ca6a4971f69d1b50cb5d6e4f07ea2ced159fbaba))
* kotlin ExpressionFunctions (all tests pass) ([3d566c2](https://github.com/kabaros/expression-parser/commit/3d566c29b101cf2175374240692b54db61fcc247))
* kotlin of aggregate functions (all tests pass) ([546e86d](https://github.com/kabaros/expression-parser/commit/546e86dbeed7a9cb73894b49fa989030357dfaf4))
* more of the evaluation, better names, working modifiers ([e2a51b1](https://github.com/kabaros/expression-parser/commit/e2a51b184aa99bbac532e8296cc7ca26fb100bdb))
* move kotlin main to commonMain (all tests pass) ([9d0c93f](https://github.com/kabaros/expression-parser/commit/9d0c93fc8afb876d9ff20e2c64043589ff2e331f))
* named function as enum [DHIS2-13462] ([4458006](https://github.com/kabaros/expression-parser/commit/445800637cc22e956eb6fda2beeed7e17c8f48db))
* PEG parser for expression language [DHIS2-13462] ([7a53258](https://github.com/kabaros/expression-parser/commit/7a53258784fc898deadf02a380db38bf14a0dd26))
* PEG parser for expression language [DHIS2-13462] ([5794629](https://github.com/kabaros/expression-parser/commit/5794629ab746b76ccea4bd7d90ee6e4f4376a4c2))
* rebuild expression by walking the AST [DHIS2-13462] ([d099732](https://github.com/kabaros/expression-parser/commit/d099732d3d83752a04259d58005b6ae3929d642e))
* retain whitespace and comments in describe [DHIS2-15280] ([c3d308f](https://github.com/kabaros/expression-parser/commit/c3d308f28cadedc8b1f6ba75ccee6a903c143a2f))
* rule engine grammar and functions ([0215f43](https://github.com/kabaros/expression-parser/commit/0215f4330ec0e96cfb40771a49ff20026b1450fa))
* rule engine mode nearly complete ([5aea42e](https://github.com/kabaros/expression-parser/commit/5aea42e254443d2d0ca87d595345f8ddd0d1856b))
* rule engine mode stuff - all tests pass ([f18b0ed](https://github.com/kabaros/expression-parser/commit/f18b0ed878ad112304f9d72aed802129b8187d17))
* use kotlin MP date lib (all tests pass) ([302da21](https://github.com/kabaros/expression-parser/commit/302da2170c2e5868310324883c75e1edd07b00c1))
* use kotlin.test annotation (all test pass) ([b01ef53](https://github.com/kabaros/expression-parser/commit/b01ef536c7fdc0eca0444fb86fe66dd7cf05fc53))
* use MP big decimal math (all tests pass) ([ccdeb7e](https://github.com/kabaros/expression-parser/commit/ccdeb7ece8557d33d15cffc8e8e8aee619c685ad))
* validation (rule engine) ([4ce67bc](https://github.com/kabaros/expression-parser/commit/4ce67bcd393670904f3c72a9c4561ef5cbcd8c1f))
* variable node type, tree mapping ([397a789](https://github.com/kabaros/expression-parser/commit/397a789ecb7a3263554aa1737f2c18f69259f1b8))
* z-score functions ([3d22efe](https://github.com/kabaros/expression-parser/commit/3d22efee1c5d6339d15beae9e5634fe0374197ee))
Loading