lightspeed-retail-sdk 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  A modern JavaScript SDK for interacting with the Lightspeed Retail API. This SDK provides a convenient, secure, and flexible way to access Lightspeed Retail's features—including customer, item, and order management.
4
4
 
5
- **Current Version: 3.2.1** — Now with secure encrypted token storage using Node.js crypto. Useful CLI tools, database tools & email warnings on auth failure.
5
+ **Current Version: 3.3.0** — Refactor: extract endpoints for maintainability and improve endpoint testing. Enhanced query param encoding and pagination logic for consistency.
6
6
 
7
- ## **🆕 Recent Updates (v3.2.0)**
7
+ ## **🆕 Recent Updates (v3.3.0)**
8
8
 
9
+ - **Add centralized query param builder for API requests**: Add centralized query param builder for API requests. Supports input as object, string, or array, and manages relations/load_relations. Ensures no double-encoding of parameters and handles special cases for 'or' and 'timeStamp'.
9
10
  - **🎯 Enhanced Parameter Support**: All main getter methods now support both legacy and new object-based parameters with full backward compatibility
10
11
  - **🔄 Flexible Method Signatures**: New object-based parameters support `{ relations, limit, timeStamp, sort }` for all collection methods
11
12
  - **⚡ Improved Performance**: Smart pagination with single-page requests when `limit` is specified
@@ -65,7 +66,7 @@ const items = await sdk.getItems({
65
66
  ## Table of Contents
66
67
 
67
68
  - [Another Unofficial Lightspeed Retail V3 API SDK](#another-unofficial-lightspeed-retail-v3-api-sdk)
68
- - [**🆕 Recent Updates (v3.2.0)**](#-recent-updates-v320)
69
+ - [**🆕 Recent Updates (v3.3.0)**](#-recent-updates-v330)
69
70
  - [🚀 Key Features](#-key-features)
70
71
  - [🔄 Migrating from 3.1.x](#-migrating-from-31x)
71
72
  - [Backward Compatibility](#backward-compatibility)