-
Notifications
You must be signed in to change notification settings - Fork 134
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 chore/pd/browserslist
- Loading branch information
Showing
56 changed files
with
1,060 additions
and
449 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Library checks | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
unit: | ||
name: Check minimum TS version | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [ 16, 18, 20, 22, 23 ] | ||
typescript-version: ['4.7.2', '5.5.4', 'latest' ] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 8.x.x | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build project | ||
run: pnpm run build | ||
|
||
# once its built we can see if we can use it on the forced version | ||
- name: Override TypeScript version | ||
run: pnpm add typescript@${{ matrix.typescript-version }} --save-dev | ||
|
||
- name: Test TypeScript Import | ||
run: | | ||
rm test.ts || true | ||
echo "import { posthog } from './dist/module'; console.log(posthog);" > test.ts | ||
pnpm exec tsc test.ts --strict --target es2017 --module commonjs --moduleResolution node --noEmit --skipLibCheck |
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
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.201.0", | ||
"version": "1.203.1", | ||
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", | ||
"repository": "https://github.com/PostHog/posthog-js", | ||
"author": "[email protected]", | ||
|
@@ -56,9 +56,9 @@ | |
"@rollup/plugin-babel": "^6.0.4", | ||
"@rollup/plugin-commonjs": "^28.0.1", | ||
"@rollup/plugin-json": "^6.1.0", | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-node-resolve": "^16.0.0", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"@rollup/plugin-typescript": "^12.1.1", | ||
"@rollup/plugin-typescript": "^12.1.2", | ||
"@rrweb/record": "2.0.0-alpha.17", | ||
"@rrweb/rrweb-plugin-console-record": "2.0.0-alpha.17", | ||
"@rrweb/types": "2.0.0-alpha.17", | ||
|
@@ -87,7 +87,7 @@ | |
"eslint-plugin-jest": "^28.8.3", | ||
"eslint-plugin-no-only-tests": "^3.1.0", | ||
"eslint-plugin-posthog-js": "link:eslint-rules", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"eslint-plugin-react": "^7.30.1", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"expect": "^29.7.0", | ||
|
@@ -102,8 +102,8 @@ | |
"node-fetch": "^2.6.11", | ||
"posthog-js": "link:", | ||
"preact-render-to-string": "^6.3.1", | ||
"prettier": "^2.7.1", | ||
"rollup": "^4.24.0", | ||
"prettier": "^3.4.2", | ||
"rollup": "^4.28.1", | ||
"rollup-plugin-dts": "^6.1.1", | ||
"rollup-plugin-visualizer": "^5.12.0", | ||
"sinon": "9.0.2", | ||
|
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
Oops, something went wrong.