Codependency is often talked about and poorly defined or understood. One important thing to consider is whether your behavior is a lifelong pattern or it is situational. And example of situational would be you only had the issues in one relationship or during a specific time (e.g., taking care of an aging parent or at end of life).
Timmen Cermak, M.D., proposed that co-dependency be listed as a personality disorder in the Diagnostic and Statistical Manual of Mental Disorders (DSM-III-R; American Psychiatric Association, 1987). Cermak reasoned that when specific personality traits become excessive and maladaptive and cause significant impairment in functioning or cause significant distress, it warrants a personality disorder diagnosis.Cermak's definition was published in the Journal of Psychoactive Drugs in 1986. To this day, this is recognized as the most clinical interpretation of co-dependency.
Cermak proposed a life-long patern of the following criteria for this disorder.

Continued investment of self-esteem in the ability to control both oneself and others in the face of serious adverse consequences.

Assumption of responsibility for meeting others' needs to the exclusion of acknowledging one's own.

Anxiety and boundary distortions relative to intimacy and separation.

Enmeshment in relationships with personality disordered, chemically dependent, other co‐dependent, or impulse‐disordered individuals.

Three or more of the following:
. | ___ Excessive reliance on denial ___ Constriction of emotions (with or without dramatic outbursts) ___ Depression ___ Hypervigilance ___ Compulsions ___ Anxiety ___ Substance use disorder ___ Has been (or is) the victim of recurrent physical or sexual abuse ___ Stress-related medical illnesses ___ Has remained in a primary relationship with a person who continues to recreationally use drugs for at least two years without seeking outside help. |
Codependency has not been included in the Diagnostic and Statistical Manual of Mental Disorders; DSM-III-R or later versions.