@vitus-labs/core 2.0.0-alpha.2 → 2.0.0-alpha.21

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/lib/index.js +2 -6
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -439,12 +439,8 @@ const HTML_TEXT_TAGS = [
439
439
  const render = (content, attachProps) => {
440
440
  if (!content) return null;
441
441
  const render = (child) => attachProps ? createElement(child, attachProps) : createElement(child);
442
- if ([
443
- "number",
444
- "boolean",
445
- "bigint",
446
- "string"
447
- ].includes(typeof content)) return content;
442
+ const t = typeof content;
443
+ if (t === "string" || t === "number" || t === "boolean" || t === "bigint") return content;
448
444
  if (Array.isArray(content) || isFragment(content)) return content;
449
445
  if (isValidElementType(content)) return render(content);
450
446
  if (isValidElement(content)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitus-labs/core",
3
- "version": "2.0.0-alpha.2+8004069",
3
+ "version": "2.0.0-alpha.21",
4
4
  "license": "MIT",
5
5
  "author": "Vit Bokisch <vit@bokisch.cz>",
6
6
  "maintainers": [
@@ -55,11 +55,11 @@
55
55
  "react": ">= 19"
56
56
  },
57
57
  "dependencies": {
58
- "react-is": "^19.2.3"
58
+ "react-is": "^19.2.4"
59
59
  },
60
60
  "devDependencies": {
61
- "@vitus-labs/tools-rolldown": "^1.6.0",
62
- "@vitus-labs/tools-typescript": "^1.6.0"
61
+ "@vitus-labs/tools-rolldown": "^1.7.0",
62
+ "@vitus-labs/tools-typescript": "^1.7.0"
63
63
  },
64
- "gitHead": "80040697d7306c958055474e2581d1fcdab0deb9"
64
+ "gitHead": "e8ae357c45cbd6e2af4981259cd38adfe244bcfb"
65
65
  }