Skip to content

Release v0.0.27

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Sep 02:13
188fc0d

This release gives a huge boost to query structure and support by adding predicate support and SELECT entity keyword in code-pathfinder queries parity to CodeQL. 🚀

  1. You can now declare predicates within the CQL query and invoke them within the query. It improves re-usability and puts us in better place to implement class and predicates in future release 🏅

    predicate isPublicOrProtected(method_declaration md) {
        md.getVisibility() == "public" || md.getVisibility() == "protected"
    }
    
    FROM method_declaration AS md
    WHERE isPublicOrProtected(md)
    SELECT md, "Listing all public or protected methods"
  2. You can now use SELECT keyword to pick specific one from the bunch of result. ⛏️

    FROM method_invocation AS mi
    WHERE mi.getName() == "setJavaScriptEnabled" && "true" in mi.getArgumentName()
    SELECT mi, "Enabling JavaScript execution in a WebView can result in cross-site scripting attacks."

What's New?

  • feature: add user defined predicate declaration and invocation support with CQL query by @shivasurya in #134
  • feature: Add SELECT clause support for CQL query by @shivasurya in #137
  • chore(docs): update documentation to include SELECT keyword by @shivasurya in #138

Chore

  • chore(ci): added npm publish github action by @shivasurya in #130
  • Bump dset from 3.1.3 to 3.1.4 in /docs in the npm_and_yarn group across 1 directory by @dependabot in #131
  • Bump path-to-regexp from 6.2.2 to 6.3.0 in /docs in the npm_and_yarn group across 1 directory by @dependabot in #132
  • Bump vite from 5.3.3 to 5.4.6 in /docs in the npm_and_yarn group across 1 directory by @dependabot in #133
  • release: Bump/v0.0.27 by @shivasurya in #139

Full Changelog: v0.0.26...v0.0.27