Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Latest commit

 

History

History
148 lines (92 loc) · 4.67 KB

CHANGELOG.md

File metadata and controls

148 lines (92 loc) · 4.67 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Released]

[1.0.0] - 2019-12-13

Added

  • Grool is donated to hyperjump.tech with new name grule-rule-engine
  • GRL Lexer, Parser using ANTLR
  • Rule Builder
  • Knowledge Base container
  • Reflection Tooling to work with fact objects
  • DataContext to store facts
  • Cycle counter to ensure rule voting are not looped infinitely
  • Grule Rule Engine
  • Basic Built-In Functions
  • RuleEngine are working on facts that based on pointer so it can modify facts struct instances. Thus adding variable into DataContext will be checked to ensure ptr to a struct.
  • Added Retract function so rule can temporary retract a rule from knowledge base so it will not get voted any more in the next cycle.
  • Method invocation and tracer bug
  • Reflectools are now able to detect the object under reflection for its value vs ptr to struct
  • Function invocation now check if the argument is an Interface, it should accept any type of argument type values.

[1.0.1] - 2019-12-16

Added

  • Added Pub-Sub mechanism for rule execution events.

Fix

  • Better GRL load and compilation
  • Better GRL error handling when compiling GRL

[1.1.0] - 2019-12-27

Added

  • Initial RETE algorithm were added into Grule with only optimization in the ExpressionAtom level.
  • Naming and Versioning of knowledge base

[1.2.0] - 2020-01-16

Added

  • Newly revamped ANTLR4 Grammar for Grule, syntax and structure not changed but parsing get more efficient.
  • Support for modulus % operator
  • Support for bitwise OR and AND operator
  • Operator precedence support
  • RETE optimization to ensure reset of ExpressionAtom only happen if a known variable were changed

[1.2.3] - 2020-02-14

Added

  • Resource bundling, to load multiple GRL files by file path pattern
  • Load GRL resources from GIT
  • Resource bundling, to load multiple GRL files from GIT by the file path patteern

[1.2.4] - 2020-02-24

Added

  • EventBus implementation for Grule's internal event messaging now replaces the previous simple subscriber approach.
  • Added documentation regarding this EventBus implementation

[1.3.0] - 2020-06-11

Added

  • Variadic function calling

[1.4.0] - 2020-06-14

Added

  • Support for escape character in string literal
  • RuleBuilder is now to build rules in GRLs into KnowledgeLibrary
  • Now you should obtain a KnowledgeBase instance from KnowledgeLibrary. This enable concurrency model in Grule. See examples/Concurrency_test.go to know how it works.

[1.5.0] - 2020-08-02

Added

  • Support to build rule from JSON.
  • Engine support for context.Context using ExecuteWithContext function.

[1.6.0] - 2020-09-01

Added

  • Enhancing in variable traversal, from previously using string tracing to struct-field lookup in reflect.Value
  • Support for Array/Slice and Map handling.
  • Support for Function chaining.
  • Support for Constant functions.
  • Grule engine optimization for selecting from conflict set. Instead of sorting salience in descending, simply look for the biggest value.

Removed

  • Grule Event Bus is removed from Grule as it seems too complicated and no one use them. They just expect grule to just works.

[1.7.0] - 2020-11-06

Changes

  • Change the Grule ANTLR4 grammar for better structure, tested with ANTLR4 hierarchy and AST Tree.
  • FunctionCall AST graph is now under ExpressionAtom instead of Variable

Fix

  • Proper Integer and Float literals both support exponent format

Added

  • Integer literal support Octal and Hexadecimal, Float literal support Hexadecimal.
  • Added more documentation about the new numbering literals and also re-arrange the menu in the documentation.
  • Support negation.

[1.7.1] - 2020-12-02

Fix
  • Fixed ANTLR4 grammar to enable function chaining in the THEN scope
  • Fixed ANTLR4 grammar error that makes array/slice/map cannot be chained with function

Change

  • Built-in function Changed is renamed to Forget to clearly tell the engine to forget about variable values or function invocation to make sure the engine look again into the underlying data context on the next cycle.

[1.7.2] - 2020-12-09

Fix
  • Fixes the cloning problem where Expression do not clone the negation attribute
  • Added mutex for unique.NewID() to make sure that this function is thread/concurrent safe.

[1.8.0] - 2020-12-19

Added

  • Support for JSON as Fact
  • Support native type variable to be added straight into DataContext not only struct