# July 12, 2024

## 0.31.0

**`(feat):`** Add `omitUndefined` generator option. This is enabled with the following config:

```yaml
groups:
  generators:
    - name: fernapi/fern-typscript-node-sdk
      version: 0.31.0
      ...
      config:
        omitUndefined: true
```

When enabled, any property set to an explicit `undefined` is *not* included
in the serialized result. For example,

```typescript
const request: Acme.CreateUserRequest = {
  firstName: "John",
  lastName: "Doe",
  email: undefined
};
```

By default, explicit `undefined` values are serialized as `null` like so:

```json
{
  "firstName": "John",
  "lastName": "Doe",
  "email": null
}
```

When `omitUndefined` is enabled, the JSON object is instead serialized as:

```json
{
  "firstName": "John",
  "lastName": "Doe"
}
```