Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
hmpo-date-controller
Advanced tools
A controller for the hmpo-form-wizard that provides out-of-the-box support for hmpo-template-mixins' 'input-date' mixin.
A controller for the hmpo-form-wizard that provides out-of-the-box support for hmpo-template-mixins' 'input-date' mixin. It is a drop-in replacement for the standard controller and, if need be, can be inherited from in your custom controllers.
The functionality in this module could, at some point, be merged into hmpo-form-controller as that already has knowledge of the date component fields provided by input-date.
The controller's functionality is fully documented in the unit test.
Whilst this is the first version of this module the code coverage is 100% as measured by [Istanbul]. This is tested for in CI to ensure new changes do not introduce untested code.
Linting is also checked in CI using the .eslintrc
from
hmpo-form-controller.
If you were using HOF's date-controller then you would have had a custom controller which declared a single field as being the only date field. You will also have added the date components to your steps definition. None of this is required in hmpo-date-controller so your migration is more about deleting this redundant code.
e.g. Consider the following steps definition:
[...]
'/step-one': {
controller: require('dob-controller'),
fields: [
'fullname',
'date-of-birth',
'date-of-birth-day',
'date-of-birth-month',
'date-of-birth-year',
'nationality'
],
next:
'/step-two'
},
[...]
This can now become simply:
[...]
'/step-one': {
fields: [
'fullname',
'date-of-birth',
'nationality'
],
next:
'/step-two'
},
[...]
This of course means that you are now free to have more than one date field per step.
If you were doing any validation on the date you might need to add it to the definition for the field.
The only thing left to do is to ensure the default controller is, or inherits from, hmpo-date-controller.
FAQs
A controller for the hmpo-form-wizard that provides out-of-the-box support for hmpo-template-mixins' 'input-date' mixin.
The npm package hmpo-date-controller receives a total of 1 weekly downloads. As such, hmpo-date-controller popularity was classified as not popular.
We found that hmpo-date-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.