This is a JavaScript utility that implements the ECMAScript “ToPrimitive” abstract operation, providing versions for ES5 and ES2015. It’s useful when you need consistent spec-aligned primitive conversion behavior in code, with the default export selecting the latest version and `es5`/`es2015` exports for a specific version.
Project status
- The source appears actively maintained, with recent upstream pushes and multiple recent
updatesin June 2026 (last upstream push on 2026-06-26, versions 1.3.1 through 1.3.4 following within about 10 days). - Apparent update cadence is relatively frequent right now (several
updatesacross 2026-06-16 to 2026-06-26), though older history shows long gaps (for example, the previous change before 1.3.x is in 2024).
AI summary generated
Recent updates
v1.3.4
No release notes were provided for v1.3.4 in the supplied release_notes section. The code diff shows changes focused on CommonJS export shape and TypeScript typings, including adding a dependency on es-define-property and updating how ES5/ES6/ES2015 are exposed on the exported function.
v1.3.3
Release v1.3.3 contains only TypeScript definition changes (index.d.ts and es2015.d.ts) plus a package version bump. There are no documented release notes provided by the publisher.
v1.3.2
No release notes were provided for v1.3.2. The code diff shows this release is primarily a TypeScript type definition update (es2015.d.ts) plus minor devDependency and version bumps.
Featuresv1.3.1
No release notes were provided for v1.3.1 by the publisher. The actual changes in this diff focus on TypeScript declaration improvements, internal runtime refactors (notably using shared helpers), and dependency bumps.
v1.3.0
Release v1.3.0 has no publisher release notes content (none provided). The diff shows the primary change is adding TypeScript declaration files for the library, along with various CI and tooling configuration updates.
Featuresv1.2.1
Release v1.2.1 mostly updates development tooling and test coverage. The provided diff shows changes to linting configuration, CI configuration, security auditing commands, and devDependencies, plus added symbol-related tests.
SecurityFeaturesv1.2.0
Release v1.2.0 was published on 2018-09-27, but no release notes were provided. As a result, the upgrade impact (new features, breaking changes, bug fixes, security updates, or dependency changes) cannot be determined from the provided information.
v1.1.1
Version v1.1.1 was released, but no publisher release notes were provided in the release metadata. The code diff shows functional changes to the ES5 and ES6 implementations of the ECMAScript ToPrimitive algorithm, plus supporting test and lint configuration updates.
v1.0.1
v1.0.1 updates the library version and includes a change to the ES5 ToPrimitive coercion behavior. The repository provided no release notes, but the changelog and code diff indicate a functional behavior adjustment plus dependency and test expectation updates.
v1.1.0
Version v1.1.0 was released, but the publisher-provided release notes are missing (“none provided by the publisher”). From the code diff, this release primarily updates the ES6 ToPrimitive algorithm to add Symbol.toPrimitive support, along with a set of tooling, test, and dependency changes.
v1.0.0
This release is tagged v1.0.0, but no release notes were provided by the publisher. As a result, there is no documented information about new features, fixes, breaking changes, or migration steps.