Repository navigation
v3.0.0
·
11 commits
to main
since this release
Merge Node SDK Release Notes - Version [3.0.0]
Breaking Changes
Use v 3.0.1 which fixes a bug introduced in this version
-
Client Class Names:
Direct imports of resource client classes now require "Client" suffix. Main imports through the package root remain unchanged via backward compatibility aliases.
// ❌ v2.x - Direct imports no longer work
import { Activities } from "@mergeapi/merge-node-client/api/resources/ats/resources/activities/client/Client";
import { Candidates } from "@mergeapi/merge-node-client/api/resources/ats/resources/candidates/client/Client";
// ✅ v3.x - Update direct imports
import { ActivitiesClient } from "@mergeapi/merge-node-client/api/resources/ats/resources/activities/client/Client";
import { CandidatesClient } from "@mergeapi/merge-node-client/api/resources/ats/resources/candidates/client/Client";
// ✅ Main imports still work (backward compatible)
import { MergeClient, Ats, Accounting, Crm } from "@mergeapi/merge-node-client";
const client = new MergeClient({ apiKey: "your-api-key" });
const candidates = await client.ats.candidates.list();
// All existing API calls work identically
const candidates = await client.ats.candidates.list();
const accounts = await client.crm.accounts.list();
const employees = await client.hris.employees.list();
// Legacy class names still work for direct instantiation
const atsClient = new Ats({ apiKey: "your-api-key" });
const crmClient = new Crm({ apiKey: "your-api-key" });
const accountingClient = new Accounting({ apiKey: "your-api-key" });
Improvements
-
Enhanced Client Architecture
Modern BaseClient system with improved error handling, authentication providers, and better request/response processing. -
Better TypeScript Support
Improved type inference and normalized client options across all resource clients. -
Advanced Configuration Options
New support for custom timeouts, retry logic, logging configuration, and enhanced header management.