1.1.4 • Published 1 year ago

@factoryfour/jexl v1.1.4

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
1 year ago

jexl

This packages is FactoryFour's implementation of its internal jexl use cases.

Semantic Release

This repo has semantic release, and so whenever anything is merged into the main branch, the version is updated and the package is automatically published. The type of version change is based on the commit message and is auto generated. Make sure to use conventional commit messages to trigger semantic release as commit-analyzer requires that. Use the ! operator to denote a breaking change when updating this package so semantic release can make a major version change.

Exports

There are three things exported from this package. evaluateBoolean and evaluateString are exported to use any of the default jexl transforms we use throughout FactoryFour. Instead of having to redefine these transforms we can just use these evaluate functions to get access to all of these.

Transforms we support in this package

  • date
  • longISODate
  • round
  • floor
  • ceil
  • length
  • count
  • join
  • removeDuplicates
  • mapToProperty
  • clock
  • toFixed
  • abs
  • sum

The entire jexl object is also exported in the case we want to add custom/additional transforms on top of whatever is implemented within this package.

1.1.4

1 year ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago