@opentui/solid 0.1.26 → 0.1.27

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/index.js +1 -9
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -457,15 +457,7 @@ function _removeNode(parent, node) {
457
457
  node.parent = null;
458
458
  node = node.getSlotChild(parent);
459
459
  }
460
- if (isTextNodeRenderable(parent)) {
461
- if (typeof node !== "string" && !isTextNodeRenderable(node)) {
462
- console.warn("Node not a valid child of TextNode");
463
- } else {
464
- parent.remove(node);
465
- }
466
- } else {
467
- parent.remove(node.id);
468
- }
460
+ parent.remove(node.id);
469
461
  process.nextTick(() => {
470
462
  if (node instanceof BaseRenderable && !node.parent) {
471
463
  node.destroyRecursively();
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.1.26",
7
+ "version": "0.1.27",
8
8
  "description": "SolidJS renderer for OpenTUI",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@babel/core": "7.28.0",
29
29
  "@babel/preset-typescript": "7.27.1",
30
- "@opentui/core": "0.1.26",
30
+ "@opentui/core": "0.1.27",
31
31
  "babel-plugin-module-resolver": "5.0.2",
32
32
  "babel-preset-solid": "1.9.9",
33
33
  "s-js": "^0.4.9"
@@ -35,6 +35,7 @@
35
35
  "devDependencies": {
36
36
  "@types/babel__core": "7.20.5",
37
37
  "@types/bun": "latest",
38
+ "@types/node": "latest",
38
39
  "typescript": "^5"
39
40
  },
40
41
  "peerDependencies": {