Commit Graph

93 Commits

Author SHA1 Message Date
Iván Ovejero
38f25d74eb feat(editor): Add Python to Code actions (#18668) 2025-08-26 14:29:50 +02:00
Iván Ovejero
fabbddefdc refactor(editor): Update Code node editor for native Python runner (#18538) 2025-08-19 13:40:02 +02:00
Iván Ovejero
47cb4a07ca refactor(core): Include native Python option in Code node (#18331) 2025-08-18 12:25:47 +02:00
Iván Ovejero
4cf9399432 refactor(core): Move ApplicationError to @n8n/errors (#17667) 2025-07-28 17:48:56 +02:00
Iván Ovejero
5cc3b31b81 refactor(core): Add env var to disable Python execution (#17414) 2025-07-17 15:10:52 +02:00
Iván Ovejero
bde9008660 fix(core): Block access to JS object constructor and js module in Pyodide (#16957) 2025-07-07 15:43:38 +02:00
Alex Grozav
d754ce922d feat: Upgrade nodes-base package to use modern tsconfig.json (no-changelog) (#16884) 2025-07-04 14:55:39 +03:00
Marty Sullivan
e54613f75f fix(Code Node): Only Block os.system vs Blocking import os (#16885) 2025-07-03 08:59:34 +02:00
Iván Ovejero
8aecd327c6 refactor(core): Improve top-level key validation in task runner (#16882) 2025-07-03 08:58:58 +02:00
Michael Kret
8f9ce72dc4 fix(Code Node): Error formatting fix (#16719) 2025-06-27 12:18:26 +03:00
कारतोफ्फेलस्क्रिप्ट™
1e92729492 fix(Code Node): Block selected module imports in python code (#15970) 2025-06-03 18:14:16 +02:00
Eugene
a0a4476175 chore: Rename Test workflow -> Execute workflow (#15112) 2025-05-13 09:35:41 +02:00
कारतोफ्फेलस्क्रिप्ट™
63cbf8681a fix(Code Node): Update pyodide sandbox context to fix micropip regressions (#15181) 2025-05-07 14:53:22 +02:00
कारतोफ्फेलस्क्रिप्ट™
979f9e6327 refactor: Overhaul nodes-testing setup - Part 3 (no-changelog) (#14967) 2025-04-29 17:42:21 +02:00
कारतोफ्फेलस्क्रिप्ट™
91069f057e refactor: Overhaul nodes-testing setup - Part 2 (no-changelog) (#14873) 2025-04-24 17:37:26 +02:00
कारतोफ्फेलस्क्रिप्ट™
6c9c720ae9 fix(Code Node): Upgrade pyodide, sandbox it, and prevent JS sandbox escape (#14356) 2025-04-23 14:41:48 +02:00
कारतोफ्फेलस्क्रिप्ट™
860bb1ef92 fix(Code Node): Use an explicit indexURL to load the pyodide runtime (#14487) 2025-04-09 10:20:14 +02:00
Alex Grozav
8215e0b59f refactor: Migrate NodeConnectionType to const object type (no-changelog) (#14078)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2025-03-21 14:01:26 +02:00
कारतोफ्फेलस्क्रिप्ट™
dbb9475b7b refactor(core): Remove NodeExecutionOutput. Add execution hints directly to the context (#13111) 2025-02-10 16:51:01 +01:00
Ricardo Espinoza
cdfa22593b fix(Code Node): Do not validate code within comments (#12938) 2025-01-30 09:44:35 -05:00
Iván Ovejero
1b9100032f fix(core): Allow index as top-level item key for Code node (#12469) 2025-01-06 15:03:36 +01:00
कारतोफ्फेलस्क्रिप्ट™
39d5e0ff87 refactor(core): Replace typedi with our custom DI system (no-changelog) (#12389)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2025-01-06 10:21:24 +01:00
कारतोफ्फेलस्क्रिप्ट™
bafac73eb5 refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314) 2024-12-19 18:46:14 +01:00
Iván Ovejero
aece4c497a chore(core): Stop reporting TypeError and AttributeError from Python sandbox to Sentry (#12078) 2024-12-09 09:17:26 +01:00
Michael Kret
3a5bd12945 feat(Code Node): Warning if pairedItem absent or could not be auto mapped (#11737)
Co-authored-by: Shireen Missi <shireen@n8n.io>
2024-11-27 16:31:36 +00:00
कारतोफ्फेलस्क्रिप्ट™
f6c0d045e9 fix(core): Don't use unbound context methods in code sandboxes (#11914) 2024-11-27 12:08:16 +01:00
Tomi Turtiainen
e22d0f3877 perf(core): Batch items sent in runonceforeachitem mode (no-changelog) (#11870)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-11-26 12:21:51 +02:00
Tomi Turtiainen
d25ae8e0d9 refactor: Rename disabled to enabled in runner config (#11621) 2024-11-07 14:22:43 +02:00
Tomi Turtiainen
4e3681b905 fix: Provide a better error message when task runner disconnects (no-changelog) (#11442) 2024-10-29 12:39:31 +02:00
कारतोफ्फेलस्क्रिप्ट™
8f5fe05a92 refactor(core): All calls to supplyData should use a distinct context type (no-changelog) (#11421) 2024-10-28 11:37:23 +01:00
Tomi Turtiainen
0708b3a1f8 fix: Include error in the message in JS task runner sandbox (#11359) 2024-10-23 12:13:09 +03:00
Iván Ovejero
8e5292cf6c chore: Upgrade nodelinter to 1.16.3 (#11286) 2024-10-18 09:22:24 +02:00
Tomi Turtiainen
d330b6b94a fix: Fix task runner error propagation (no-changelog) (#11291) 2024-10-17 14:17:33 +03:00
Tomi Turtiainen
1078fa662a fix: Make sure errors are transferred correctly from js task runner (no-changelog) (#11214) 2024-10-10 21:01:38 +03:00
Tomi Turtiainen
2bb1996738 feat: Add once for each item support for JS task runner (no-changelog) (#11109) 2024-10-07 21:18:32 +03:00
Val
27d83e0d91 feat: Initial Code Task Runners support (no-changelog) (#10698)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
2024-10-02 09:31:56 +01:00
Michael Kret
9fa1a9aa99 fix: Disable errors obfuscation (no-changelog) (#10617) 2024-08-30 10:59:30 +03:00
Ricardo Espinoza
c4eb3746d7 refactor: Use NodeConnectionType consistently across the code base (no-changelog) (#10595) 2024-08-29 09:55:53 -04:00
कारतोफ्फेलस्क्रिप्ट™
7e95f9e2e4 fix(core): VM2 sandbox should not throw on new Promise (#10298) 2024-08-06 15:16:33 +02:00
Michael Kret
e2dd000d13 fix: Prevent errors processed by n8n to be flagged as internal (no-changelog) (#10023) 2024-07-12 11:13:17 +03:00
Michael Kret
b7aea957b8 feat: Do not show errors not processed by n8n (no-changelog) (#9598)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2024-06-20 08:45:00 +03:00
कारतोफ्फेलस्क्रिप्ट™
2bdc459bb2 refactor(core): Fix type errors in workflow, core, nodes-langchain, and nodes-base (no-changelog) (#9450) 2024-05-22 17:40:52 +02:00
कारतोफ्फेलस्क्रिप्ट™
82c8801f25 fix(Code Node): Bind helper methods to the correct context (#9380) 2024-05-14 14:08:51 +02:00
कारतोफ्फेलस्क्रिप्ट™
372d5c7d01 ci: Upgrade eslint, prettier, typescript, and some other dev tooling (no-changelog) (#8895)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2024-03-26 14:22:57 +01:00
Giulio Andreini
5301323906 feat(editor): Improve errors in output panel (#8644)
Co-authored-by: Michael Kret <michael.k@radency.com>
2024-03-07 18:08:01 +02:00
Giulio Andreini
95e4c4fbb3 docs(editor): Nodes icons, Merge node descriptions (#8517)
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
Co-authored-by: Marcus <marcus@n8n.io>
2024-02-21 16:04:57 +00:00
Tomi Turtiainen
9a1cc56806 fix: Set '@typescript-eslint/return-await' rule to 'always' for node code (no-changelog) (#8363)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2024-01-17 17:08:50 +02:00
Elias Meire
071e6d6b6e feat(editor): Add fullscreen view to code editor (#8084)
## Summary

<img width="1240" alt="image"
src="https://github.com/n8n-io/n8n/assets/8850410/2819f4ce-c343-431a-8a88-a1bc9c4b572a">
<img width="2649" alt="image"
src="https://github.com/n8n-io/n8n/assets/8850410/36862aaf-cc4c-4668-bdc8-cf5a6f00babe">

1. Add code node and open it
3. Click the fullscreen button in the bottom right
4. A fullscreen dialog should appear and allow editing the code
5. Changes made in the fullscreen dialog should be applied to the
original code editor when closed

It should work the same way for HTML/SQL/JSON editors

⚠️ Modal layout was updated so that modals/dialogs are centered, try to
test some modals

## Related tickets and issues
https://linear.app/n8n/issue/NODE-1009/add-fullscreen-view-to-code-node



## Review / Merge checklist
- [ ] PR title and summary are descriptive. **Remember, the title
automatically goes into the changelog. Use `(no-changelog)` otherwise.**
([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md))
- [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up
ticket created.
- [ ] Tests included.
> A bug is not considered fixed, unless a test is added to prevent it
from happening again.
   > A feature is not complete without tests.

---------

Co-authored-by: Giulio Andreini <andreini@netseven.it>
2024-01-04 17:23:24 +01:00
Elias Meire
675ec21d33 feat: Data transformation nodes and actions in Nodes Panel (#7760)
- Split Items List node into separate nodes per action
- Review node descriptions
- New icons
- New sections in subcategories

---------

Co-authored-by: Giulio Andreini <andreini@netseven.it>
Co-authored-by: Deborah <deborah@starfallprojects.co.uk>
Co-authored-by: Michael Kret <michael.k@radency.com>
2023-12-08 11:40:05 +01:00
Iván Ovejero
e77fd5d286 refactor: Switch plain errors in nodes-base to ApplicationError (no-changelog) (#7914)
Ensure all errors in `nodes-base` are `ApplicationError` or children of
it and contain no variables in the message, to continue normalizing all
the backend errors we report to Sentry. Also, skip reporting to Sentry
errors from user input and from external APIs. In future we should
refine `ApplicationError` to more specific errors.

Follow-up to: [#7877](https://github.com/n8n-io/n8n/pull/7877)

- [x] Test workflows:
https://github.com/n8n-io/n8n/actions/runs/7084627970
- [x] e2e: https://github.com/n8n-io/n8n/actions/runs/7084936861

---------

Co-authored-by: Michael Kret <michael.k@radency.com>
2023-12-05 11:17:08 +01:00