Skip to content

Releases: AfterShip/tracking-sdk-nodejs

15.0.1

12 Nov 01:38
f155f5b

Choose a tag to compare

What's Changed

Full Changelog: 15.0.0...15.0.1

15.0.0

21 Oct 02:41
14dfce2

Choose a tag to compare

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 headers

Applies 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

22 Jul 08:12
cfe97fe

Choose a tag to compare

What's Changed

Full Changelog: 13.0.0...14.0.0

13.0.0

23 Apr 08:04
4eae447

Choose a tag to compare

What's Changed

Full Changelog: 12.0.0...13.0.0

12.0.0

10 Jan 06:33
42f157f

Choose a tag to compare

  • supported 2025-01 version.
  • added response headers in error object.

10.0.3

03 Dec 03:35
cebbd2a

Choose a tag to compare

  • resolved AES signature issue.

9.0.4

03 Dec 05:51
ff08c7b

Choose a tag to compare

  • resolved AES signature issue.

11.0.2

21 Oct 03:48

Choose a tag to compare

  • 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

15 Oct 08:20

Choose a tag to compare

What's Changed

  • fix the RSA and AES sign
  • fix typo
  • remove local rate limit

9.0.3

15 Oct 08:18

Choose a tag to compare

What's Changed

  • fix RSA and AES sign
  • fix typo