@pyreon/solid-compat 0.15.0 → 0.18.0

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.
@@ -5386,7 +5386,7 @@ var drawChart = (function (exports) {
5386
5386
  </script>
5387
5387
  <script>
5388
5388
  /*<!--*/
5389
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"8e33e41a-1","name":"jsx-runtime.ts"},{"uid":"8e33e41a-3","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"8e33e41a-1":{"renderedLength":186,"gzipLength":138,"brotliLength":0,"metaUid":"8e33e41a-0"},"8e33e41a-3":{"renderedLength":19111,"gzipLength":5452,"brotliLength":0,"metaUid":"8e33e41a-2"}},"nodeMetas":{"8e33e41a-0":{"id":"/src/jsx-runtime.ts","moduleParts":{"index.js":"8e33e41a-1"},"imported":[{"uid":"8e33e41a-4"},{"uid":"8e33e41a-5"}],"importedBy":[{"uid":"8e33e41a-2"}]},"8e33e41a-2":{"id":"/src/index.ts","moduleParts":{"index.js":"8e33e41a-3"},"imported":[{"uid":"8e33e41a-4"},{"uid":"8e33e41a-5"},{"uid":"8e33e41a-0"}],"importedBy":[],"isEntry":true},"8e33e41a-4":{"id":"@pyreon/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e33e41a-2"},{"uid":"8e33e41a-0"}]},"8e33e41a-5":{"id":"@pyreon/reactivity","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e33e41a-2"},{"uid":"8e33e41a-0"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
5389
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"ba834b47-1","name":"jsx-runtime.ts"},{"uid":"ba834b47-3","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"ba834b47-1":{"renderedLength":186,"gzipLength":138,"brotliLength":0,"metaUid":"ba834b47-0"},"ba834b47-3":{"renderedLength":19113,"gzipLength":5456,"brotliLength":0,"metaUid":"ba834b47-2"}},"nodeMetas":{"ba834b47-0":{"id":"/src/jsx-runtime.ts","moduleParts":{"index.js":"ba834b47-1"},"imported":[{"uid":"ba834b47-4"},{"uid":"ba834b47-5"}],"importedBy":[{"uid":"ba834b47-2"}]},"ba834b47-2":{"id":"/src/index.ts","moduleParts":{"index.js":"ba834b47-3"},"imported":[{"uid":"ba834b47-4"},{"uid":"ba834b47-5"},{"uid":"ba834b47-0"}],"importedBy":[],"isEntry":true},"ba834b47-4":{"id":"@pyreon/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"ba834b47-2"},{"uid":"ba834b47-0"}]},"ba834b47-5":{"id":"@pyreon/reactivity","moduleParts":{},"imported":[],"importedBy":[{"uid":"ba834b47-2"},{"uid":"ba834b47-0"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
5390
5390
 
5391
5391
  const run = () => {
5392
5392
  const width = window.innerWidth;
package/lib/index.js CHANGED
@@ -321,9 +321,9 @@ const SOLID_CTX_BRAND = SOLID_CTX;
321
321
  function createContext(defaultValue) {
322
322
  const pyreonCtx = createContext$1(defaultValue);
323
323
  const Provider = (props) => {
324
- const { value, children } = props;
324
+ const { value, children: kids } = props;
325
325
  provide(pyreonCtx, value);
326
- return children ?? null;
326
+ return kids ?? null;
327
327
  };
328
328
  nativeCompat(Provider);
329
329
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/solid-compat",
3
- "version": "0.15.0",
3
+ "version": "0.18.0",
4
4
  "description": "SolidJS-compatible API shim for Pyreon — write Solid-style code that runs on Pyreon's reactive engine",
5
5
  "homepage": "https://github.com/pyreon/pyreon/tree/main/packages/solid-compat#readme",
6
6
  "bugs": {
@@ -54,13 +54,13 @@
54
54
  "prepublishOnly": "bun run build"
55
55
  },
56
56
  "dependencies": {
57
- "@pyreon/core": "^0.15.0",
58
- "@pyreon/reactivity": "^0.15.0",
59
- "@pyreon/runtime-dom": "^0.15.0"
57
+ "@pyreon/core": "^0.18.0",
58
+ "@pyreon/reactivity": "^0.18.0",
59
+ "@pyreon/runtime-dom": "^0.18.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@happy-dom/global-registrator": "^20.8.9",
63
- "@pyreon/test-utils": "^0.13.2",
63
+ "@pyreon/test-utils": "^0.13.5",
64
64
  "@vitest/browser-playwright": "^4.1.4",
65
65
  "happy-dom": "^20.8.3"
66
66
  }
package/src/index.ts CHANGED
@@ -546,9 +546,9 @@ export function createContext<T>(defaultValue?: T): SolidContext<T> {
546
546
  // Provider is a NATIVE Pyreon component — not compat-wrapped.
547
547
  // It calls provide() once during setup to push onto the context stack.
548
548
  const Provider = (props: Record<string, unknown>) => {
549
- const { value, children } = props as { value: T; children?: VNodeChild }
549
+ const { value, children: kids } = props as { value: T; children?: VNodeChild }
550
550
  pyreonProvide(pyreonCtx, value)
551
- return children ?? null
551
+ return kids ?? null
552
552
  }
553
553
  nativeCompat(Provider)
554
554