posthog-js 1.258.2 → 1.258.4

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 (42) hide show
  1. package/README.md +1 -34
  2. package/dist/all-external-dependencies.js.map +1 -1
  3. package/dist/array.full.es5.js +1 -1
  4. package/dist/array.full.es5.js.map +1 -1
  5. package/dist/array.full.js +1 -1
  6. package/dist/array.full.js.map +1 -1
  7. package/dist/array.full.no-external.js +1 -1
  8. package/dist/array.full.no-external.js.map +1 -1
  9. package/dist/array.js +1 -1
  10. package/dist/array.js.map +1 -1
  11. package/dist/array.no-external.js +1 -1
  12. package/dist/array.no-external.js.map +1 -1
  13. package/dist/customizations.full.js +1 -1
  14. package/dist/exception-autocapture.js.map +1 -1
  15. package/dist/main.js +1 -1
  16. package/dist/main.js.map +1 -1
  17. package/dist/module.d.ts +8 -2
  18. package/dist/module.full.d.ts +8 -2
  19. package/dist/module.full.js +1 -1
  20. package/dist/module.full.js.map +1 -1
  21. package/dist/module.full.no-external.d.ts +8 -2
  22. package/dist/module.full.no-external.js +1 -1
  23. package/dist/module.full.no-external.js.map +1 -1
  24. package/dist/module.js +1 -1
  25. package/dist/module.js.map +1 -1
  26. package/dist/module.no-external.d.ts +8 -2
  27. package/dist/module.no-external.js +1 -1
  28. package/dist/module.no-external.js.map +1 -1
  29. package/dist/src/posthog-surveys.d.ts +0 -2
  30. package/dist/src/types.d.ts +8 -0
  31. package/dist/surveys-preview.d.ts +8 -2
  32. package/lib/package.json +3 -3
  33. package/lib/src/posthog-core.js +1 -0
  34. package/lib/src/posthog-core.js.map +1 -1
  35. package/lib/src/posthog-featureflags.js +5 -2
  36. package/lib/src/posthog-featureflags.js.map +1 -1
  37. package/lib/src/posthog-surveys.d.ts +0 -2
  38. package/lib/src/posthog-surveys.js +8 -16
  39. package/lib/src/posthog-surveys.js.map +1 -1
  40. package/lib/src/types.d.ts +8 -0
  41. package/lib/src/types.js.map +1 -1
  42. package/package.json +3 -3
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm package](https://img.shields.io/npm/v/posthog-js?style=flat-square)](https://www.npmjs.com/package/posthog-js)
4
4
  [![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)
5
5
 
6
- For information on using this library in your app, [see PostHog Docs](https://posthog.com/docs/libraries/js).
6
+ For information on using this library in your app, [see PostHog Docs](https://posthog.com/docs/libraries/js).
7
7
  This README is intended for developing the library itself.
8
8
 
9
9
  ## Dependencies
@@ -93,36 +93,3 @@ Then, once this link has been created, any time you need to make a change to `po
93
93
  - In the `posthog-js` directory: `pnpm link --global`
94
94
  - (for `posthog` this means: `pnpm link --global posthog-js && pnpm i && pnpm copy-scripts`)
95
95
  - You can then remove the link by, e.g., running `pnpm link --global posthog-js` from within `posthog`
96
-
97
- ## Releasing a new version
98
-
99
- 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.
100
-
101
- If you forget to add the label, don't try to update the version locally as you won't be able to push that commit to the main branch. Instead, just make a new PR.
102
-
103
- ### Prereleases
104
-
105
- To release an alpha or beta version, you'll need to use the CLI locally:
106
-
107
- #### CLI
108
-
109
- Only one person is set as a collaborator on NPM, so they're the only person that can manually publish alphas
110
-
111
- 1. Make sure you're a collaborator on `posthog-js` in npm ([check here](https://www.npmjs.com/package/posthog-js)).
112
- 2. Make sure you're logged into the npm CLI (`npm login`).
113
- 3. Check out your work-in-progress branch (do not release an alpha/beta from `main`).
114
- 4. Run the following commands, using the same bump level (major/minor/patch) as your PR:
115
-
116
- ```bash
117
- npm version [premajor | preminor | prepatch] --preid=beta
118
- npm publish --tag beta
119
- git push --tags
120
- ```
121
-
122
- 5. Enjoy the new prerelease version. You can now use it locally, in a dummy app, or in the [main repo](https://github.com/posthog/PostHog).
123
-
124
- #### Automagically
125
-
126
- Use the "release alpha" label on your PR to have an alpha version published automatically. This automation currently doesn't check whether an alpha exists for the version it will try to publish. If you need to publish two alphas from one PR you'll need to fix that
127
-
128
- Remember that these versions are public and folk might use them, so make sure they're not _too_ alpha 🙈