Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/before-capture
Browse files Browse the repository at this point in the history
pauldambra authored Nov 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 3eb6d97 + 17073a8 commit d190358
Showing 4 changed files with 145 additions and 93 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.186.4 - 2024-11-19

- chore: always transform exponentiation (#1537)
- chore: very small change to IE11 bundling (#1536)

## 1.186.3 - 2024-11-18

- fix: refactor native mutation observer implementation (#1535)
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthog-js",
"version": "1.186.3",
"version": "1.186.4",
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
"repository": "https://github.com/PostHog/posthog-js",
"author": "[email protected]",
@@ -46,6 +46,7 @@
"devDependencies": {
"@babel/core": "7.18.9",
"@babel/plugin-syntax-decorators": "^7.23.3",
"@babel/plugin-transform-exponentiation-operator": "^7.25.9",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.25.8",
"@babel/plugin-transform-react-jsx": "^7.23.4",
"@babel/preset-env": "7.18.9",
@@ -74,6 +75,7 @@
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"babel-jest": "^26.6.3",
"browserslist": "^4.24.2",
"compare-versions": "^6.1.0",
"cypress": "13.6.3",
"cypress-localstorage-commands": "^2.2.6",
219 changes: 131 additions & 88 deletions pnpm-lock.yaml
10 changes: 6 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -17,14 +17,16 @@ const plugins = (es5) => [
babel({
extensions: ['.js', '.jsx', '.ts', '.tsx'],
babelHelpers: 'bundled',
plugins: ['@babel/plugin-transform-nullish-coalescing-operator'],
plugins: [
'@babel/plugin-transform-nullish-coalescing-operator',
// Explicitly included so we transform 1 ** 2 to Math.pow(1, 2) for ES6 compatability
'@babel/plugin-transform-exponentiation-operator',
],
presets: [
[
'@babel/preset-env',
{
targets: es5
? '>0.5%, last 2 versions, Firefox ESR, not dead, IE 11'
: '>0.5%, last 2 versions, Firefox ESR, not dead',
targets: es5 ? 'defaults, IE 11' : '>0.5%, last 2 versions, Firefox ESR, not dead',
},
],
],

0 comments on commit d190358

Please sign in to comment.