# @theorchard/field-validator

## 1.5.4

### Patch Changes

-   Removes the package.json exports field. When consumed by a pure ESM module ( e.g frontend-cli-i18n ) it requires proper dual builds with cjs and mjs extensions. This is very hard to achieve with the Typescript compiler. Removing the exports and only provide the old "modules" field makes it work with both worlds.

## 1.5.3

### Patch Changes

-   Fix ESM build

## 1.5.2

### Patch Changes

-   Revert "type: 'module'" and make this package default cjs again.

## 1.5.1

### Patch Changes

-   Added exports fields to package.json
-   Expose package as ES module

## 1.5.0

### Minor Changes

-   Mark strUnion choices as readonly

## 1.4.0

### Minor Changes

-   Add transform for nested objects

## 1.3.0

### Minor Changes

-   Adds strUnion and instanceOf validators

## 1.2.0

### Minor Changes

-   FieldValidator now accepts `unknown` subject type.

## 1.1.0

### Minor Changes

-   Add arrayInt in field validator
