n8n/packages/nodes-base
Iván Ovejero 6d6e2488c6
refactor(core): Generalize binary data manager interface (no-changelog) (#7164)
Depends on: #7092 | Story:
[PAY-768](https://linear.app/n8n/issue/PAY-768)

This PR: 
- Generalizes the `IBinaryDataManager` interface.
- Adjusts `Filesystem.ts` to satisfy the interface.
- Sets up an S3 client stub to be filled in in the next PR.
- Turns `BinaryDataManager` into an injectable service.
- Adjusts the config schema and adds new validators.

Note that the PR looks large but all the main changes are in
`packages/core/src/binaryData`.

Out of scope:
- `BinaryDataManager` (now `BinaryDataService`) and `Filesystem.ts` (now
`fs.client.ts`) were slightly refactored for maintainability, but fully
overhauling them is **not** the focus of this PR, which is meant to
clear the way for the S3 implementation. Future improvements for these
two should include setting up a backwards-compatible dir structure that
makes it easier to locate binary data files to delete, removing
duplication, simplifying cloning methods, using integers for binary data
size instead of `prettyBytes()`, writing tests for existing binary data
logic, etc.

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-09-22 17:22:12 +02:00
..
credentials feat(Linear Node): Add support for OAuth2 (#7201) 2023-09-20 10:19:12 +01:00
nodes refactor(core): Generalize binary data manager interface (no-changelog) (#7164) 2023-09-22 17:22:12 +02:00
scripts
test refactor(core): Generalize binary data manager interface (no-changelog) (#7164) 2023-09-22 17:22:12 +02:00
utils refactor(Spreadsheet File Node): Reduce memory usage when loading CSV files (#7095) 2023-09-06 11:58:00 +02:00
.eslintrc.js
gulpfile.js
index.js
jest.config.js
LICENSE.md
LICENSE_EE.md docs(license): Introduce n8n Enterprise License (#3945) 2022-08-29 22:08:42 +02:00
package.json refactor(core): Generalize binary data manager interface (no-changelog) (#7164) 2023-09-22 17:22:12 +02:00
README.md
tsconfig.build.json
tsconfig.json

n8n.io - Workflow Automation

n8n-nodes-base

The nodes which are included by default in n8n

npm install n8n-nodes-base -g

License

n8n is fair-code distributed under the Sustainable Use License.

Proprietary licenses are available for enterprise customers. Get in touch

Additional information about the license can be found in the docs.