-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
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/safer-string-truncation
- Loading branch information
Showing
10 changed files
with
186 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,103 +1,13 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"debug": true, | ||
"corejs": "3.38", | ||
"useBuiltIns": "usage", | ||
"include": [ | ||
"es.array.from" | ||
], | ||
"exclude": [ | ||
"es.array.at", | ||
"es.array.concat", | ||
"es.array.find", | ||
"es.array.find-index", | ||
"es.array.fill", | ||
"es.array.filter", | ||
"es.array.flat-map", | ||
"es.array.includes", | ||
"es.array.iterator", | ||
"es.array.join", | ||
"es.array.map", | ||
"es.array.slice", | ||
"es.array.splice", | ||
"es.array.sort", | ||
"es.array.unscopables.flat-map", | ||
"es.array-buffer.constructor", | ||
"es.error.cause", | ||
"es.function.name", | ||
"es.global-this", | ||
"es.json.stringify", | ||
"es.math.trunc", | ||
"es.math.sign", | ||
"es.map", | ||
"es.number.constructor", | ||
"es.number.is-integer", | ||
"es.number.is-nan", | ||
"es.number.to-fixed", | ||
"es.object.assign", | ||
"es.object.entries", | ||
"es.object.get-own-property-descriptor", | ||
"es.object.get-own-property-names", | ||
"es.object.keys", | ||
"es.object.to-string", | ||
"es.object.values", | ||
"es.promise", | ||
"es.promise.finally", | ||
"es.reflect.get", | ||
"es.reflect.to-string-tag", | ||
"es.regexp.*", | ||
"es.set", | ||
"es.string.ends-with", | ||
"es.string.includes", | ||
"es.string.iterator", | ||
"es.string.link", | ||
"es.string.match", | ||
"es.string.match-all", | ||
"es.string.repeat", | ||
"es.string.replace", | ||
"es.string.search", | ||
"es.string.starts-with", | ||
"es.string.split", | ||
"es.string.sub", | ||
"es.string.trim", | ||
"es.symbol", | ||
"es.symbol.description", | ||
"es.typed-array.*", | ||
"es.weak-map", | ||
"es.weak-set", | ||
"esnext.global-this", | ||
"esnext.string.match-all", | ||
"esnext.typed-array.*", | ||
"web.atob", | ||
"web.dom-collections.for-each", | ||
"web.dom-collections.iterator", | ||
"web.dom-exception.constructor", | ||
"web.dom-exception.stack", | ||
"web.dom-exception.to-string-tag", | ||
"web.url", | ||
"web.url-search-params", | ||
"web.url.to-json" | ||
], | ||
"targets": ">0.5%, last 2 versions, Firefox ESR, not dead, IE 11" | ||
} | ||
], | ||
[ | ||
"@babel/typescript", | ||
{ | ||
"jsxPragma": "h" | ||
} | ||
"presets": ["@babel/env", ["@babel/typescript", { "jsxPragma": "h" }]], | ||
"plugins": [ | ||
"@babel/plugin-transform-nullish-coalescing-operator", | ||
[ | ||
"@babel/transform-react-jsx", | ||
{ | ||
"runtime": "automatic", | ||
"importSource": "preact" | ||
} | ||
] | ||
] | ||
], | ||
"plugins": [ | ||
[ | ||
"@babel/transform-react-jsx", | ||
{ | ||
"runtime": "automatic", | ||
"importSource": "preact" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Server-side rendering and ES5 | ||
name: ES5 support check | ||
|
||
on: | ||
- pull_request | ||
|
@@ -19,8 +19,5 @@ jobs: | |
|
||
- run: pnpm install && pnpm build | ||
|
||
- name: Run es-check to check if our bundle is ES5 compatible | ||
run: npx [email protected] es5 dist/{array,main}.js | ||
|
||
- name: Require module via node | ||
run: cd dist; node -e "require('./main')" | ||
- name: Run es-check to check if our ie11 bundle is ES5 compatible | ||
run: npx [email protected] es5 dist/array.full.es5.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "posthog-js", | ||
"version": "1.170.1", | ||
"version": "1.172.0", | ||
"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-nullish-coalescing-operator": "^7.25.8", | ||
"@babel/plugin-transform-react-jsx": "^7.23.4", | ||
"@babel/preset-env": "7.18.9", | ||
"@babel/preset-typescript": "^7.18.6", | ||
|
@@ -54,9 +55,9 @@ | |
"@rollup/plugin-babel": "^6.0.4", | ||
"@rollup/plugin-commonjs": "^28.0.1", | ||
"@rollup/plugin-json": "^6.1.0", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@rollup/plugin-typescript": "^12.1.1", | ||
"@rrweb/types": "2.0.0-alpha.13", | ||
"@sentry/types": "8.7.0", | ||
"@testing-library/dom": "^9.3.0", | ||
|
@@ -100,8 +101,7 @@ | |
"preact-render-to-string": "^6.3.1", | ||
"prettier": "^2.7.1", | ||
"rollup": "^4.24.0", | ||
"rollup-plugin-dts": "^6.1.0", | ||
"rollup-plugin-ts": "^3.4.5", | ||
"rollup-plugin-dts": "^6.1.1", | ||
"rollup-plugin-visualizer": "^5.12.0", | ||
"rrweb": "2.0.0-alpha.13", | ||
"rrweb-snapshot": "2.0.0-alpha.13", | ||
|
@@ -122,7 +122,7 @@ | |
] | ||
}, | ||
"browserslist": [ | ||
">0.5%, last 2 versions, Firefox ESR, not dead, IE 11" | ||
">0.5%, last 2 versions, Firefox ESR, not dead" | ||
], | ||
"pnpm": { | ||
"patchedDependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// a straight copy of the array.full.ts entrypoint, | ||
// but will have different config when passed through rollup | ||
// to allow es5/IE11 support | ||
|
||
// it doesn't include recorder which doesn't support IE11, | ||
// and it doesn't include web-vitals which doesn't support IE11 | ||
|
||
import './surveys' | ||
import './exception-autocapture' | ||
import './tracing-headers' | ||
import './array.no-external' |
Oops, something went wrong.