Files
insights-js/packages/react/CHANGELOG.md

12 KiB

@hanzo/react

1.10.0

Minor Changes

  • #3718 3aff16e Thanks @turnipdabeets! - Add an optional defaultValue argument to useFeatureFlagEnabled. When supplied, the hook returns that value instead of undefined while flags are loading or when the flag is absent, and the return type narrows to boolean. Omitting the argument keeps the existing boolean | undefined behavior. (2026-06-02)

1.9.1

Patch Changes

1.9.0

Minor Changes

Patch Changes

1.8.3

Patch Changes

1.8.2

Patch Changes

  • #3182 2304af0 Thanks @marandaneto! - refactor: use getFeatureFlagResult instead of deprecated getFeatureFlagPayload internally (2026-03-02)

1.8.1

Patch Changes

1.8.0

Minor Changes

Patch Changes

1.7.1

Patch Changes

1.7.0

Minor Changes

  • #2882 8a5a3d5 Thanks @adboio! - add support for question prefill in popover surveys, add useThumbSurvey hook (2026-01-20)

Patch Changes

1.6.0

Minor Changes

  • #2900 23770e9 Thanks @dmarticus! - Renamed evaluationEnvironments to evaluationContexts for clearer semantics. The term "contexts" better reflects that this feature is for specifying evaluation contexts (e.g., "web", "mobile", "checkout") rather than deployment environments (e.g., "staging", "production").

    Deprecated

    • insights.init option evaluationEnvironments is now deprecated in favor of evaluationContexts. The old property will continue to work and will log a deprecation warning. It will be removed in a future major version.

    Migration Guide

    // Before
    insights.init('<hi_project_api_key>', {
        evaluationEnvironments: ['production', 'web', 'checkout'],
    })
    
    // After
    insights.init('<hi_project_api_key>', {
        evaluationContexts: ['production', 'web', 'checkout'],
    })
    ``` (2026-01-19)
    

Patch Changes

1.5.2

Patch Changes

1.5.1

Patch Changes

1.5.0

Minor Changes

Patch Changes

1.4.1

Patch Changes

1.4.0

Minor Changes

Patch Changes

1.3.0

Minor Changes

  • #2517 46e3ca6 Thanks @pauldambra! - feat: add a component that will wrap your components and capture an event when they are in view in the browser

Patch Changes

1.2.3

Patch Changes

1.2.2

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

1.1.0

Minor Changes

Patch Changes