@1agh/maude 0.21.0 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,6 +68,17 @@ export const RUNTIME_PACKAGES = [
68
68
  'yjs',
69
69
  'y-protocols/sync',
70
70
  'y-protocols/awareness',
71
+ // Phase 8 follow-up — lib0 sub-paths are imported DIRECTLY by use-collab.tsx
72
+ // (a transitive dep of canvas-lib.tsx via canvas-shell). Without these in
73
+ // RUNTIME_PACKAGES the canvas Bun.build at request time tries to resolve
74
+ // `lib0/decoding` from the user's project node_modules and fails — lib0 is
75
+ // only a transitive dep of yjs and pnpm/npm don't hoist it to a path
76
+ // reachable from a user canvas entrypoint. Externalising routes the import
77
+ // through the importmap to a dedicated /_canvas-runtime/lib0_*.js bundle.
78
+ // Bug shipped in v0.21.0; every canvas that uses @maude/canvas-lib (i.e.
79
+ // every real canvas) returned HTTP 500 "Bundle failed".
80
+ 'lib0/decoding',
81
+ 'lib0/encoding',
71
82
  ] as const;
72
83
 
73
84
  export type RuntimePackage = (typeof RUNTIME_PACKAGES)[number];
@@ -88,7 +88,9 @@
88
88
  "motion/react": "/_canvas-runtime/motion_react.js",
89
89
  "yjs": "/_canvas-runtime/yjs.js",
90
90
  "y-protocols/sync": "/_canvas-runtime/y-protocols_sync.js",
91
- "y-protocols/awareness": "/_canvas-runtime/y-protocols_awareness.js"
91
+ "y-protocols/awareness": "/_canvas-runtime/y-protocols_awareness.js",
92
+ "lib0/decoding": "/_canvas-runtime/lib0_decoding.js",
93
+ "lib0/encoding": "/_canvas-runtime/lib0_encoding.js"
92
94
  }
93
95
  }
94
96
  </script>