Enonic Market Enonic Market
Util lib icon

Util lib

Essential tools for your XP project development

The UTIL library is a library built and hosted by Enonic, which includes a set of JavaScript utility functions which may speed up your XP App development process significantly.

Releases

  1. 2.2.1

    • Added precompilation of lib-context
    • Compatibility:
      • 7.0.0
  2. 2.2.0

    • Implemented getSites method
    • Compatibility:
      • 7.0.0
  3. 2.1.0

    • Implemented getAncestors method
    • Implemented getChildren method
    • Compatibility:
      • 7.0.0
  4. 2.0.0

    • Compatibility with XP7
    • Compatibility:
      • 7.0.0
  5. 1.3.1

    • Properly expose the new object functions via libUtil.object
    • Updated Gradle build-file
    • Compatibility:
      • 6.3.1
  6. 1.3.0

    • Added value.isObject
    • Added value.isString
    • Added object.hasProperty
    • Added object.dlv (safely use deep.nested.properties in JSON)
    • Compatibility:
      • 6.3.1
  7. 1.2.2

    • Fixed library build.
    • Compatibility:
      • 6.3.1
  8. 1.2.1

    • Fixed library dependencies
    • Compatibility:
      • 6.3.1
  9. 1.2.0

    • Introducing the new "value.js" function library that adds handy functions like isSet, isNotSet, valueOr, valueOrEmptyString and ifSetPassToFunction.
    • Compatibility:
      • 6.3.1
  10. 1.1.3

    • Add dependencies for lib-content and lib-portal as they are used.
    • Compatibility:
      • 6.3.1
  11. 1.1.2

    • New function: data - isSet() to check if values exists
    • Improved documentation
    • Upgrade to Gradle 3.x
    • Compatibility:
      • 6.3.1
  12. 1.1.1

    • Fixed gradle.properties comments
    • Removed getSiteConfig since this exists in portal lib now
    • Compatibility:
      • 6.3.1
  13. 1.1.0

    • Added getSiteConfig function
    • Renamed util.js to index.js for shorter include paths
    • Group xp libs in libs variable
    • Upgrade gradle wrapper from 2.2 to 2.9
    • Compatibility:
      • 6.3.1
  14. 1.0.0

    • Initial release
    • Compatibility:
      • 6.0.0

Comments

Download Util lib

An XP library is normally included in your application through the Gradle build script like this:

dependencies {
    include 'com.enonic.lib:lib-util:2.2.1'
}

Download the source code for Util lib

Documentation for Util lib