Replace removed topic publisher classes
In OneCX libs v8, deprecated publisher wrapper classes were removed from @onecx/integration-interface topic APIs.
If your app still uses these classes, TypeScript compilation will fail.
Required migration
Replace publisher wrappers with their corresponding topic classes.
| Removed in v8 | Use instead |
|---|---|
|
|
|
|
|
|
|
|
Example
Before
import { EventsPublisher } from '@onecx/integration-interface'
const eventsPublisher$ = new EventsPublisher()
eventsPublisher$.publish({ type: 'authentication#logoutButtonClicked' })
After
import { EventsTopic } from '@onecx/integration-interface'
const eventsTopic = new EventsTopic()
eventsTopic.publish({ type: 'authentication#logoutButtonClicked' })