smbls 3.14.21 → 3.14.23

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.
package/embed.js CHANGED
@@ -29,7 +29,7 @@
29
29
  */
30
30
 
31
31
  import { create, applyExtends, registerEvent, REGISTRY } from '@symbo.ls/element'
32
- import { createStore, createEffect, createSignal, batch, getObserver, setObserver } from '@symbo.ls/signal'
32
+ import { createStore, createEffect, createSignal, batch } from '@symbo.ls/signal'
33
33
  import { pushConfig, popConfig, getActiveConfig, FACTORY } from '@symbo.ls/scratch'
34
34
 
35
35
  // `create` is element's canonical entry — same function the full
@@ -48,8 +48,6 @@ export {
48
48
  createEffect,
49
49
  createSignal,
50
50
  batch,
51
- getObserver,
52
- setObserver,
53
51
  pushConfig,
54
52
  popConfig,
55
53
  getActiveConfig,
@@ -76,7 +74,11 @@ export const mount = (rootDef, host, opts = {}) => {
76
74
  if (!rootDef || typeof rootDef !== 'object') {
77
75
  throw new Error('[SymbolsEmbed.mount] rootDef must be an object')
78
76
  }
79
- if (!host || typeof host !== 'object' || !host.appendChild) {
77
+ // DOM-element guard: typeof Node check works in browsers + jsdom + any
78
+ // server-side renderer that polyfills the DOM. A plain object literal
79
+ // with an `appendChild` mock would have slipped through the prior
80
+ // duck-type guard.
81
+ if (typeof Node === 'undefined' || !(host instanceof Node)) {
80
82
  throw new Error('[SymbolsEmbed.mount] host must be a DOM element')
81
83
  }
82
84
  const state = opts.state ? createStore(opts.state) : undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smbls",
3
- "version": "3.14.21",
3
+ "version": "3.14.23",
4
4
  "license": "CC-BY-NC-4.0",
5
5
  "type": "module",
6
6
  "module": "./dist/smbls.esm.js",
@@ -43,9 +43,9 @@
43
43
  "@symbo.ls/analyze": "^3.14.8",
44
44
  "@symbo.ls/signal": "^3.14.9",
45
45
  "@symbo.ls/element": "^3.14.12",
46
- "@symbo.ls/state": "^3.14.11",
46
+ "@symbo.ls/state": "^3.14.13",
47
47
  "@symbo.ls/css": "^3.14.10",
48
- "@symbo.ls/utils": "^3.14.12",
48
+ "@symbo.ls/utils": "^3.14.13",
49
49
  "@symbo.ls/wasm": "^3.14.10",
50
50
  "@symbo.ls/capsize": "^3.14.8",
51
51
  "@symbo.ls/helmet": "^3.14.8",