---
url: /api/@warp-drive/build-config/index/types/WarpDriveConfig.md
---

# &#x20;WarpDriveConfig

```ts
interface WarpDriveConfig {
  compatWith?:  ${number}.${number} ;
  debug?: Partial<debugging>;
  deprecations?: Partial<{
  DEPRECATE_CATCH_ALL: boolean;
  DEPRECATE_COMPUTED_CHAINS: boolean;
  DEPRECATE_EMBER_INFLECTOR: boolean;
  DEPRECATE_LEGACY_IMPORTS: boolean;
  DEPRECATE_MANY_ARRAY_DUPLICATES: boolean;
  DEPRECATE_NON_STRICT_ID: boolean;
  DEPRECATE_NON_STRICT_TYPES: boolean;
  DEPRECATE_NON_UNIQUE_PAYLOADS: boolean;
  DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE: boolean;
  DEPRECATE_STORE_EXTENDS_EMBER_OBJECT: boolean;
  DEPRECATE_TRACKING_PACKAGE: boolean;
  DISABLE_7X_DEPRECATIONS: boolean;
  ENABLE_LEGACY_REQUEST_METHODS: boolean;
  ENABLE_LEGACY_SCHEMA_SERVICE: boolean;
}>;
  features?: Partial<{
  ENFORCE_STRICT_RESOURCE_FINALIZATION: boolean;
  JSON_API_CACHE_VALIDATION_ERRORS: boolean;
  SAMPLE_FEATURE_FLAG: boolean;
}>;
  includeDataAdapterInProduction?: boolean;
  polyfillUUID?: boolean;
}
```

Defined in: [index.ts:111](https://github.com/warp-drive-data/warp-drive/blob/331a6acae2c14f865cc913111e8f3f2d4f6d7e44/warp-drive-packages/build-config/src/index.ts#L111)

Build Configuration options for WarpDrive that
allow adjusting logging, deprecations, canary features
and optional features.

## Properties

### compatWith?

```ts
optional compatWith?: `${number}.${number}`;
```

Defined in: [index.ts:166](https://github.com/warp-drive-data/warp-drive/blob/331a6acae2c14f865cc913111e8f3f2d4f6d7e44/warp-drive-packages/build-config/src/index.ts#L166)

The most recent version of the library from which all
deprecations have been resolved.

For instance if all deprecations released prior to or
within `5.3` have been resolved, then setting this to
`5.3` will remove all the support for the deprecated
features for associated deprecations.

:::caution **Universal Apps**
This value should be at least `5.6` for universal/non-ember
applications as that was the first version that builds
without any ember-source dependencies provided all deprecations
are resolved.
:::

See [deprecations](../../deprecations/index.md) for more details.

***

### debug?

```ts
optional debug?: Partial<debugging>;
```

Defined in: [index.ts:125](https://github.com/warp-drive-data/warp-drive/blob/331a6acae2c14f865cc913111e8f3f2d4f6d7e44/warp-drive-packages/build-config/src/index.ts#L125)

An object of key/value pairs of logging flags

see [debugging](../../debugging/index.md) for the available flags.

```ts
{
 LOG_CACHE: true,
}
```

***

### deprecations?

```ts
optional deprecations?: Partial<{
  DEPRECATE_CATCH_ALL: boolean;
  DEPRECATE_COMPUTED_CHAINS: boolean;
  DEPRECATE_EMBER_INFLECTOR: boolean;
  DEPRECATE_LEGACY_IMPORTS: boolean;
  DEPRECATE_MANY_ARRAY_DUPLICATES: boolean;
  DEPRECATE_NON_STRICT_ID: boolean;
  DEPRECATE_NON_STRICT_TYPES: boolean;
  DEPRECATE_NON_UNIQUE_PAYLOADS: boolean;
  DEPRECATE_RELATIONSHIP_REMOTE_UPDATE_CLEARING_LOCAL_STATE: boolean;
  DEPRECATE_STORE_EXTENDS_EMBER_OBJECT: boolean;
  DEPRECATE_TRACKING_PACKAGE: boolean;
  DISABLE_7X_DEPRECATIONS: boolean;
  ENABLE_LEGACY_REQUEST_METHODS: boolean;
  ENABLE_LEGACY_SCHEMA_SERVICE: boolean;
}>;
```

Defined in: [index.ts:181](https://github.com/warp-drive-data/warp-drive/blob/331a6acae2c14f865cc913111e8f3f2d4f6d7e44/warp-drive-packages/build-config/src/index.ts#L181)

An object of key/value pairs of logging flags

see [deprecations](../../deprecations/index.md) for the available flags.

```ts
{
  DEPRECATE_THING: false,
}
```

***

### features?

```ts
optional features?: Partial<{
  ENFORCE_STRICT_RESOURCE_FINALIZATION: boolean;
  JSON_API_CACHE_VALIDATION_ERRORS: boolean;
  SAMPLE_FEATURE_FLAG: boolean;
}>;
```

Defined in: [index.ts:198](https://github.com/warp-drive-data/warp-drive/blob/331a6acae2c14f865cc913111e8f3f2d4f6d7e44/warp-drive-packages/build-config/src/index.ts#L198)

An object of key/value pairs of canary feature flags
for use when testing new features gated behind a flag
in a canary release version.

see [features](../../canary-features/index.md) for the available flags.

```ts
{
  FEATURE_A: true,
}
```

***

### includeDataAdapterInProduction?

```ts
optional includeDataAdapterInProduction?: boolean;
```

Defined in: [index.ts:146](https://github.com/warp-drive-data/warp-drive/blob/331a6acae2c14f865cc913111e8f3f2d4f6d7e44/warp-drive-packages/build-config/src/index.ts#L146)

By default, the integration required to support the ember-inspector
browser extension is included in production builds only when using
the `ember-data` package.

Otherwise the default is to exclude it. This setting allows to explicitly
enable/disable it in production builds.

***

### polyfillUUID?

```ts
optional polyfillUUID?: boolean;
```

Defined in: [index.ts:134](https://github.com/warp-drive-data/warp-drive/blob/331a6acae2c14f865cc913111e8f3f2d4f6d7e44/warp-drive-packages/build-config/src/index.ts#L134)

If you are using the library in an environment that does not
support `window.crypto.randomUUID` you can enable a polyfill
for it.
