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 +5 -20
- package/index.ts +4 -0
- package/lib/index.cjs.js +1292 -0
- package/lib/index.cjs.js.map +1 -0
- package/lib/index.d.ts +118 -0
- package/lib/index.esm.js +1283 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/node_modules/tslib/tslib.es6.d.ts +35 -0
- package/lib/posthog-core/src/eventemitter.d.ts +8 -0
- package/lib/posthog-core/src/index.d.ts +84 -0
- package/lib/posthog-core/src/lz-string.d.ts +8 -0
- package/lib/posthog-core/src/types.d.ts +68 -0
- package/lib/posthog-core/src/utils.d.ts +13 -0
- package/lib/posthog-node/index.d.ts +3 -0
- package/lib/posthog-node/src/posthog-node.d.ts +20 -0
- package/lib/posthog-node/src/types.d.ts +83 -0
- package/package.json +35 -67
- package/src/posthog-node.ts +125 -0
- package/src/types.ts +99 -0
- package/test/posthog-node.spec.ts +106 -0
- package/tsconfig.json +6 -0
- package/LICENSE +0 -21
- package/cli.js +0 -72
- package/event-validation.js +0 -94
- package/feature-flags.js +0 -165
- package/index.d.ts +0 -84
- package/index.js +0 -331
package/README.md
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
# PostHog Node.js
|
|
1
|
+
# PostHog Node.js
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](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
|
|
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
|
-
|
|
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://
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ)
|
package/index.ts
ADDED