fingerprintjs / fingerprintjs-pro-react

Fingerprint Pro Wrapper for React Single Page Applications (SPA)
MIT License
52 stars 8 forks source link

Extend `getData` options with `fingerprintjs-pro` `GetDataOptions`. #109

Closed ilfa closed 1 year ago

ilfa commented 1 year ago

Add functionality to resolve #108

github-actions[bot] commented 1 year ago

This PR will create a minor release :rocket:

2.4.0 (2023-06-07)

Features

Build System

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements
90.78% (+0.04% πŸ”Ό)
187/206
🟒 Branches
81.48% (+0.45% πŸ”Ό)
44/54
🟑 Functions 76% 38/50
🟒 Lines
90.71% (+0.05% πŸ”Ό)
166/183

Test suite run success

19 tests passing in 5 suites.

Report generated by πŸ§ͺjest coverage report action from ada1f6771563aebbc7fcc0637470f4671becaa67

Show full coverage report St|File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s --|-----------------------|---------|----------|---------|---------|--------------------- 🟒|All files | 90.77 | 81.48 | 76 | 90.71 | 🟒| src| 92.3 | 90.32 | 66.66 | 91.3 | πŸ”΄|  [agent-server-mock.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/agent-server-mock.ts)| 0 | 100 | 0 | 0 |[3-5](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/agent-server-mock.ts#L3-L5) 🟒|  [detect-env.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/detect-env.ts)| 92.3 | 86.66 | 100 | 91.3 |[15](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/detect-env.ts#L15),[85](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/detect-env.ts#L85) 🟒|  [env.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/env.ts)| 100 | 100 | 100 | 100 | 🟒|  [env.types.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/env.types.ts)| 100 | 100 | 100 | 100 | 🟑|  [fpjs-context.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/fpjs-context.ts)| 80 | 100 | 0 | 80 |[38](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/fpjs-context.ts#L38) 🟑|  [get-env.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/get-env.ts)| 75 | 0 | 100 | 75 |[9-10](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/get-env.ts#L9-L10) 🟒|  [index.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/index.ts)| 100 | 100 | 0 | 100 | 🟒|  [ssr.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/ssr.ts)| 100 | 100 | 100 | 100 | 🟒|  [use-visitor-data.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/use-visitor-data.ts)| 97.72 | 100 | 87.5 | 97.29 |[79](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/use-visitor-data.ts#L79) 🟒| src/components| 90.54 | 75 | 86.66 | 92.64 | 🟒|  [fpjs-provider.tsx](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/components/fpjs-provider.tsx)| 88.33 | 69.23 | 83.33 | 91.07 |[106](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/components/fpjs-provider.tsx#L106),[112-117](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/components/fpjs-provider.tsx#L112-L117),[136-138](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/components/fpjs-provider.tsx#L136-L138) 🟒|  [with-environment.tsx](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/components/with-environment.tsx)| 100 | 100 | 100 | 100 | 🟒| src/utils| 85.71 | 57.14 | 87.5 | 82.6 | 🟑|  [assert-is-truthy.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/utils/assert-is-truthy.ts)| 66.66 | 0 | 100 | 66.66 |[3](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/utils/assert-is-truthy.ts#L3) 🟑|  [to-error.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/utils/to-error.ts)| 75 | 100 | 100 | 75 |[6](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/utils/to-error.ts#L6) 🟒|  [use-previous.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/utils/use-previous.ts)| 100 | 100 | 100 | 100 | 🟒|  [wait-until.ts](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/utils/wait-until.ts)| 86.66 | 60 | 75 | 80 |[10-12](https://github.com/fingerprintjs/fingerprintjs-pro-react/blob/acd276c811adeb81d2370bb42e6d66537e49c527/src/utils/wait-until.ts#L10-L12)
ilfa commented 1 year ago

:tada: This PR is included in version 2.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: