Skip to content

v1.0.9

Choose a tag to compare

@FastPix-dev FastPix-dev released this 04 Aug 09:29
· 11 commits to main since this release

Version - [1.0.9]

Fixed

  • SSR crash: importing the SDK in Node/server environments (e.g. Next.js server rendering) threw ReferenceError: window is not defined due to an unsafe window !== undefined guard; now uses typeof window !== "undefined".

Added

  • Bundled TypeScript declarations (dist/index.d.ts): typed fastpixMetrix API, exported EventMetaData tracker-config type, and global typing for the fp monitoring handle attached to media elements.
  • player_fastpix_sdk_name and player_fastpix_sdk_version declared in the metadata types.

Changed

  • player_init_time now accepts number | string, matching attribute-driven players that read it via getAttribute. No runtime change - the SDK's arithmetic already coerced numeric strings.
  • Build migrated from esbuild CLI scripts to tsup (identical output filenames); tsc --noEmit type-check now runs as part of the build.
  • Removed unused @types/node dev dependency.