Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 50 million developers.Sign up
Release 0.7.1 further reduces the minified size of the xtypejs core library, and is released together with new type introspection functionality from the new xtypejs-extension-introspection extension. This new functionality makes it easy to produce much friendlier type and data validation reporting, useful for UIs, user messaging, error reporting, as well as other data and user input validation scenarios. The new extension both extends and replaces the old xtypejs-extension-typename-utils extension without any loss of existing functionality. Please see the Using Type Introspection topic under the Guide section of the website, as well as the Introspection section under the API section for full details on the new introspection features.
Release 0.7.0 further improves the completeness of the xtypejs type and data validation API by adding a number of new interface methods for validating sets of data at a time, in a single operation. The addition of these new methods brings the value-set validation API on parity with the type-specific validation API. The new API methods include none.is, any.is, some.is and all.is, as well as not.is. This release adds these new methods with negligible size increase to the library, maintaining its significantly reduced size from the prior version.
Release 0.6.1 addresses an issue in version 0.6.0 where custom name schemes were not properly picked up, whereas release 0.6.0 introduced modularity to xtypejs, splitting it up into smaller components by extracting various previously bundled functionality into separate optional xtypejs extension modules. The result is a significantly smaller xtypejs library which provides the core type checking and data validation functionality, while still allowing the flexibility to re-introduce the various other additional functionality by applying their corresponding extension modules only when each of their functionality is required. Note that the release split up xtypejs into several modules while still maintaining the existing xtypejs API. Therefore, existing applications may now just require several modules, though most will still require just the main xtypejs module. With the much leaner library, xtypejs is also now listed on microjs.com.
This release introduces modularity to xtypejs, breaking it up into smaller components by extracting various, previously bundled, functionality into separate optional xtypejs extension modules. The result is a significantly smaller xtypejs library which provides the core xtypejs type checking and data validation functionality, while still allowing the flexibility to re-introduce the various other additional functionality by applying their corresponding extension modules only when these additional functionality are required. Note that this release breaks up xtypejs into several modules, but does not break the prior xtypejs API. Therefore, existing applications may only now require several modules, though most will only still require the main xtypejs module.
This release introduces substantial custom type enhancements, including support for types with arbitrary custom validation logic. It also introduces an enhanced and flexible type definition format that makes it possible to derive new data-validating types from any combination of existing types, in a way that is completely compatible with all built-in types, instance types, and any previously defined custom types.
Release 0.4.2 adds several new APIs for validating sets of values at a time, adds new options and extension APIs, and implements additional performance enhancements.