If you’re currently using the grid-sdk package, migrating to @sqds/grid is straightforward and provides enhanced features including multi-provider support and React Native compatibility.

Migration Steps

1

Update Package Installation

Uninstall the old SDK and install the new one:
npm uninstall grid-sdk
npm install @sqds/grid
2

Update Import Statements

Change your import statements throughout your codebase:
// Old import
import { GridClient } from "grid-sdk";

// New import
import { GridClient } from "@sqds/grid";
You can use find-and-replace to update all occurrences:
  • Find: from "grid-sdk"
  • Replace: from "@sqds/grid"
3

Verify Functionality

Your existing code should work without changes:
const gridClient = new GridClient({
  environment: "sandbox",
  apiKey: process.env.GRID_API_KEY!,
});

Back to Quickstart

Return to the main quickstart guide