Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Read version from package.json
id: version
run: echo version=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,29 @@ jobs:
max-parallel: 3
fail-fast: false
matrix:
node-version: [18, 19, 20, 21, 22, 23]
node-version: [18, 19, 20, 21, 22, 23, 24]

steps:
- if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}

- if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: 'Install pnpm'
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371
with:
version: 11
# Version is read from the "packageManager" field in package.json;
# do not also set a "version" input or action-setup errors on the conflict.
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9

- name: 'Install dependencies (pnpm 11 requires Node 22+)'
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
name: node-sdk-artifact
path: ./dist
Expand All @@ -66,7 +66,7 @@ jobs:
CI: true

- name: 'Switch to target Node version for smoke test'
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
11 changes: 5 additions & 6 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash
. "$(dirname "$0")/_/husky.sh"

containsref() { if [[ $2 =~ $1 ]]; then echo 1; else echo 0; fi }

# POSIX sh: husky v9 runs hooks with `sh -e`, so avoid bash-only `[[ =~ ]]`.
push_command=$(ps -ocommand= -p $PPID | cut -d' ' -f 4)
protected_branch='main'
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
is_push_to_main_origin=$(containsref 'git@github.com:/?fingerprintjs/' "$push_command")
case "$push_command" in
*git@github.com:fingerprintjs/*|*git@github.com:/fingerprintjs/*) is_push_to_main_origin=1 ;;
*) is_push_to_main_origin=0 ;;
esac

# Block pushes only to protected branch in main repository
if [ $is_push_to_main_origin = 1 ] && [ "$protected_branch" = "$current_branch" ]; then
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"license": "MIT",
"dependencies": {
"@fingerprint/node-sdk": "workspace:*",
"dotenv": "^16.4.5"
"dotenv": "^17.4.2"
}
}
43 changes: 21 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"engines": {
"node": ">=18.17.0"
},
"packageManager": "pnpm@11.9.0",
"packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b",
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"build": "rimraf dist && rollup -c rollup.config.js --bundleConfigAsCjs",
"lint": "eslint --max-warnings 0 .",
"lint:fix": "pnpm lint --fix",
Expand All @@ -38,8 +38,8 @@
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:coverage:diff": "vitest run --coverage --reporter json --outputFile.json=report.json",
"test:dts": "tsc --noEmit --isolatedModules dist/index.d.ts && pnpm typecheck:examples && pnpm typecheck:tests && pnpm typecheck:tooling",
"generateTypes": "tsx generate.mts && pnpm lint:fix",
"test:dts": "tsc --noEmit --isolatedModules --ignoreConfig --types node dist/index.d.ts && pnpm typecheck:examples && pnpm typecheck:tests && pnpm typecheck:tooling",
"generateTypes": "node generate.mts && pnpm lint:fix",
"docs": "typedoc src/index.ts --out docs"
Comment thread
JuroUhlar marked this conversation as resolved.
},
"keywords": [],
Expand All @@ -54,37 +54,36 @@
}
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@commitlint/cli": "^19.2.1",
"@changesets/cli": "^2.31.0",
"@commitlint/cli": "^21.2.1",
"@fingerprintjs/changesets-changelog-format": "^0.2.0",
"@fingerprintjs/commit-lint-dx-team": "^0.1.0",
"@fingerprintjs/conventional-changelog-dx-team": "^0.2.0",
"@fingerprintjs/eslint-config-dx-team": "^3.0.0",
"@fingerprintjs/prettier-config-dx-team": "^0.3.0",
"@fingerprintjs/tsconfig-dx-team": "^0.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.11.30",
"@vitest/coverage-v8": "^3.2.4",
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^18.19.130",
"@vitest/coverage-v8": "^4.1.10",
"buffer": "^6.0.3",
"commitizen": "^4.3.0",
"commitizen": "^4.3.2",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^10.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"husky": "^9.1.7",
"lint-staged": "^17.0.8",
"openapi-typescript": "^7.13.0",
"prettier": "^3.9.4",
"rimraf": "^5.0.5",
"rollup": "^4.34.9",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-license": "^3.3.1",
"rimraf": "^6.1.3",
"rollup": "^4.62.2",
"rollup-plugin-dts": "^6.4.1",
"rollup-plugin-license": "^3.7.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"tslib": "^2.6.2",
"tsx": "^4.22.4",
"typedoc": "^0.27.9",
"typescript": "^5.4.0",
"tslib": "^2.8.1",
"typedoc": "^0.28.20",
"typescript": "~6.0.3",
"typescript-eslint": "^8.0.0",
"vitest": "^3.2.4",
"yaml": "^2.6.0"
"vitest": "^4.1.10",
"yaml": "^2.9.0"
}
}
Loading
Loading