New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aurelia-validation

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-validation

Validation for Aurelia applications

  • 0.12.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.7K
increased by8.62%
Maintainers
2
Weekly downloads
 
Created
Source

Enhancements

  • First class TypeScript support
  • Asynchronous validation
  • Entity validation
  • Multiple controllers per view.
  • Drop validate.js
  • Errors that aren't specific to a particular property/element
  • Conditional validation
  • Make it easier to define custom rules
  • Make it easier to customize error messages / I18N
  • Keyed message resources
  • Use binding engine to render message templates
  • Improve renderer API to make animation scenarios and "success" scenarios possible

Under Consideration

  • Enable specifying rules for nested properties: ValidationRules.ensure('foo.bar.baz').required();
  • Validation sequencing: add an option or change the standard behavior such that rules specific to a particular property are validated sequentially. The first validation error cancels the remaining validation work for the property. Side-effect: properties would never have more than one error. Benefit: expensive rules could be validated only when everything else is valid.

Known Issues

  • & validate does not work with two-way custom attributes because it's unable to locate the associated DOM element.
  • Rule property decorators missing. @required, etc

Demos

  • Fluent API: ensure, displayName Rules: required, satisfies, min/max-length/items, email, matches Message customization: withMessage, withMessageKey when,
  • Replacing default messages

Building

npm run build

Keywords

FAQs

Package last updated on 29 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc