@leanbase.com/js 0.1.0 → 0.1.1
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 +9 -9
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/leanbase.iife.js +1 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -5,15 +5,15 @@ Lightweight browser SDK for Leanbase - event tracking, autocapture, and session
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @leanbase/js
|
|
8
|
+
npm install @leanbase.com/js
|
|
9
9
|
# or
|
|
10
|
-
pnpm add @leanbase/js
|
|
10
|
+
pnpm add @leanbase.com/js
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
15
|
```javascript
|
|
16
|
-
import { Leanbase } from '@leanbase/js'
|
|
16
|
+
import { Leanbase } from '@leanbase.com/js'
|
|
17
17
|
|
|
18
18
|
// Initialize with your API key
|
|
19
19
|
const leanbase = new Leanbase('your-api-key')
|
|
@@ -36,7 +36,7 @@ leanbase.identify('user-123', {
|
|
|
36
36
|
Include the prebuilt IIFE bundle from a CDN and use the global `leanbase` object. Call `leanbase.init('<apiKey>', options)` once, then use `leanbase.capture(...)` and friends.
|
|
37
37
|
|
|
38
38
|
```html
|
|
39
|
-
<script src="https://unpkg.com/@leanbase/js/dist/leanbase.iife.js"></script>
|
|
39
|
+
<script src="https://unpkg.com/@leanbase.com/js/dist/leanbase.iife.js"></script>
|
|
40
40
|
<script>
|
|
41
41
|
// Initialize with your API key
|
|
42
42
|
leanbase.init('your-api-key', { host: 'https://i.leanbase.co' })
|
|
@@ -49,7 +49,7 @@ Include the prebuilt IIFE bundle from a CDN and use the global `leanbase` object
|
|
|
49
49
|
Alternatively via jsDelivr:
|
|
50
50
|
|
|
51
51
|
```html
|
|
52
|
-
<script src="https://cdn.jsdelivr.net/npm/@leanbase/js/dist/leanbase.iife.js"></script>
|
|
52
|
+
<script src="https://cdn.jsdelivr.net/npm/@leanbase.com/js/dist/leanbase.iife.js"></script>
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
## Configuration
|
|
@@ -126,7 +126,7 @@ This monorepo uses [Changesets](https://github.com/changesets/changesets) for ve
|
|
|
126
126
|
|
|
127
127
|
To bump the version:
|
|
128
128
|
1. Create a changeset: `pnpm changeset add`
|
|
129
|
-
- Select `@leanbase/js` package
|
|
129
|
+
- Select `@leanbase.com/js` package
|
|
130
130
|
- Choose version bump type (patch, minor, major)
|
|
131
131
|
- Add a description of changes
|
|
132
132
|
2. Commit the changeset file (`.changeset/*.md`)
|
|
@@ -145,10 +145,10 @@ Added IIFE build for script-tag usage and improved documentation.
|
|
|
145
145
|
### Publishing to NPM
|
|
146
146
|
1. Ensure you have an NPM token with publish permissions
|
|
147
147
|
2. Set the token: `export NPM_TOKEN=your_token`
|
|
148
|
-
3. Publish: `pnpm --filter=@leanbase/js publish`
|
|
149
|
-
4. Or test first: `pnpm --filter=@leanbase/js exec npm publish --dry-run`
|
|
148
|
+
3. Publish: `pnpm --filter=@leanbase.com/js publish`
|
|
149
|
+
4. Or test first: `pnpm --filter=@leanbase.com/js exec npm publish --dry-run`
|
|
150
150
|
|
|
151
|
-
The package will be published to https://www.npmjs.com/package/@leanbase/js
|
|
151
|
+
The package will be published to https://www.npmjs.com/package/@leanbase.com/js
|
|
152
152
|
|
|
153
153
|
## License
|
|
154
154
|
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/leanbase.iife.js
CHANGED
package/package.json
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.1.
|
|
1
|
+
export const version = '0.1.1'
|