From 29613eb2ab67e2e99abd0b37ef748656bd4cffbe Mon Sep 17 00:00:00 2001 From: Michael Dougall <6801309+itsdouges@users.noreply.github.com> Date: Tue, 24 Oct 2023 17:51:31 +1100 Subject: [PATCH] Remote module plugin adeira-source-id: 26bd068bbb62af61cd1f104caa3c207867c89e9d --- .changeset/happy-walls-beam.md | 5 +++++ .changeset/twenty-parrots-drum.md | 13 +++++++++++++ .changeset/wicked-eagles-hide.md | 2 +- .tsconfig/node.json | 2 +- examples/geometry/src/breakfast.tsx | 7 ++++++- 5 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .changeset/happy-walls-beam.md create mode 100644 .changeset/twenty-parrots-drum.md diff --git a/.changeset/happy-walls-beam.md b/.changeset/happy-walls-beam.md new file mode 100644 index 00000000..7fade7a7 --- /dev/null +++ b/.changeset/happy-walls-beam.md @@ -0,0 +1,5 @@ +--- +"@triplex/server": minor +--- + +Add `onSourceFileChange` api to project. diff --git a/.changeset/twenty-parrots-drum.md b/.changeset/twenty-parrots-drum.md new file mode 100644 index 00000000..4f0eb4ce --- /dev/null +++ b/.changeset/twenty-parrots-drum.md @@ -0,0 +1,13 @@ +--- +"@triplex/client": minor +"@triplex/editor": minor +"@triplex/server": minor +"@triplex/scene": minor +"@triplex/electron": minor +--- + +Scene modules are now loaded remotely instead of from the fs. This is going to +raise the ceiling on features we can implement as now everything becomes a +mutation to the remote source instead of that AND also trying to handle the +intermediate state in the scene prior to it being flushed to the fs. Super +excited about this. diff --git a/.changeset/wicked-eagles-hide.md b/.changeset/wicked-eagles-hide.md index a958e067..e7578f57 100644 --- a/.changeset/wicked-eagles-hide.md +++ b/.changeset/wicked-eagles-hide.md @@ -1,5 +1,5 @@ --- -"@triplex/ws-client": patch +"@triplex/ws": patch "@triplex/bridge": patch "@triplex/client": patch "@triplex/editor": patch diff --git a/.tsconfig/node.json b/.tsconfig/node.json index b8b2b68b..68cc85bd 100644 --- a/.tsconfig/node.json +++ b/.tsconfig/node.json @@ -3,7 +3,7 @@ "display": "Node", "extends": "./base.json", "compilerOptions": { - "lib": ["es2022"], + "lib": ["dom", "dom.iterable", "es2022"], "module": "Node16", "target": "ES2017", "resolveJsonModule": true diff --git a/examples/geometry/src/breakfast.tsx b/examples/geometry/src/breakfast.tsx index 771b21e2..40992bab 100644 --- a/examples/geometry/src/breakfast.tsx +++ b/examples/geometry/src/breakfast.tsx @@ -35,7 +35,12 @@ export function Frypan({ position={position} rotation={rotation} > - +