schema-utils is a JavaScript package used to validate the options for webpack loaders and plugins using JSON schema. It provides a validate function that checks an options object against a schema and can format validation errors, with configuration for error naming and base data paths.
Project status
- webpack/schema-utils appears to be in active development, with an upstream GitHub push on 2026-01-23. However, the latest surfaced tagged update in the provided history is v4.3.3 on 2025-10-02.
- The apparent updates cadence is slow to moderate, roughly every several months (for example, v4.3.1 and v4.3.2 both in 2025-04, then v4.3.3 in 2025-10). As of 2026-08-12, there is no newer tagged update shown in the provided summaries.
AI summary generated
Recent updates
v4.3.3
v4.3.3 is primarily a TypeScript surface-area fix: it reexports the `ValidationErrorConfiguration` type. The diff also includes a broad internal refactor of `ValidationError` and related utilities/keywords, along with updated tests and snapshots.
v4.3.2
Release v4.3.2 is a small update focused on TypeScript type compatibility. The release notes only mention a bug fix for compatibility with old types, and the code diff shows changes limited to type definitions and JSDoc, with no runtime logic modifications.
v4.3.1
v4.3.1 primarily improves TypeScript typings by exporting additional schema-related types, including Schema and JSONSchema variants. The code diff shows only typing and documentation changes, plus a CI action version bump.
Featuresv4.3.0
v4.3.0 introduces validation behavior changes intended to “backport old logic from v3”, plus a bug fix around how “object” is detected. The code diff shows a substantial AJV customization for format comparison keywords, along with updated TypeScript typings and a broad lockfile churn.
Featuresv3.3.0
v3.3.0 adds a public API to disable or enable schema validation, and includes a performance improvement related to caching compiled schema/validator state. The release notes do not mention additional validation-control behavior or any new schema keywords/API exports beyond the enable/disable functions.
Featuresv4.2.0
v4.2.0 is primarily described as adding an API to disable and enable schema validation, plus a performance-oriented change to lazily load some internal modules. The code diff shows additional functional and behavioral changes beyond those notes, including new exports, changes in how Ajv error paths are represented, and changes to schema typing and validation logic.
Featuresv3.2.0
v3.2.0 adds support for a new `undefinedAsNull` keyword that integrates with enum validation. When enabled, the library treats `undefined` values as `null` for schemas using `enum`, and updates test fixtures and validation error output accordingly.
Featuresv4.1.0
schema-utils v4.1.0 adds a new `undefinedAsNull` keyword intended to let `undefined` values behave like `null` for `enum` validations. However, the included code changes also show several broader behavioral and typing changes (not mentioned in the v4.1.0 release notes), especially around AJV v8 error path handling (`instancePath` vs `dataPath`) and date format exclusive bounds typing/behavior.
Featuresv3.1.2
v3.1.2 is a small release focused on improving startup performance. The only code change is in how the AJV validator instance is created and reused.
v4.0.1
Release v4.0.1 notes only mention a performance improvement to improve initial start time. The actual code diff for this release includes much larger behavioral and API surface changes around AJV integration, validation error formatting, and schema typing that are not mentioned in the release notes.