Commit Graph
17 Commits
Author SHA1 Message Date
stefan-gorules 6beecb423f fix: simplify compilation (#429)
* fix: simplify compilation

* improve opcodecache structure
2026-02-11 16:07:34 +01:00
bcrevar-gorulesandStefan 7bfebd90fe feat: precompile decision content (#401)
* precompile first

* test

* add Opcode cache through Option<T>

* Compiled support for decisionTable,
default compile of new DecisionContent for node.js and py bindings

* format

* DecisionContent refactored to model module

* fmt

* added back BaseDecisionContent

* tests and benchmark

---------

Co-authored-by: Stefan <stefan@gorules.io>
2025-11-21 14:44:24 +01:00
stefan-gorules 91509821be feat: refactor engine (#390)
* temp: refactor engine

* temp

* implement remaining nodes

* resolve snapshot tests

* improve decision graph implementation

* implement changes in bindings

* implement changes in bindings

* fix function impl gaps

* update cargo.toml

* fix issues with trace
2025-09-04 18:54:32 +02:00
stefan-gorules de6d13e1c7 feat: date v2 (#345)
* feat: date v2

* implement more date functions

* improve type safety

* add more methods for dates

* update utc to tz and add support

* add unary node behaviour for date methods

* add tests; fix errors in bindings

* add date operators

* fix types

* change set date signature

* update nightly
2025-05-12 22:39:08 +02:00
stefan-gorules ae40aff163 feat: compiled bytecode (#307)
* feat: compiled bytecode

* optimize bytecode

* add compiled expression struct

* add fetch fast and better abstraction

* fix

* rename evaluate_with for Expression<Unary>
2025-02-10 10:07:24 +01:00
stefan-gorules 92879f9c05 feat: bump rquickjs, fix loop cache for decisionTable (#274)
* fix: loop cache

* update rquickjs

* bump version
2024-11-19 13:38:17 +01:00
stefan-gorules 91598166ce feat: rc variable (#246)
* feat: rc variable

* feat: implement variable in engine

* add exports

* fix bindings and improve clone accuracy

* fix tests, fix bindings

* fix fmt

* improve code
2024-09-30 18:34:54 +02:00
stefan-gorules 3e7cdfcde1 feat: intellisense (#244)
* local: fault tolerant parser

* fix tests

* add intellisense

* fix minor issues

* improve support

* fix fmt

* fix

* fix: improve error messages

* improve error handling and ast

* fix lint

* fix tests

* exclude zen-nodejs from rust tests
2024-09-23 09:23:48 +02:00
stefan-gorules c9d1e9cc32 feat: object support (#226)
* feat: object support

* add object tests

* fix fmt

* fix: fmt
2024-08-08 10:39:32 +02:00
stefan-gorules 6271d8ab1a feat: expression chain (#166)
* feat: expression chain

* fix implementation

* fix

* implement env update on expression execution

* fix error handling for serde

* rebase

* update deps

* add $ prefix for expression reference
2024-05-24 14:46:57 +02:00
stefan-gorules 5f423b7910 feat: zen expression rewrite (#107)
* temp: zen-expression rewrite

* rewrite standard parser

* stabilise parser, upgrade dependencies

* implement unary parser

* align builtin behavior

* fix tests and minor bugs

* refactor exports, update docs

* fix expression repl

* cleanup

* cleanup vm

* replace expression with expression-rewrite

* update d.ts file

* fix failing test
2023-12-12 08:50:25 +01:00
stefan-gorules 1b0ff9f6f1 feat: expose expressions through bindings; (#86)
* feat: expose expressions through bindings;

* fix fmt
2023-09-14 16:07:55 +02:00
stefan-gorules 108b76868f feat: optional field for decision model; (#50)
* feat: optional field for decision model;

* fix formatting

* add parsing for newlines
2023-07-15 00:02:23 +02:00
stefan-gorules 69a794785a feat: evaluation reference map trace; (#28)
* feat: evaluation reference map trace;

* fix: cargo fmt

* reduce performance penalty;
2023-04-26 22:27:30 +02:00
stefan-gorules 1e883cb810 fix: unary reference in string; (#27) 2023-04-26 22:26:14 +02:00
stefan-gorules 9f06d96bac refactor: remove exec result; (#25) 2023-04-25 21:13:18 +02:00
Ivan Miletic 062ee5df90 feat: crates restructure (#22) 2023-04-24 20:28:27 +02:00