Skip to content

Commit

Permalink
Merge branch 'main' into chore/remove-ie11-main
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 19, 2024
2 parents 5a08ce4 + 7389aad commit e9fae7c
Show file tree
Hide file tree
Showing 11 changed files with 208 additions and 232 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 1.186.3 - 2024-11-18

- fix: refactor native mutation observer implementation (#1535)
- chore: update dependency versions (#1534)
- chore: remove custom exceptions endpoint (#1513)

## 1.186.2 - 2024-11-18

- fix: angular change detection mutation observer (#1531)
- chore: Added CSP headers to next app for testing what we document (#1528)

## 1.186.1 - 2024-11-15

- fix: XHR req method capture (#1527)
Expand Down
28 changes: 28 additions & 0 deletions eslint-rules/no-direct-mutation-observer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
meta: {
type: 'problem',
docs: {
description:
'Disallow direct use of MutationObserver and enforce importing NativeMutationObserver from global.ts',
category: 'Best Practices',
recommended: false,
},
schema: [],
messages: {
noDirectMutationObserver:
'Direct use of MutationObserver is not allowed. Use NativeMutationObserver from global.ts instead.',
},
},
create(context) {
return {
NewExpression(node) {
if (node.callee.type === 'Identifier' && node.callee.name === 'MutationObserver') {
context.report({
node,
messageId: 'noDirectMutationObserver',
})
}
},
}
},
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posthog-js",
"version": "1.186.1",
"version": "1.186.3",
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
"repository": "https://github.com/PostHog/posthog-js",
"author": "[email protected]",
Expand Down
Loading

0 comments on commit e9fae7c

Please sign in to comment.