@nexly/core 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @nexly/core
2
2
 
3
- Framework-agnostic **Nexly** browser ingest SDK: `Nexly` client, `sendBeacon` helpers, browser context, optional engagement listeners.
3
+ JavaScript SDK for browser-side event ingestion with Nexly. No UI framework required.
4
4
 
5
- For **React**, use **`@nexly/react-web`** (`NexlyProvider` with optional `autoPageView` / `autoEngagement`, `useNexlyClient`).
5
+ For React apps, add **@nexly/react-web**. For Next.js App Router, use **@nexly/next**.
6
6
 
7
7
  ## Install
8
8
 
@@ -21,11 +21,11 @@ nexly.pageview()
21
21
  nexly.event({ name: 'click', type: 'engagement', data: { id: 'x' } })
22
22
  ```
23
23
 
24
- `options` matches the `NexlyInit` type (your host app builds this object).
24
+ Constructor options use the `NexlyInit` type from the published typings.
25
25
 
26
26
  ## API
27
27
 
28
- Published **`.d.ts`** declarations list exports and types (`Nexly`, `sendBeaconCollect`, `collectBrowserMeta`, `startEngagementTracking`, and related).
28
+ The package ships `.d.ts` files; use your editor or `node_modules` typings for the full export list.
29
29
 
30
30
  ## License
31
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexly/core",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Nexly browser ingest core (sendBeacon, Nexly client, context, engagement)",
5
5
  "license": "MIT",
6
6
  "keywords": [