-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
fix(core): Opt-out from optimizations if $item
is used
#12036
fix(core): Opt-out from optimizations if $item
is used
#12036
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏🏻
@@ -17,7 +17,7 @@ describe('BuiltInsParser', () => { | |||
const parseAndExpectOk = (code: string) => { | |||
const result = parser.parseUsedBuiltIns(code); | |||
if (!result.ok) { | |||
fail(result.error); | |||
throw result.error; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now parseAndExpectOk
should be parseAndThrowOnError
or parseOrThrow
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it because fail
was not defined in jest runtime. The semantics are the same, it expects that that parsing succeeds. Now it just throws directly instead of using a function to throw
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
Got released with |
Summary
$item
is legacy syntax in the Code Node and should not be used. We still need to support it. Opt-out from any optimizations in this case so we have correct data available.Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/CAT-396/referenced-node-is-unexecuted-[item-0]-error
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)