@tscircuit/core 0.0.643 → 0.0.644

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -18
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -77,9 +77,8 @@ import {
77
77
  import Debug4 from "debug";
78
78
 
79
79
  // lib/fiber/create-instance-from-react-element.ts
80
- import React from "react";
80
+ import "react";
81
81
  import ReactReconciler from "react-reconciler";
82
- import ReactReconciler18 from "react-reconciler-18";
83
82
  import { DefaultEventPriority } from "react-reconciler/constants.js";
84
83
 
85
84
  // lib/components/base-components/Renderable.ts
@@ -1354,12 +1353,7 @@ var hostConfig = {
1354
1353
  maySuspendCommit: () => false,
1355
1354
  supportsHydration: false
1356
1355
  };
1357
- var reconciler;
1358
- if (React.version.startsWith("19.")) {
1359
- reconciler = ReactReconciler(hostConfig);
1360
- } else {
1361
- reconciler = ReactReconciler18(hostConfig);
1362
- }
1356
+ var reconciler = ReactReconciler(hostConfig);
1363
1357
  var createInstanceFromReactElement = (reactElm) => {
1364
1358
  const rootContainer = {
1365
1359
  children: [],
@@ -1392,14 +1386,9 @@ var createInstanceFromReactElement = (reactElm) => {
1392
1386
  },
1393
1387
  null
1394
1388
  );
1395
- if (React.version.startsWith("19.")) {
1396
- reconciler.updateContainerSync(reactElm, container, null, () => {
1397
- });
1398
- reconciler.flushSyncWork();
1399
- } else {
1400
- reconciler.updateContainer(reactElm, container, null, () => {
1401
- });
1402
- }
1389
+ reconciler.updateContainerSync(reactElm, container, null, () => {
1390
+ });
1391
+ reconciler.flushSyncWork();
1403
1392
  if (containerErrors.length > 0) {
1404
1393
  throw containerErrors[0];
1405
1394
  }
@@ -12865,7 +12854,7 @@ import { identity as identity5 } from "transformation-matrix";
12865
12854
  var package_default = {
12866
12855
  name: "@tscircuit/core",
12867
12856
  type: "module",
12868
- version: "0.0.642",
12857
+ version: "0.0.643",
12869
12858
  types: "dist/index.d.ts",
12870
12859
  main: "dist/index.js",
12871
12860
  module: "dist/index.js",
@@ -12965,7 +12954,6 @@ var package_default = {
12965
12954
  nanoid: "^5.0.7",
12966
12955
  "performance-now": "^2.1.0",
12967
12956
  "react-reconciler": "^0.32.0",
12968
- "react-reconciler-18": "npm:react-reconciler@0.29.2",
12969
12957
  "transformation-matrix": "^2.16.1",
12970
12958
  zod: "^3.25.67"
12971
12959
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.643",
4
+ "version": "0.0.644",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -101,7 +101,6 @@
101
101
  "nanoid": "^5.0.7",
102
102
  "performance-now": "^2.1.0",
103
103
  "react-reconciler": "^0.32.0",
104
- "react-reconciler-18": "npm:react-reconciler@0.29.2",
105
104
  "transformation-matrix": "^2.16.1",
106
105
  "zod": "^3.25.67"
107
106
  }