Skip to content

[TRACKING] breaking changes with API changes to consider with v2 #872

@Kavindu-Dodan

Description

@Kavindu-Dodan

This is a tracking issue with breaking changes such as @Deprecated annotated methods.

The resulting PR should be marked with breaking changes so that we can upgrade to the next major version (2.x)

List of tasks,

  • public OpenFeatureClient : remove public access and make interna
  • consider using Number for numeric evaluations
  • rethink lombok and object creation
  • Add a method to the Hook interface, through which the user can add hook data that can be accessed in a type safe manner during the flag evaluation:
class MyHook implements Hook<T,D>{
   D getHookData(){
      return myHookData;
   }

   void void after(HookContext<T> ctx, FlagEvaluationDetails<T> details, Map<String, Object> hints) {}
      D data = ctx.getHookData(); // data == myHookData
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions