Back to Explore

inspect-js/is-string

GitHub
1 watchersOpen source

Last release: 12/16/2024

Checks whether a given value is a JavaScript string, either as a primitive or as a String object. It is designed to work across realms like iframes, which helps when validating values in different execution contexts.

Project status

  • The source appears to be actively maintained, with an upstream GitHub push recorded on 2025-12-30, and more recent tagged updates in late 2024 (v1.1.1 on 2024-12-16, v1.1.0 on 2024-12-02).
  • Update cadence looks intermittent rather than continuous, with a large gap from 2021 (v1.0.7) to late 2024, followed by two close updates in December 2024 (about two weeks apart).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.1.1

    12/16/2024

    This release is a small patch bump (v1.1.0 to v1.1.1) with internal dependency and implementation refactors. The only functional change visible in the diff is switching the internal implementation to require the `call-bound` package directly instead of using `call-bind/callBound`.

  • v1.1.0

    12/2/2024

    Version 1.1.0 introduces runtime hardening by switching `index.js` to use `call-bind` for bound intrinsic methods, and it adds a new `index.d.ts` TypeScript definition. The release notes section is empty, so the actual behavioral, API surface (types), and packaging changes below are not documented there.

    Features
  • v1.0.7

    8/6/2021

    Release v1.0.7 was published on 2021-08-06, but the publisher did not provide any release notes. As a result, there is no documented information here about new features, bug fixes, breaking changes, security updates, or migration steps.

  • v1.0.6

    5/8/2021

    v1.0.6 introduces primarily maintenance changes (CI migration to GitHub Actions, test runner updates, and packaging metadata). It also includes a small but potentially behavior-affecting runtime change in index.js related to how Symbol.toStringTag support is detected. No release notes were provided by the publisher for this version.

  • v1.0.5

    12/19/2019

    This release is v1.0.5, but the publisher provided no release notes. The code diff shows the runtime library implementation is effectively unchanged, while most changes are repository and developer workflow updates (linting, test layout, CI configuration, and security/audit tooling).

    Security
  • v1.0.4

    1/30/2015

    Release v1.0.4 updates the `is-string` implementation and bumps the package version. The main change is adding a runtime feature check for `Symbol.toStringTag` and altering the string-detection logic accordingly.

  • v1.0.3

    1/29/2015

    Release v1.0.3 makes a small internal refactor of the exported `is-string` function. The only documented change is a refactor intended to aid optimization of non-try/catch code, with no mention of API or behavioral changes.

  • v1.0.2

    1/29/2015

    Release v1.0.2 is a small packaging-focused update with no visible runtime code changes. The diff shows only CHANGELOG.md and package.json were modified.

  • v1.0.1

    1/29/2015

    This release (v1.0.1) makes a small runtime change to the module’s exported function, isString, by adding early returns based on typeof checks. It also bumps some dev dependency versions and adjusts an ESLint rule severity.

    Breaking
  • v1.0.0

    1/29/2015

    Release v1.0.0 was published on 2015-01-29, but the publisher did not provide any release notes. Because no change log details are included, there is not enough information to identify new features, fixes, security updates, or migration requirements from the provided data.