@torpor/build 0.1.32 → 0.1.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @torpor/build
2
2
 
3
+ ## 0.1.33
4
+
5
+ ### Patch Changes
6
+
7
+ - 74bf42d: Fix: store (and clear) the right layout slot ranges
8
+ - Updated dependencies [74bf42d]
9
+ - @torpor/view@0.1.10
10
+
3
11
  ## 0.1.32
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torpor/build",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "A framework for building sites and apps with Torpor",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -55,7 +55,7 @@
55
55
  "dotenv": "^16.5.0",
56
56
  "vite": "^7.0.0",
57
57
  "vite-tsconfig-paths": "^5.1.4",
58
- "@torpor/view": "^0.1.6",
58
+ "@torpor/view": "^0.1.10",
59
59
  "@torpor/unplugin": "^0.1.16"
60
60
  },
61
61
  "devDependencies": {
@@ -193,7 +193,7 @@ async function navigate(url: URL, firstTime = false): Promise<boolean> {
193
193
  } else {
194
194
  slotFunctions[i] = function layoutComponent(parent, anchor, _, $context) {
195
195
  if (layoutEndPoint.component) {
196
- layoutStack[i].slotRange = runLayoutSlot(
196
+ layoutStack[i - 1].slotRange = runLayoutSlot(
197
197
  layoutEndPoint.component,
198
198
  slotFunctions[i + 1],
199
199
  parent,
@@ -291,10 +291,8 @@ async function loadClientAndServerData(
291
291
  ): Promise<Response | void> {
292
292
  if (clientEndPoint?.load) {
293
293
  if (prefetchedData[location]) {
294
- //console.log("CLIENT DATA ALREADY LOADED", location);
295
294
  Object.assign(data, prefetchedData[location]);
296
295
  } else {
297
- //console.log("CLIENT DATA LOADING", location);
298
296
  const clientUrl = new URL(document.location.href);
299
297
  const clientParams = buildClientParams(clientUrl, params, data);
300
298
  const clientResponse = await clientEndPoint.load(clientParams);
@@ -315,10 +313,8 @@ async function loadClientAndServerData(
315
313
  const serverUrl = location.replace(/\/$/, "") + "/~server";
316
314
 
317
315
  if (prefetchedData[serverUrl]) {
318
- //console.log("SERVER DATA ALREADY LOADED", serverUrl);
319
316
  Object.assign(data, prefetchedData[serverUrl]);
320
317
  } else {
321
- //console.log("SERVER DATA LOADING", serverUrl);
322
318
  const serverResponse = await fetch(serverUrl);
323
319
  if (serverResponse) {
324
320
  if (serverResponse.ok) {