Joi extensions for date validation and advanced date rules. Useful for developers who want to use Joi to define and validate date-related schemas with additional date-specific functionality.
Project status
- Actively maintained: Yes, recent activity is current, with an upstream push on 2026-07-31 and a corresponding v3.0.0 update shortly after (relative to 2026-08-12).
- Update cadence: Irregular. There was a long gap between earlier updates (v2.1.1 in 2024) and the major v3.0.0 rewrite in 2026, suggesting bursts of work rather than a steady release stream.
AI summary generated
Recent updates
v3.0.0
v3.0.0 is a major rewrite of the Joi date extension, migrating from Moment to Dayjs (including plugin-based parsing) and switching the package to modern ESM/TypeScript build outputs. Along with that, the API surface and packaging changed substantially (new named export, updated type signatures, and different parsing format semantics).
BreakingFeaturesv2.1.1
v2.1.1 is primarily a TypeScript typings and tooling update. The only functional-looking change in the diff is within lib/index.d.ts, where the module export shape was adjusted, alongside CI configuration changes and a dev dependency addition.
v2.1.0
Release v2.1.0 is published, but the publisher did not provide any release notes or change log details. As a result, there is no actionable information available here about new features, fixes, breaking changes, or required migrations.
v2.0.1
v2.0.1 has no release notes provided. The diff shows only documentation and test changes plus a package version bump, with no visible changes to runtime library code.
v2.0.0
v2.0.0 is a small release with minimal code changes: it updates the Joi coercion hook signature used by the date extension and adjusts an associated test expectation. It also switches the dev dependency from a preview Joi version to the broader 16.x.x range.
v2.0.0-preview
This release, v2.0.0-preview, refactors the joi-date extension to use the newer Joi extension structure (with coerce and overrides) and updates the project toolchain to newer @hapi packages. No publisher release notes were provided, so the documented changes section is effectively empty, despite code-level behavior changes.
BreakingFeaturesv1.3.0
Release v1.3.0 has no published release notes in the provided data. The code diff shows a largely non-functional refactor in the date coercion logic, plus major repo and distribution changes such as renaming the npm package and updating the documented/expected Joi ecosystem.
Breakingv1.2.0
v1.2.0 introduces a new UTC parsing mode for the Joi date extensions, exposed as `Joi.date().utc()`. The change updates the core date conversion logic to use `Moment.utc(...)` when the new `utc` flag is set, and adds/updates tests and API documentation accordingly. No publisher release notes were provided for this version.
Featuresv1.1.1
v1.1.1 primarily updates documentation references to point at the new API reference URL. The only substantive change visible in the diff is a dependency change in package.json.
v1.1.0
Release v1.1.0 was published on 2017-09-26. No release notes were provided, so the specific changes, potential API impacts, and migration considerations cannot be determined from the release description alone.