Skip to content

Latest commit

 

History

History
82 lines (45 loc) · 3.36 KB

CHANGELOG.md

File metadata and controls

82 lines (45 loc) · 3.36 KB

2.5.1 - 2024-12-19

  1. Adds a new, optional distinct_id parameter to group identify calls which allows specifying the Distinct ID for the event.

2.5.0 - 2024-03-15

  1. Adds a new feature_flag_request_timeout_seconds timeout parameter for feature flags which defaults to 3 seconds, updated from the default 10s for all other API calls.

2.4.3 - 2024-02-29

  1. Fix memory leak in PostHog::Client.new

2.4.2 - 2024-01-26

  1. Remove new relative date operators, combine into regular date operators

2.4.1 - 2024-01-09

  1. Add default properties for feature flags local evaluation, to target flags by distinct id & group keys.

2.4.0 - 2024-01-09

  1. Numeric property handling for feature flags now does the expected: When passed in a number, we do a numeric comparison. When passed in a string, we do a string comparison. Previously, we always did a string comparison.
  2. Add support for relative date operators for local evaluation.

2.3.1 - 2023-08-14

  1. Update option doc string to show personal API Key as an option

2.3.0 - 2023-02-15

  1. Add support for feature flag payloads

2.2.0 - 2023-02-08

  1. Remove concurrent gem dependency version limitation

2.1.0 - 2022-11-14

  1. Add support for datetime operators for local feature flag evaluation
  2. Add support for variant overrides for local feature flag evaluation

2.0.0 - 2022-08-12

Breaking changes:

  1. Minimum PostHog version requirement: 1.38
  2. Regular feature flag evaluation (i.e. by requesting from your PostHog servers) doesn't require a personal API key.
  3. Client initialisation doesn't take the api_host parameter anymore. Instead, it takes the host parameter, which needs to be fully qualified. For example: https://api.posthog.com is valid, while api.posthog.com is not valid.
  4. The log level by default is set to WARN. You can change it to DEBUG if you want to debug the client by running client.logger.level = Logger::DEBUG, where client is your initialized PostHog::Client instance.
  5. Default polling interval for feature flags is now set at 30 seconds. If you don't want local evaluation, don't set a personal API key in the library.
  6. Feature flag defaults are no more. Now, if a flag fails to compute for whatever reason, it will return nil. Otherwise, it returns either true or false. In case of get_feature_flag, it may also return a string variant value.

New Changes:

  1. You can now evaluate feature flags locally (i.e. without sending a request to your PostHog servers) by setting a personal API key, and passing in groups and person properties to is_feature_enabled and get_feature_flag calls.
  2. Introduces a get_all_flags method that returns all feature flags. This is useful for when you want to seed your frontend with some initial flags, given a user ID.

1.3.0 - 2022-06-24

  • Add support for running the client in "No-op" mode for testing (#15)

1.2.4 - 2022-05-30

  • Fix create_alias call (#14)

1.2.3 - 2022-01-18

  • Fix present? call (#12)

1.2.2 - 2021-11-22

  • Add ability to disable SSL verification by passing skip_ssl_verification (#11)

1.2.1 - 2021-11-19

  • Add concurrent-ruby gem dependency (fixes #8)

1.1.0 - 2020-12-15

  • Change default domain from t.posthog.com to app.posthog.com