Skip to content

Releases: bytedance/go-tagexpr

v1.2.4

18 Apr 15:11
Compare
Choose a tag to compare

The field selector in the expression supports relative path instead of absolute path

v1.2.3

18 Apr 07:26
Compare
Choose a tag to compare

chore: Check interface fields when TagExpr.Range
fix: Don't panic when vm.Run method accepts nil parameter
chore: Use runtime type ID, support struct type, and improve performance by 25%

v1.2.2

22 Mar 12:08
Compare
Choose a tag to compare
Operator or Operand Explain
\\' Escape ' delims in string
\" Escape " delims in string

v1.2.1

22 Mar 04:11
Compare
Choose a tag to compare

Operator ! suitable for (), bool, string, float64, nil and $

v1.2.0

21 Mar 14:25
Compare
Choose a tag to compare

feat: Add RegFunc, support registers function expression, allows to force registration
feat: Function support "!" symbol
feat: Add helper method: vm.MustWarmUp and vm.MustRun
chore: Remove len(), keep len($)
feat(validator): Add RegValidateFunc registers validate function expression
feat(validator): Add email function expression
feat(validator): Add phone function expression

v1.1.5

20 Mar 09:23
aa92dbd
Compare
Choose a tag to compare
  • feat: support expression '-$' and '+$'
  • feat: support "$['A']" and "$[0]" to select struct sub-field
  • fix: fix the vaule getter of unsupport type

v1.1.4

25 Feb 07:18
Compare
Choose a tag to compare

chore(expr selector): single model selector remove '@' suffix
style(error): error message: 'Invalid parameter' -> 'invalid parameter'

v1.1.3

03 Feb 09:40
Compare
Choose a tag to compare

feat: Support get any struct filed value
chore: Improve stability

v1.1.2

02 Feb 10:48
Compare
Choose a tag to compare

Fix: fix priority

v1.1.1

30 Jan 16:54
6e5716f
Compare
Choose a tag to compare

feat: support nil value
chore: update validator