Skip to content

v0.3.0

Choose a tag to compare

@srikrsna-buf srikrsna-buf released this 28 Jul 13:28
· 88 commits to main since this release
db8d18c

What's Changed

The package has undergone significant changes in both its public APIs and internal architecture. We've substantially increased our conformance test coverage and redesigned the APIs to be more intuitive and lightweight. Running a CEL expression is now streamlined to just a few lines:

import { run } from "@bufbuild/cel";
import { STRINGS_EXT_FUNCS } from "@bufbuild/cel/ext/strings";

run(
  `name.indexOf('taco') == 0`,
  {name: "tacocat"},
  {funcs: STRINGS_EXT_FUNCS },
); // true

The above snippet uses variables and strings extension function, both of which are optional.

Full Changelog: v0.2.0...v0.3.0