Skip to content

RFC#999 - {{hash}} as keyword#21334

Merged
NullVoxPopuli merged 4 commits intoemberjs:mainfrom
NullVoxPopuli-ai-agent:nvp/hash-as-keyword
Apr 22, 2026
Merged

RFC#999 - {{hash}} as keyword#21334
NullVoxPopuli merged 4 commits intoemberjs:mainfrom
NullVoxPopuli-ai-agent:nvp/hash-as-keyword

Conversation

@NullVoxPopuli
Copy link
Copy Markdown
Contributor

Add hash to the built-in keywords map so it no longer needs to be imported in strict-mode (gjs/gts) templates.

Implements RFC 999: https://rfcs.emberjs.com/id/0999-make-hash-built-in

Add hash to the built-in keywords map so it no longer needs to be
imported in strict-mode (gjs/gts) templates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're looking at this during the spec meeting and I have a few points:

  • I'm not exactly sure that the @glimmer-workspace tests adequately test what happens when you do import the helper in an app. Maybe we should add a test to the smoke test scenario?
  • we should probably check (again in a smoke-test) that we can override hash with something else (I don't know what we should replace it with 😂)

@NullVoxPopuli
Copy link
Copy Markdown
Contributor Author

Tests updated!

@NullVoxPopuli NullVoxPopuli requested a review from mansona April 21, 2026 21:16
Copy link
Copy Markdown
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

Copy link
Copy Markdown
Member

@wagenet wagenet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on @mansona's behalf

@NullVoxPopuli NullVoxPopuli merged commit 64946ff into emberjs:main Apr 22, 2026
38 checks passed
@NullVoxPopuli NullVoxPopuli deleted the nvp/hash-as-keyword branch April 22, 2026 14:04
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.

3 participants