Skip to content

Compatibility flags history is not being sorted by enable date. #19038

@nfowl

Description

@nfowl

Existing documentation URL(s)

What changes are you suggesting?

Currently the list is being sorted by the file order rather than by the enable/sort date. This makes it hard to work out when new flags are added and what changes need to be accounted for when updating a worker compat date.

The docs also state that they should be sorted in ascending order and they previously used to match this statement but unsure when that broke.

Additional information

Happy to raise a PR but if its easier for someone internal I found that adding

flags.sort((a,b) => new Date(a.data.sort_date) - new Date(b.data.sort_date)).reverse();

to CompatibilityFlags.astro fixed the issue.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions