Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/major-clocks-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Comment thread
DenKoren marked this conversation as resolved.
15 changes: 15 additions & 0 deletions lib/model/common/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# What is it for?

The purpose of this package is to keep primitives and functions, that have to be shared between all our execution contexts:
Comment thread
DenKoren marked this conversation as resolved.

- node
- quickjs sandbox
- browser
- browser preload

We have code that can work in a single specific context (like UI of the block) or in a mixture of contexts.

This package is a meeting point for code that can exist in all possible places.

- NEVER put context-dependent code here. This may (and probably will) ruin the build in some other place (i.e. Desktop App).
- Keep list of dependencies limited and clear. Each new dependency is a moment to think wether you really need it.
Comment thread
DenKoren marked this conversation as resolved.
Comment thread
DenKoren marked this conversation as resolved.
Loading