posthog-js 1.103.2 → 1.104.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 +2 -2
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/es.js +1 -1
- package/dist/es.js.map +1 -1
- package/dist/exception-autocapture.js +1 -1
- package/dist/exception-autocapture.js.map +1 -1
- package/dist/lib/src/posthog-core.d.ts +1 -1
- package/dist/lib/src/rate-limiter.d.ts +2 -1
- package/dist/lib/src/retry-queue.d.ts +3 -3
- package/dist/lib/src/send-request.d.ts +2 -2
- package/dist/lib/src/types.d.ts +17 -7
- package/dist/lib/src/utils/request-utils.d.ts +3 -0
- package/dist/module.d.ts +24 -12
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/recorder-v2.js +2 -2
- package/dist/recorder-v2.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/extensions/exception-autocapture/index.js +0 -1
- package/lib/src/extensions/exception-autocapture/index.js.map +1 -1
- package/lib/src/extensions/replay/sessionrecording.js +0 -1
- package/lib/src/extensions/replay/sessionrecording.js.map +1 -1
- package/lib/src/posthog-core.d.ts +1 -1
- package/lib/src/posthog-core.js +47 -47
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/rate-limiter.d.ts +2 -1
- package/lib/src/rate-limiter.js +2 -2
- package/lib/src/rate-limiter.js.map +1 -1
- package/lib/src/retry-queue.d.ts +3 -3
- package/lib/src/retry-queue.js +5 -5
- package/lib/src/retry-queue.js.map +1 -1
- package/lib/src/send-request.d.ts +2 -2
- package/lib/src/send-request.js +85 -6
- package/lib/src/send-request.js.map +1 -1
- package/lib/src/types.d.ts +17 -7
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/request-utils.d.ts +3 -0
- package/lib/src/utils/request-utils.js +5 -2
- package/lib/src/utils/request-utils.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ Install Yalc to link a local version of `posthog-js` in another JS project: `npm
|
|
|
71
71
|
|
|
72
72
|
Just put a `bump patch/minor/major` label on your PR! Once the PR is merged, a new version with the appropriate version bump will be released, and the dependency will be updated in [posthog/PostHog](https://github.com/posthog/PostHog) – automatically.
|
|
73
73
|
|
|
74
|
-
If you want to release a new version without a PR (e.g. because you forgot to use the label), check out the `
|
|
74
|
+
If you want to release a new version without a PR (e.g. because you forgot to use the label), check out the `main` branch and run `npm version [major | minor | patch] && git push --tags` - this will trigger the automated release process just like the label.
|
|
75
75
|
|
|
76
76
|
### Prereleases
|
|
77
77
|
|
|
@@ -79,7 +79,7 @@ To release an alpha or beta version, you'll need to use the CLI locally:
|
|
|
79
79
|
|
|
80
80
|
1. Make sure you're a collaborator on `posthog-js` in npm ([check here](https://www.npmjs.com/package/posthog-js)).
|
|
81
81
|
2. Make sure you're logged into the npm CLI (`npm login`).
|
|
82
|
-
3. Check out your work-in-progress branch (do not release an alpha/beta from `
|
|
82
|
+
3. Check out your work-in-progress branch (do not release an alpha/beta from `main`).
|
|
83
83
|
4. Run the following commands, using the same bump level (major/minor/patch) as your PR:
|
|
84
84
|
```bash
|
|
85
85
|
npm version [premajor | preminor | prepatch] --preid=beta
|