Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to parse scope function (allow strict mode templates to be more resilient to module cycles). #360

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

pzuraq
Copy link

@pzuraq pzuraq commented Mar 22, 2021

Adds the ability to parse scope functions as well as object expressions,
and deprecates parsing object expressions.

index.js Outdated
Comment on lines 44 to 46
console.warn(
'Passing an object as the `scope` property to inline templates has been deprecated. Please pass an arrow function that returns an object expression instead.'
);
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, when do we expect this to happen? Is it "basically never"?

Copy link
Author

Choose a reason for hiding this comment

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

Using it? Practically speaking, yes, this API hasn't been out long and there aren't many users

index.js Show resolved Hide resolved
__tests__/tests.js Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@pzuraq pzuraq force-pushed the add-scope-function-parsing branch from ffb800c to c800c57 Compare March 22, 2021 16:12
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Thank you!

Adds the ability to parse scope functions as well as object expressions,
and deprecates parsing object expressions.
@pzuraq pzuraq force-pushed the add-scope-function-parsing branch from c800c57 to 20fe896 Compare March 22, 2021 16:23
@pzuraq pzuraq merged commit 0710649 into master Mar 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the add-scope-function-parsing branch March 22, 2021 16:26
@rwjblue rwjblue changed the title Add ability to parse scope function Add ability to parse scope function (allow strict mode templates to be more resilient to module cycles). Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants