Skip to content

Conversation

@adity1raut
Copy link

@adity1raut adity1raut commented Nov 10, 2025

Description

What is the purpose of this pull request?

Package Overview

The package is modeled after existing symbol utilities in the repository, including:

  • symbol/has-instance
  • symbol/iterator
  • symbol/async-iterator
  • symbol/is-concat-spreadable

The new package exports Symbol.replace when available in the current environment.


Additional Implementation Details

  • Copy one of the existing symbol packages as a template.
  • Rename the package directory and files accordingly.
  • Replace identifiers throughout the package
    (e.g., has-instancereplace, HasInstanceSymbolReplaceSymbol).
  • Ensure the copyright year is 2025.
  • Update descriptions based on MDN documentation for Symbol.toStringTag.
  • Update examples to reflect the symbol’s intended usage.
  • Run tests, benchmarks, and examples to verify correctness.
  • Check for any copy-paste errors.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".

{{TODO: add disclosure if applicable}}


@stdlib-js/reviewers

Signed-off-by: adity1raut <[email protected]>
@stdlib-bot
Copy link
Contributor

Hello! Thank you for your contribution to stdlib.

We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:

  1. Please read our contributing guidelines.

  2. Update your pull request description to include this checked box:

    - [x] Read, understood, and followed the [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md)

This acknowledgment confirms that you've read the guidelines, which include:

  • The developer's certificate of origin
  • Your agreement to license your contributions under the project's terms

We can't review or accept contributions without this acknowledgment.

Thank you for your understanding and cooperation. We look forward to reviewing your contribution!

@stdlib-bot stdlib-bot added the First-time Contributor A pull request from a contributor who has never previously committed to the project repository. label Nov 10, 2025
@stdlib-bot
Copy link
Contributor

Coverage Report

Package Statements Branches Functions Lines
symbol/replace $\color{green}103/103$
$color{green}+100.00%$
$\color{red}2/3$
$color{green}+66.67%$
$\color{green}0/0$
$color{green}+100.00%$
$\color{green}103/103$
$color{green}+100.00%$

The above coverage report was generated for the changes in this PR.

@stdlib-bot stdlib-bot added the Good First PR A pull request resolving a Good First Issue. label Nov 10, 2025
@adity1raut adity1raut marked this pull request as ready for review November 10, 2025 12:58
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Nov 10, 2025
@adity1raut
Copy link
Author

PTAL /cc @kgryte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants