Skip to content

Dates around Patch are incorrect #76

@lynchbomb

Description

@lynchbomb

Eg. a given app has a dep on @typescript-eslint/eslint-plugin. The latest published release is version: 5.43.0 • Public • Published 2 days ago. The app in question is consuming: 5.42.0 • Public • Published 16 days ago. When running supported the following date is provided for end of support:

@typescript-eslint/eslint-plugin     5.42.0     5.42.1   patch     Thu Jun 30 2022

Today's current date is Wed Nov 16 2022 and the package was published 16 days ago. I would expect the end of support date to be 3 months from latest.

I've not debugged this im guessing the patch logic for time could be wrong:

patch.setMonth(release.getMonth() + upgradeBudget.patch * MONTHS_IN_QTR + padding);
or the root _release is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions