Skip to content

fix(purity): report Date constructor arguments, closes #1759 - #1939

Draft
kkkhs wants to merge 1 commit into
Rel1cx:mainfrom
kkkhs:agent/fix-purity-new-date-arg
Draft

fix(purity): report Date constructor arguments, closes #1759#1939
kkkhs wants to merge 1 commit into
Rel1cx:mainfrom
kkkhs:agent/fix-purity-new-date-arg

Conversation

@kkkhs

@kkkhs kkkhs commented Aug 16, 2026

Copy link
Copy Markdown

Treats new Date(...) calls with arguments the same as new Date() during render, matching the React Compiler alignment issue.

Update "[ ]" to "[x]" to check a box

What kind of change does this PR introduce?

Check at least one. If you are introducing a new binding, you must reference an issue where this binding has been proposed, discussed and approved by the maintainers.

  • Bugfix
  • Feature
  • Perf
  • Docs
  • Test
  • Chore
  • Enhancement
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

If yes, please describe the impact and migration path for existing applications in an attached issue.

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

Adds purity rule cases for string, timestamp, multi-argument, hook, and inline comparison new Date(...) forms. Also updates the rule changelog and IMPL/SPEC diff note.

@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

@kkkhs is attempting to deploy a commit to the Rel1cx's projects Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant