A small helper that optimistically sets an object’s `Symbol.toStringTag` value (when possible), so `Object.prototype.toString.call(obj)` reflects the provided tag. It supports options like `force` (set even if already set) and `nonConfigurable` (define as non-configurable when possible), useful for improving type branding in JavaScript.
Project status
- Maintenance status: GitHub activity appears quiet/dormant, last upstream push was 2025-01-02, which is about 17 months ago relative to 2026-06-09.
- Update cadence: Sporadic updates, with notable tagged updates in 2024-02-20, then 2025-01-02, and earlier releases in 2023 and 2022.
AI summary generated
Recent updates
v2.1.0
The publisher did not provide any release notes for v2.1.0 (release notes were listed as none provided). Reviewing the code diff shows v2.1.0 adds a new option, nonConfigurable, and introduces stricter runtime validation for the options argument passed to setToStringTag.
BreakingFeaturesv2.0.3
v2.0.3 primarily adds TypeScript support by introducing a new index.d.ts file and wiring TypeScript into the repo lint process. The runtime JavaScript diff is effectively only a JSDoc typing hint, while dependencies are bumped in package.json.
Featuresv2.0.2
Release v2.0.2 was published on 2023-10-21, but no release notes or change details were provided by the publisher. As a result, there is insufficient information to determine new features, breaking changes, bug fixes, security updates, performance improvements, or migration steps.
v2.0.1
No release notes content was provided for v2.0.1, so the documented changes are effectively missing. The code diff shows a version bump plus dependency and packaging changes, notably moving `has` from devDependencies to runtime dependencies.
v2.0.0
Version 2.0.0 changes the behavior of setToStringTag so it will no longer overwrite Symbol.toStringTag when the object already has it set. It introduces a third-argument option to force overriding, and expands the test coverage accordingly.
BreakingFeaturesv1.0.0
This release is tagged v1.0.0, but the publisher did not provide any release notes. Without documented changes, there is no actionable information available to determine new features, fixes, breaking changes, or required migrations.