@barefootjs/test 0.26.4 → 0.28.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.
- package/dist/index.js +45 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -195484,7 +195484,8 @@ function transformConditionalBranch(node, ctx) {
|
|
|
195484
195484
|
const callsReactive = exprCallsReactiveGetters(node, ctx);
|
|
195485
195485
|
const hasCalls = exprHasFunctionCalls(node);
|
|
195486
195486
|
const reactive = isReactiveExpression(exprText, ctx, node) || isReactiveOrigin(branchOrigin);
|
|
195487
|
-
const
|
|
195487
|
+
const refsLoopParam = branchOrigin.freeRefs?.some((r) => r.kind === "render-item") ?? false;
|
|
195488
|
+
const needsSlot = reactive || callsReactive || refsLoopParam;
|
|
195488
195489
|
const slotId = needsSlot ? generateSlotId(ctx) : null;
|
|
195489
195490
|
return {
|
|
195490
195491
|
type: "expression",
|
|
@@ -198116,6 +198117,49 @@ function formatDateLocalNames(metadata) {
|
|
|
198116
198117
|
return names;
|
|
198117
198118
|
}
|
|
198118
198119
|
|
|
198120
|
+
// ../jsx/src/ir-to-client-js/control-flow/plan/lazy-row-eligibility.ts
|
|
198121
|
+
var PURE_SOURCE_GLOBALS = new Set([
|
|
198122
|
+
"Object",
|
|
198123
|
+
"Array",
|
|
198124
|
+
"JSON",
|
|
198125
|
+
"Number",
|
|
198126
|
+
"String",
|
|
198127
|
+
"Boolean"
|
|
198128
|
+
]);
|
|
198129
|
+
var INERT_BINDING_GLOBALS = new Set([
|
|
198130
|
+
"Object",
|
|
198131
|
+
"Array",
|
|
198132
|
+
"JSON",
|
|
198133
|
+
"Number",
|
|
198134
|
+
"String",
|
|
198135
|
+
"Boolean",
|
|
198136
|
+
"Math",
|
|
198137
|
+
"Date",
|
|
198138
|
+
"Intl",
|
|
198139
|
+
"Symbol",
|
|
198140
|
+
"Map",
|
|
198141
|
+
"Set",
|
|
198142
|
+
"WeakMap",
|
|
198143
|
+
"WeakSet",
|
|
198144
|
+
"Promise",
|
|
198145
|
+
"RegExp",
|
|
198146
|
+
"Error",
|
|
198147
|
+
"BigInt",
|
|
198148
|
+
"console",
|
|
198149
|
+
"undefined",
|
|
198150
|
+
"NaN",
|
|
198151
|
+
"Infinity",
|
|
198152
|
+
"globalThis",
|
|
198153
|
+
"parseInt",
|
|
198154
|
+
"parseFloat",
|
|
198155
|
+
"isNaN",
|
|
198156
|
+
"isFinite",
|
|
198157
|
+
"encodeURIComponent",
|
|
198158
|
+
"decodeURIComponent",
|
|
198159
|
+
"encodeURI",
|
|
198160
|
+
"decodeURI"
|
|
198161
|
+
]);
|
|
198162
|
+
|
|
198119
198163
|
// ../jsx/src/ir-to-client-js/emit-reactive.ts
|
|
198120
198164
|
var import_typescript14 = __toESM(require_typescript(), 1);
|
|
198121
198165
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/test",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Test utilities for BarefootJS - IR-based component testing without a browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"directory": "packages/test"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@barefootjs/jsx": "0.
|
|
42
|
+
"@barefootjs/jsx": "0.28.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.0.0"
|