Skip to content

Conversation

@skjnldsv
Copy link
Contributor

This allow us to do the following:

new File(...JSON.parse(file.toString()))

This should allow us to drop any inter-dependencies and thus storing them in localstorage or forwarding them as events between tabs

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv self-assigned this Oct 30, 2025
@skjnldsv skjnldsv requested review from ShGKme and susnux October 30, 2025 11:06
@skjnldsv skjnldsv added type: enhancement 🚀 New feature or request 3. to review 3️⃣ Waiting for reviews labels Oct 30, 2025
@skjnldsv
Copy link
Contributor Author

Shall we add some preventiuve measures to avoid devs using complex data in attributes?
Like only allowing basic JSON-compatible types ? (plain objects, arrays, strings, numbers, booleans and null) .

@skjnldsv skjnldsv changed the title fix(node): cloning feat(node): allow to cast as String Oct 30, 2025
skjnldsv and others added 3 commits November 4, 2025 09:57
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv requested a review from susnux November 4, 2025 09:05
@skjnldsv skjnldsv mentioned this pull request Nov 4, 2025
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv force-pushed the fix/clone branch 2 times, most recently from 44b01e3 to 9d40402 Compare November 18, 2025 09:51
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv merged commit a41e0ac into fix/clone Nov 18, 2025
7 of 8 checks passed
@skjnldsv skjnldsv deleted the feat/to-string branch November 18, 2025 09:59
@skjnldsv
Copy link
Contributor Author

Let's merge into the other branch

@skjnldsv skjnldsv changed the title feat(node): allow to cast as String feat(node): allow to cast as JSON Nov 27, 2025
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: enhancement 🚀 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants