posthog-js
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -0,3 +1,6 @@ | ||
## 1.5.2 - 2020-10-22 | ||
- Autocapture bugfix: Ignore extra spaces in classnames #99 | ||
- Improve typing of posthog-js (#103) | ||
## 1.5.1 - 2020-10-22 | ||
- Autocapture bugfix: Ignore extra spaces in classnames #99 | ||
- Improve typing of posthog.js #97 (thanks @stonesthatwhisper) | ||
@@ -4,0 +7,0 @@ - Improve session recording, generate $session_id fields #91 #96 |
@@ -26,3 +26,3 @@ // Type definitions for exported methods | ||
*/ | ||
static reset(reset_device_id: boolean): void | ||
static reset(reset_device_id?: boolean): void | ||
@@ -398,3 +398,3 @@ /** | ||
*/ | ||
static opt_out_capturing(options: posthog.OptInOutCapturingOptions): void | ||
static opt_out_capturing(options?: posthog.OptInOutCapturingOptions): void | ||
@@ -430,3 +430,3 @@ /** | ||
*/ | ||
static opt_in_capturing(options: posthog.OptInOutCapturingOptions): void | ||
static opt_in_capturing(options?: posthog.OptInOutCapturingOptions): void | ||
@@ -438,3 +438,3 @@ /** | ||
* | ||
* var has_opted_out = posthog.has_opted_out_capturing(); | ||
* const has_opted_out = posthog.has_opted_out_capturing(); | ||
* // use has_opted_out value | ||
@@ -447,3 +447,3 @@ * | ||
*/ | ||
static has_opted_out_capturing(options: posthog.HasOptedInOutCapturingOptions): boolean | ||
static has_opted_out_capturing(options?: posthog.HasOptedInOutCapturingOptions): boolean | ||
@@ -455,3 +455,3 @@ /** | ||
* | ||
* var has_opted_in = posthog.has_opted_in_capturing(); | ||
* const has_opted_in = posthog.has_opted_in_capturing(); | ||
* // use has_opted_in value | ||
@@ -464,3 +464,3 @@ * | ||
*/ | ||
static has_opted_in_capturing(options: posthog.HasOptedInOutCapturingOptions): boolean | ||
static has_opted_in_capturing(options?: posthog.HasOptedInOutCapturingOptions): boolean | ||
@@ -490,3 +490,3 @@ /** | ||
*/ | ||
static clear_opt_in_out_capturing(options: posthog.ClearOptInOutCapturingOptions): void | ||
static clear_opt_in_out_capturing(options?: posthog.ClearOptInOutCapturingOptions): void | ||
@@ -721,2 +721,4 @@ /* | ||
export type PostHog = typeof posthog | ||
export default posthog |
{ | ||
"name": "posthog-js", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/PostHog/posthog-js", |
@@ -6,1 +6,22 @@ # PostHog.js | ||
Specifically, the [JS integration](https://posthog.com/docs/integrations/js-integration) details. | ||
## Testing | ||
Run `yarn test` | ||
## Releasing a new version | ||
To release a new version, make sure you're logged in to NPM (`npm login`) | ||
We tend to follow the following steps: | ||
1. Merge your changes into master | ||
2. Release changes as a beta version | ||
- `npm version 1.x.x-beta.0` | ||
- `npm publish --tag beta` | ||
3. Create a PR linking to this version [in the main repo](https://github.com/posthog/posthog) | ||
4. Once deployed and tested, write up CHANGELOG.md, and commit. | ||
5. Release a new version | ||
- `npm version 1.x.x` | ||
- `npm publish` | ||
6. Create a PR linking to this version [in the main repo](https://github.com/posthog/posthog) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
696054
6153
27