mnfst 0.5.26 → 0.5.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.
@@ -2338,9 +2338,8 @@ function getLoadingBranch() {
2338
2338
  }
2339
2339
 
2340
2340
  // Create a simple fallback object that returns empty strings for all properties.
2341
- // When propForPlaceholder === 'content', nested data keys use getLoadingBranchSafe() (primitives only)
2342
- // so Alpine never gets a chainable proxy and $x.content.theme.light doesn't stack overflow.
2343
- // For other props (json, yaml, etc.) use getLoadingBranch() (chainable) so $route and deep paths work.
2341
+ // Nested data keys use getLoadingBranch() (chainable) so $route, $search, $query and deep paths
2342
+ // don't throw while loading (e.g. $x.content.legal.$route('path')).
2344
2343
  function createSimpleFallback(propForPlaceholder) {
2345
2344
  const fallback = Object.create(null);
2346
2345
 
@@ -2496,11 +2495,11 @@ function createSimpleFallback(propForPlaceholder) {
2496
2495
  }
2497
2496
  }
2498
2497
 
2499
- // For string keys that look like data: use safe placeholder for 'content' (primitives only,
2500
- // no re-entry/stack overflow); use chainable placeholder for other props ($route, deep paths).
2498
+ // For string keys that look like data: use chainable placeholder so nested arrays (e.g. content.legal)
2499
+ // have $route/$search/$query and expressions like $x.content.legal.$route('path') don't throw while loading.
2501
2500
  if (typeof key === 'string' && key.length > 0 && key.length < 64 &&
2502
2501
  !key.startsWith('$') && key !== 'length') {
2503
- return propForPlaceholder === 'content' ? getLoadingBranchSafe() : getLoadingBranch();
2502
+ return getLoadingBranch();
2504
2503
  }
2505
2504
 
2506
2505
  // For any other key, return chaining fallback — never return the loading proxy itself.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mnfst",
3
- "version": "0.5.26",
3
+ "version": "0.5.27",
4
4
  "private": false,
5
5
  "workspaces": [
6
6
  "templates/starter"