@clianta/sdk 1.1.0 → 1.2.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/CHANGELOG.md CHANGED
@@ -5,6 +5,58 @@ All notable changes to the Clianta SDK will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.2.0] - 2026-02-02
9
+
10
+ ### Added
11
+ - **Companies API** - Full CRUD operations for company management
12
+ - `getCompanies()`, `getCompany()`, `createCompany()`, `updateCompany()`, `deleteCompany()`
13
+ - `getCompanyContacts()` - Retrieve all contacts associated with a company
14
+ - `getCompanyDeals()` - Retrieve all deals associated with a company
15
+ - **Pipelines API** - Manage sales pipelines and stages
16
+ - `getPipelines()`, `getPipeline()`, `createPipeline()`, `updatePipeline()`, `deletePipeline()`
17
+ - **Tasks API** - Task management for CRM workflows
18
+ - `getTasks()`, `getTask()`, `createTask()`, `updateTask()`, `deleteTask()`
19
+ - `completeTask()` - Mark a task as completed
20
+ - **Activities API** - Full activity logging system
21
+ - `getContactActivities()`, `getOpportunityActivities()`
22
+ - `createActivity()`, `updateActivity()`, `deleteActivity()`
23
+ - `logCall()` - Quick helper for logging phone calls
24
+ - `logMeeting()` - Quick helper for logging meetings
25
+ - `addNote()` - Quick helper for adding notes to contacts/opportunities
26
+ - **New TypeScript Types** - Added `Company`, `Pipeline`, `PipelineStage`, `Task`, `Activity` interfaces
27
+ - **26 new unit tests** for CRM API methods (76 total tests)
28
+
29
+ ## [1.1.1] - 2026-02-01
30
+
31
+ ### Fixed
32
+ - **Security:** Fixed XSS vulnerability in PopupForms plugin - now uses safe DOM APIs instead of innerHTML
33
+ - **Memory Leak:** Fixed PageViewPlugin not cleaning up History API patches and popstate listeners on destroy
34
+ - **Memory Leak:** Added max buffer size (100 events) to consent manager to prevent unbounded memory growth
35
+ - **Race Condition:** Fixed potential race condition in queue flush when events pushed during flush
36
+ - **Divide by Zero:** Fixed scroll depth plugin crash on pages shorter than viewport
37
+
38
+ ### Changed
39
+ - Performance plugin now uses modern `PerformanceNavigationTiming` API with fallback for older browsers
40
+ - Plugin interface now supports async `init()` methods
41
+ - Tracker `destroy()` method is now async and properly awaits queue flush
42
+
43
+ ### Added
44
+ - Client-side rate limiting (100 events per minute) to prevent event flooding
45
+ - Unit test suite with 50+ tests covering core modules (queue, transport, consent, utils)
46
+
47
+ ## [1.1.0] - 2026-01-31
48
+
49
+ ### Added
50
+ - PopupForms plugin for lead capture popups with multiple trigger types (delay, scroll, exit intent, click)
51
+ - React integration with `CliantaProvider`, `useClianta()`, and `useCliantaTrack()` hooks
52
+ - GDPR right-to-erasure via `deleteData()` method
53
+ - Anonymous tracking mode for pre-consent data collection
54
+ - Event buffering when `waitForConsent` is enabled
55
+
56
+ ### Changed
57
+ - Updated SDK_VERSION constant to track version properly
58
+ - Improved TypeScript type exports
59
+
8
60
  ## [1.0.0] - 2026-01-30
9
61
 
10
62
  ### Added