posthog-node 1.1.7 → 2.0.0-alpha1

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 CHANGED
@@ -1,26 +1,11 @@
1
- # PostHog Node.js Library
1
+ # PostHog Node.js
2
2
 
3
- [![npm package](https://img.shields.io/npm/v/posthog-node?style=flat-square)](https://www.npmjs.com/package/posthog-node)
4
- [![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)
3
+ > 🚧 This is a WIP. Currently the only officially supported way of using PostHog on the web is [posthog-node](https://github.com/PostHog/posthog-node)
5
4
 
6
- Please see [PostHog Docs](https://posthog.com/docs).
7
- Specifically, [Node.js library details](https://posthog.com/docs/libraries/node).
5
+ Please see the main [PostHog docs](https://www.posthog.com/docs).
8
6
 
9
- ## Releasing a new version
10
-
11
- Just bump up `version` in `package.json` on the main branch and the new version will be published automatically.
12
-
13
- It's advised to use `bump patch/minor/major` label on PRs - that way the above will be done automatically
14
- when the PR is merged.
15
-
16
- Courtesy of GitHub Actions.
17
-
18
- ## Thanks
19
-
20
- This library is largely based on the `analytics-node` package.
7
+ Specifically, the [Node.js integration](https://posthog.com/docs/integrate/server/node) details.
21
8
 
22
9
  ## Questions?
23
10
 
24
- ### [Join our Slack community.](https://posthog.com/slack)
25
-
26
-
11
+ ### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ)
package/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { PostHogGlobal } from './src/posthog-node'
2
+ export * from './src/posthog-node'
3
+
4
+ export default PostHogGlobal