Skip to content

EmberData/WarpDrive Packages Have Been Simplified

Looking for the Old Package Setup Guide?

Configuration

WarpDrive is highly configurable. The library is designed as a series of small packages and primitives with clear interface-driven boundaries between each other and brought together by configuration.

Below, we detail the installation for the most common configurations.


interchangable components talk with each otherinterchangable components talk with each other

Installation

💡 TIP

WarpDrive uses npm channel tags to simplify installation. Available channels include:

  • @lts | @latest | @beta | @canary

Replace @latest in the commands below with a different channel as desired.

sh
pnpm add -E @warp-drive/core@latest @warp-drive/json-api@latest
sh
npm add -E @warp-drive/core@latest @warp-drive/json-api@latest
sh
yarn add -E @warp-drive/core@latest @warp-drive/json-api@latest
sh
bun add --exact @warp-drive/core@latest @warp-drive/json-api@latest

Lockstep Versioning

⚠️ Caution

WarpDrive packages follow lockstep: dependencies and peer-dependencies between WarpDrive packages are version-locked at the time of publish.

We find this means its best to use exact versions instead of ranges as all WarpDrive packages should be upgraded together at once.

All of the installation commands listed in this guide pin the version for this reason.

Other Packages

Install @warp-drive/utilities for commonly needed request builder, handler and string utils.

sh
pnpm add -E @warp-drive/utilities@latest
sh
npm add -E @warp-drive/utilities@latest
sh
yarn add -E @warp-drive/utilities@latest
sh
bun add --exact @warp-drive/utilities@latest

Install @warp-drive/experiments for bleeding edge unstable features we're prototyping like SharedWorker and PersistedCache.

sh
pnpm add -E @warp-drive/experiments@latest
sh
npm add -E @warp-drive/experiments@latest
sh
yarn add -E @warp-drive/experiments@latest
sh
bun add --exact @warp-drive/experiments@latest

🐹 For Ember.js Only

Install @warp-drive/ember

sh
pnpm add -E @warp-drive/ember@latest
sh
npm add -E @warp-drive/ember@latest
sh
yarn add -E @warp-drive/ember@latest
sh
bun add --exact @warp-drive/ember@latest

Optionally, for Ember Inspector support install @ember-data/debug

sh
pnpm add -E @ember-data/debug@latest
sh
npm add -E @ember-data/debug@latest
sh
yarn add-E @ember-data/debug@latest
sh
bun add --exact @ember-data/debug@latest

Optionally, to use the legacy concepts such as Models, Adapters, or Serializers install the following packages:

TIP

Also Install These Packages To Use LegacyMode Schemas

sh
pnpm add -E @warp-drive/utilities@latest @warp-drive/legacy@latest
sh
npm add -E @warp-drive/utilities@latest @warp-drive/legacy@latest
sh
yarn add -E @warp-drive/utilities@latest @warp-drive/legacy@latest
sh
bun add --exact @warp-drive/utilities@latest @warp-drive/legacy@latest

Released under the MIT License.