Releases: AfterShip/tracking-sdk-nodejs
Releases · AfterShip/tracking-sdk-nodejs
15.0.1
15.0.0
Breaking Changes - AfterShip Tracking Node.js SDK v15.0.0
1. Response Structure Complete Refactor
All Response interfaces now contain response_headers and data structure:
// v14 - Direct access to response properties
const response = await client.tracking.createTracking(request);
const id = response.id;
const trackingNumber = response.tracking_number;
// v15 - Must access through data property
const response = await client.tracking.createTracking(request);
const id = response.data.id;
const trackingNumber = response.data.tracking_number;
const headers = response.response_headers; // New feature: get response headersApplies to all API responses: createTracking, getTrackingById, getTrackings, updateTrackingById, getCouriers, etc.
2. Model Names Simplified
Tracking model naming convention changed:
// v14 - Suffix naming
import { CourierEstimatedDeliveryDateTracking } from './model/CourierEstimatedDeliveryDateTracking';
import { ShipmentWeightTracking } from './model/ShipmentWeightTracking';
import { AftershipEstimatedDeliveryDateTracking } from './model/AftershipEstimatedDeliveryDateTracking';
// v15 - Prefix naming
import { TrackingCourierEstimatedDeliveryDate } from './model/TrackingCourierEstimatedDeliveryDate';
import { TrackingShipmentWeight } from './model/TrackingShipmentWeight';
import { TrackingAftershipEstimatedDeliveryDate } from './model/TrackingAftershipEstimatedDeliveryDate';Response class simplification:
- Old SDK had 120+ specialized response classes (e.g.,
AftershipEstimatedDeliveryDateCreateTrackingResponse,CarbonEmissionsGetTrackingByIdResponse) - New SDK unified these into simple, consistent response interfaces
14.0.0
13.0.0
What's Changed
- support 2025-04 version by @1415003719 in #26
- fix tracking model by @1415003719 in #27
Full Changelog: 12.0.0...13.0.0
12.0.0
10.0.3
9.0.4
11.0.2
- supporting 2024-10 version.
API and SDK Version
Each SDK version is designed to work with a specific API version. Please refer to the table below to identify the supported API versions for each SDK version, ensuring you select the appropriate SDK version for the API version you intend to use.
| SDK Version | Supported API Version | Branch |
|---|---|---|
| 11.x.x | 2024-10 | https://github.com/AfterShip/tracking-sdk-nodejs/tree/2024-10 |
| 10.x.x | 2024-07 | https://github.com/AfterShip/tracking-sdk-nodejs/tree/2024-07 |
| 9.x.x | 2024-04 | https://github.com/AfterShip/tracking-sdk-nodejs/tree/2024-04 |
| 8.x.x | 2023-10 | https://github.com/AfterShip/aftership-sdk-nodejs |
| <=7.x.x | Legacy API | https://github.com/AfterShip/aftership-sdk-nodejs |
10.0.2
What's Changed
- fix the RSA and AES sign
- fix typo
- remove local rate limit
9.0.3
What's Changed
- fix RSA and AES sign
- fix typo