@stoplight/ordered-object-literal is an npm package that wraps an object to maintain a predictable, ordered object literal. It is useful when you need stable key ordering (for example, to work well with Stoplight Prism), with an option to use maps instead when possible.
Project status
- Maintenance status: The source appears quiet/dormant. The most recent tagged update shown is v1.0.5 on 2023-11-28, and the last upstream push is 2024-06-16, with no further update activity evidenced since then (as of 2026-08-12).
- Update cadence: Updates were more active in earlier years (2020 to 2023), but there is a large gap of roughly 1.5 years with no new tagged updates following v1.0.5, suggesting maintenance has slowed significantly.
AI summary generated
Recent updates
v1.0.5
v1.0.5 primarily changes how the proxy determines whether a property key already exists on the target object. The release notes only mention a switch from the `in` operator to `Object.prototype.hasOwnProperty` for that internal check.
v1.0.4
Release v1.0.4 makes packaging-related adjustments and updates some transitive dependencies. The documented change is a fix for an invalid license id in package.json, but the diff also shows changes to what files are published and multiple npm lockfile entries.
v1.0.3
Release v1.0.3 is presented as a TypeScript compatibility bug fix for nodenext moduleResolution. The actual code diff shows no library logic changes, only a package.json exports adjustment and several dependency version bumps in package-lock.json.
v1.0.2
Release v1.0.2 primarily documents adding a missing `module` field to `package.json`. The code diff also shows dependency and lockfile changes that are not described in the release notes.
Featuresv1.0.1
Release v1.0.1 adds a fix intended to make Ordered object literal instances resilient to Object.freeze, Object.seal, and Object.preventExtensions. The code change is small and localized, and the test suite was extended to cover these scenarios.
v1.0.0
v1.0.0 focuses on fixing edge cases and correctness issues related to ordered object literal behavior. Notably, it improves delete and set trap handling, array support, and TypeScript typings.