Skip to content

Order of Map and Set entries reversed in v2 #71

@bjohn465

Description

@bjohn465

In the latest v2 version of turbo-stream (currently v2.4.1), encoding and decoding a Map or Set object results in a Map or Set with the order of entries reversed. Since Map and Set are specified to iterate over their entries in insertion order, the decoded object does not iterate in the same order that the original, encoded object does.

In the latest v3 version (currently v3.1.0), Map and Set objects decode with the entries in the correct order.

Since v3 changed the encoding format, some applications may not be able to upgrade to v3 very quickly. What is the possibility of a v2 release that would fix the Map and Set entry order problem? Does the answer change at all if someone creates and submits a pull request that fixes the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions