@qwik.dev/router 2.0.0-alpha.6 → 2.0.0-alpha.8

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.
@@ -285,11 +285,7 @@ const Link = core.component$((props) => {
285
285
  }) : void 0;
286
286
  const handleClick = clientNavPath ? core.$(async (event, elm) => {
287
287
  if (event.defaultPrevented) {
288
- if (elm.hasAttribute("q:nbs")) {
289
- await nav(location.href, {
290
- type: "popstate"
291
- });
292
- } else if (elm.href) {
288
+ if (elm.href) {
293
289
  elm.setAttribute("aria-pressed", "true");
294
290
  await nav(elm.href, {
295
291
  forceReload: reload,
@@ -614,7 +610,6 @@ const spaInit = core.event$((_, el) => {
614
610
  if (!win[spa] && !win[initPopstate] && !win[initAnchors] && !win[initVisibility] && !win[initScroll]) {
615
611
  const currentPath = location.pathname + location.search;
616
612
  const historyPatch = "_qRouterHistoryPatch";
617
- const bootstrap = "_qRouterBootstrap";
618
613
  const scrollEnabled = "_qRouterScrollEnabled";
619
614
  const debounceTimeout = "_qRouterScrollDebounce";
620
615
  const scrollHistory = "_qRouterScroll";
@@ -646,15 +641,16 @@ const spaInit = core.event$((_, el) => {
646
641
  clearTimeout(win[debounceTimeout]);
647
642
  if (currentPath !== location.pathname + location.search) {
648
643
  const getContainer = (el2) => el2.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])");
649
- const link = getContainer(el)?.querySelector("a[q\\:link]");
650
- if (link) {
651
- const container = getContainer(link);
652
- const bootstrapLink = link.cloneNode();
653
- bootstrapLink.setAttribute("q:nbs", "");
654
- bootstrapLink.style.display = "none";
655
- container.appendChild(bootstrapLink);
656
- win[bootstrap] = bootstrapLink;
657
- bootstrapLink.click();
644
+ const container = getContainer(el);
645
+ const domContainer = container.qContainer;
646
+ const hostElement = domContainer.vNodeLocate(el);
647
+ const nav = domContainer?.resolveContext(hostElement, {
648
+ id: "qc--n"
649
+ });
650
+ if (nav) {
651
+ nav(location.href, {
652
+ type: "popstate"
653
+ });
658
654
  } else {
659
655
  location.reload();
660
656
  }
@@ -1123,8 +1119,6 @@ const QwikRouterProvider = core.component$((props) => {
1123
1119
  });
1124
1120
  removeEventListener("scroll", win._qRouterInitScroll);
1125
1121
  win._qRouterInitScroll = void 0;
1126
- win._qRouterBootstrap?.remove();
1127
- win._qRouterBootstrap = void 0;
1128
1122
  spaInit.resolve();
1129
1123
  }
1130
1124
  if (navType !== "popstate") {
@@ -1426,7 +1420,7 @@ const routeLoaderQrl = (loaderQrl, ...rest) => {
1426
1420
  If your are managing reusable logic or a library it is essential that this function is re-exported from within 'layout.tsx' or 'index.tsx file of the existing route otherwise it will not run or throw exception.
1427
1421
  For more information check: https://qwik.dev/docs/re-exporting-loaders/`);
1428
1422
  }
1429
- return internal._wrapProp(state, id);
1423
+ return internal._wrapStore(state, id);
1430
1424
  });
1431
1425
  }
1432
1426
  loader.__brand = "server_loader";
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "@qwik.dev/core/jsx-runtime";
2
2
  import { isBrowser, createContextId, implicit$FirstArg, useContext, useVisibleTask$, noSerialize, useServerData, component$, untrack, $, sync$, isDev, Slot, withLocale, event$, useStyles$, useStore, useSignal, useContextProvider, useTask$, isServer, getLocale, jsx as jsx$1, SkipRender } from "@qwik.dev/core";
3
- import { _deserialize, _weakSerialize, _getContextElement, _waitUntilRendered, _getQContainerElement, _wrapProp, _getContextEvent, _serialize } from "@qwik.dev/core/internal";
3
+ import { _deserialize, _weakSerialize, _getContextElement, _waitUntilRendered, _getQContainerElement, _wrapStore, _getContextEvent, _serialize } from "@qwik.dev/core/internal";
4
4
  import * as qwikRouterConfig from "@qwik-router-config";
5
5
  import { z } from "zod";
6
6
  import { z as z2 } from "zod";
@@ -267,11 +267,7 @@ const Link = component$((props) => {
267
267
  }) : void 0;
268
268
  const handleClick = clientNavPath ? $(async (event, elm) => {
269
269
  if (event.defaultPrevented) {
270
- if (elm.hasAttribute("q:nbs")) {
271
- await nav(location.href, {
272
- type: "popstate"
273
- });
274
- } else if (elm.href) {
270
+ if (elm.href) {
275
271
  elm.setAttribute("aria-pressed", "true");
276
272
  await nav(elm.href, {
277
273
  forceReload: reload,
@@ -596,7 +592,6 @@ const spaInit = event$((_, el) => {
596
592
  if (!win[spa] && !win[initPopstate] && !win[initAnchors] && !win[initVisibility] && !win[initScroll]) {
597
593
  const currentPath = location.pathname + location.search;
598
594
  const historyPatch = "_qRouterHistoryPatch";
599
- const bootstrap = "_qRouterBootstrap";
600
595
  const scrollEnabled = "_qRouterScrollEnabled";
601
596
  const debounceTimeout = "_qRouterScrollDebounce";
602
597
  const scrollHistory = "_qRouterScroll";
@@ -628,15 +623,16 @@ const spaInit = event$((_, el) => {
628
623
  clearTimeout(win[debounceTimeout]);
629
624
  if (currentPath !== location.pathname + location.search) {
630
625
  const getContainer = (el2) => el2.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])");
631
- const link = getContainer(el)?.querySelector("a[q\\:link]");
632
- if (link) {
633
- const container = getContainer(link);
634
- const bootstrapLink = link.cloneNode();
635
- bootstrapLink.setAttribute("q:nbs", "");
636
- bootstrapLink.style.display = "none";
637
- container.appendChild(bootstrapLink);
638
- win[bootstrap] = bootstrapLink;
639
- bootstrapLink.click();
626
+ const container = getContainer(el);
627
+ const domContainer = container.qContainer;
628
+ const hostElement = domContainer.vNodeLocate(el);
629
+ const nav = domContainer?.resolveContext(hostElement, {
630
+ id: "qc--n"
631
+ });
632
+ if (nav) {
633
+ nav(location.href, {
634
+ type: "popstate"
635
+ });
640
636
  } else {
641
637
  location.reload();
642
638
  }
@@ -1105,8 +1101,6 @@ const QwikRouterProvider = component$((props) => {
1105
1101
  });
1106
1102
  removeEventListener("scroll", win._qRouterInitScroll);
1107
1103
  win._qRouterInitScroll = void 0;
1108
- win._qRouterBootstrap?.remove();
1109
- win._qRouterBootstrap = void 0;
1110
1104
  spaInit.resolve();
1111
1105
  }
1112
1106
  if (navType !== "popstate") {
@@ -1408,7 +1402,7 @@ const routeLoaderQrl = (loaderQrl, ...rest) => {
1408
1402
  If your are managing reusable logic or a library it is essential that this function is re-exported from within 'layout.tsx' or 'index.tsx file of the existing route otherwise it will not run or throw exception.
1409
1403
  For more information check: https://qwik.dev/docs/re-exporting-loaders/`);
1410
1404
  }
1411
- return _wrapProp(state, id);
1405
+ return _wrapStore(state, id);
1412
1406
  });
1413
1407
  }
1414
1408
  loader.__brand = "server_loader";
@@ -689,8 +689,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
689
689
  } else {
690
690
  status = statusOrResponse.status;
691
691
  statusOrResponse.headers.forEach((value, key) => {
692
+ if (key.toLowerCase() === "set-cookie") {
693
+ return;
694
+ }
692
695
  headers.append(key, value);
693
696
  });
697
+ statusOrResponse.headers.getSetCookie().forEach((ck) => {
698
+ const index = ck.indexOf("=");
699
+ if (index === -1) {
700
+ return;
701
+ }
702
+ const key = ck.slice(0, index).trim();
703
+ const value = ck.slice(index + 1).trim();
704
+ cookie.set(key, value);
705
+ });
694
706
  if (statusOrResponse.body) {
695
707
  const writableStream2 = requestEv.getWritableStream();
696
708
  statusOrResponse.body.pipeTo(writableStream2);
@@ -647,8 +647,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
647
647
  } else {
648
648
  status = statusOrResponse.status;
649
649
  statusOrResponse.headers.forEach((value, key) => {
650
+ if (key.toLowerCase() === "set-cookie") {
651
+ return;
652
+ }
650
653
  headers.append(key, value);
651
654
  });
655
+ statusOrResponse.headers.getSetCookie().forEach((ck) => {
656
+ const index = ck.indexOf("=");
657
+ if (index === -1) {
658
+ return;
659
+ }
660
+ const key = ck.slice(0, index).trim();
661
+ const value = ck.slice(index + 1).trim();
662
+ cookie.set(key, value);
663
+ });
652
664
  if (statusOrResponse.body) {
653
665
  const writableStream2 = requestEv.getWritableStream();
654
666
  statusOrResponse.body.pipeTo(writableStream2);
@@ -9631,7 +9631,7 @@ var init_default = __esm({
9631
9631
  }
9632
9632
  });
9633
9633
 
9634
- // node_modules/.pnpm/micromark-util-character@2.1.0/node_modules/micromark-util-character/index.js
9634
+ // node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js
9635
9635
  function asciiControl(code3) {
9636
9636
  return (
9637
9637
  // Special whitespace codes (which have negative values), C0 and Control
@@ -9656,7 +9656,7 @@ function regexCheck(regex3) {
9656
9656
  }
9657
9657
  var asciiAlpha, asciiAlphanumeric, asciiAtext, asciiDigit, asciiHexDigit, asciiPunctuation, unicodePunctuation, unicodeWhitespace;
9658
9658
  var init_micromark_util_character = __esm({
9659
- "node_modules/.pnpm/micromark-util-character@2.1.0/node_modules/micromark-util-character/index.js"() {
9659
+ "node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js"() {
9660
9660
  asciiAlpha = regexCheck(/[A-Za-z]/);
9661
9661
  asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
9662
9662
  asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
@@ -10464,12 +10464,12 @@ var init_mdast_util_gfm_autolink_literal = __esm({
10464
10464
  }
10465
10465
  });
10466
10466
 
10467
- // node_modules/.pnpm/micromark-util-normalize-identifier@2.0.0/node_modules/micromark-util-normalize-identifier/index.js
10467
+ // node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js
10468
10468
  function normalizeIdentifier(value2) {
10469
10469
  return value2.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
10470
10470
  }
10471
10471
  var init_micromark_util_normalize_identifier = __esm({
10472
- "node_modules/.pnpm/micromark-util-normalize-identifier@2.0.0/node_modules/micromark-util-normalize-identifier/index.js"() {
10472
+ "node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js"() {
10473
10473
  }
10474
10474
  });
10475
10475
 
@@ -12180,7 +12180,7 @@ var init_mdast_util_gfm = __esm({
12180
12180
  }
12181
12181
  });
12182
12182
 
12183
- // node_modules/.pnpm/micromark-util-chunked@2.0.0/node_modules/micromark-util-chunked/index.js
12183
+ // node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js
12184
12184
  function splice(list3, start, remove, items) {
12185
12185
  const end = list3.length;
12186
12186
  let chunkStart = 0;
@@ -12207,11 +12207,11 @@ function splice(list3, start, remove, items) {
12207
12207
  }
12208
12208
  }
12209
12209
  var init_micromark_util_chunked = __esm({
12210
- "node_modules/.pnpm/micromark-util-chunked@2.0.0/node_modules/micromark-util-chunked/index.js"() {
12210
+ "node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js"() {
12211
12211
  }
12212
12212
  });
12213
12213
 
12214
- // node_modules/.pnpm/micromark-util-combine-extensions@2.0.0/node_modules/micromark-util-combine-extensions/index.js
12214
+ // node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js
12215
12215
  function combineExtensions(extensions) {
12216
12216
  const all3 = {};
12217
12217
  let index = -1;
@@ -12251,7 +12251,7 @@ function constructs(existing, list3) {
12251
12251
  }
12252
12252
  var hasOwnProperty;
12253
12253
  var init_micromark_util_combine_extensions = __esm({
12254
- "node_modules/.pnpm/micromark-util-combine-extensions@2.0.0/node_modules/micromark-util-combine-extensions/index.js"() {
12254
+ "node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js"() {
12255
12255
  init_micromark_util_chunked();
12256
12256
  hasOwnProperty = {}.hasOwnProperty;
12257
12257
  }
@@ -12617,7 +12617,7 @@ var init_micromark_extension_gfm_autolink_literal = __esm({
12617
12617
  }
12618
12618
  });
12619
12619
 
12620
- // node_modules/.pnpm/micromark-util-classify-character@2.0.0/node_modules/micromark-util-classify-character/index.js
12620
+ // node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
12621
12621
  function classifyCharacter(code3) {
12622
12622
  if (code3 === null || markdownLineEndingOrSpace(code3) || unicodeWhitespace(code3)) {
12623
12623
  return 1;
@@ -12627,12 +12627,12 @@ function classifyCharacter(code3) {
12627
12627
  }
12628
12628
  }
12629
12629
  var init_micromark_util_classify_character = __esm({
12630
- "node_modules/.pnpm/micromark-util-classify-character@2.0.0/node_modules/micromark-util-classify-character/index.js"() {
12630
+ "node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js"() {
12631
12631
  init_micromark_util_character();
12632
12632
  }
12633
12633
  });
12634
12634
 
12635
- // node_modules/.pnpm/micromark-util-resolve-all@2.0.0/node_modules/micromark-util-resolve-all/index.js
12635
+ // node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js
12636
12636
  function resolveAll(constructs2, events, context) {
12637
12637
  const called = [];
12638
12638
  let index = -1;
@@ -12646,11 +12646,11 @@ function resolveAll(constructs2, events, context) {
12646
12646
  return events;
12647
12647
  }
12648
12648
  var init_micromark_util_resolve_all = __esm({
12649
- "node_modules/.pnpm/micromark-util-resolve-all@2.0.0/node_modules/micromark-util-resolve-all/index.js"() {
12649
+ "node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js"() {
12650
12650
  }
12651
12651
  });
12652
12652
 
12653
- // node_modules/.pnpm/micromark-factory-space@2.0.0/node_modules/micromark-factory-space/index.js
12653
+ // node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
12654
12654
  function factorySpace(effects, ok3, type, max) {
12655
12655
  const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
12656
12656
  let size = 0;
@@ -12672,12 +12672,12 @@ function factorySpace(effects, ok3, type, max) {
12672
12672
  }
12673
12673
  }
12674
12674
  var init_micromark_factory_space = __esm({
12675
- "node_modules/.pnpm/micromark-factory-space@2.0.0/node_modules/micromark-factory-space/index.js"() {
12675
+ "node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js"() {
12676
12676
  init_micromark_util_character();
12677
12677
  }
12678
12678
  });
12679
12679
 
12680
- // node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/lib/blank-line.js
12680
+ // node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js
12681
12681
  function tokenizeBlankLine(effects, ok3, nok) {
12682
12682
  return start;
12683
12683
  function start(code3) {
@@ -12689,19 +12689,19 @@ function tokenizeBlankLine(effects, ok3, nok) {
12689
12689
  }
12690
12690
  var blankLine;
12691
12691
  var init_blank_line = __esm({
12692
- "node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/lib/blank-line.js"() {
12692
+ "node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js"() {
12693
12693
  init_micromark_factory_space();
12694
12694
  init_micromark_util_character();
12695
12695
  blankLine = {
12696
- tokenize: tokenizeBlankLine,
12697
- partial: true
12696
+ partial: true,
12697
+ tokenize: tokenizeBlankLine
12698
12698
  };
12699
12699
  }
12700
12700
  });
12701
12701
 
12702
- // node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/index.js
12702
+ // node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js
12703
12703
  var init_micromark_core_commonmark = __esm({
12704
- "node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/index.js"() {
12704
+ "node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js"() {
12705
12705
  init_blank_line();
12706
12706
  }
12707
12707
  });
@@ -14869,8 +14869,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
14869
14869
  } else {
14870
14870
  status = statusOrResponse.status;
14871
14871
  statusOrResponse.headers.forEach((value2, key) => {
14872
+ if (key.toLowerCase() === "set-cookie") {
14873
+ return;
14874
+ }
14872
14875
  headers.append(key, value2);
14873
14876
  });
14877
+ statusOrResponse.headers.getSetCookie().forEach((ck) => {
14878
+ const index = ck.indexOf("=");
14879
+ if (index === -1) {
14880
+ return;
14881
+ }
14882
+ const key = ck.slice(0, index).trim();
14883
+ const value2 = ck.slice(index + 1).trim();
14884
+ cookie.set(key, value2);
14885
+ });
14874
14886
  if (statusOrResponse.body) {
14875
14887
  const writableStream2 = requestEv.getWritableStream();
14876
14888
  statusOrResponse.body.pipeTo(writableStream2);
@@ -9629,7 +9629,7 @@ var init_default = __esm({
9629
9629
  }
9630
9630
  });
9631
9631
 
9632
- // node_modules/.pnpm/micromark-util-character@2.1.0/node_modules/micromark-util-character/index.js
9632
+ // node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js
9633
9633
  function asciiControl(code3) {
9634
9634
  return (
9635
9635
  // Special whitespace codes (which have negative values), C0 and Control
@@ -9654,7 +9654,7 @@ function regexCheck(regex3) {
9654
9654
  }
9655
9655
  var asciiAlpha, asciiAlphanumeric, asciiAtext, asciiDigit, asciiHexDigit, asciiPunctuation, unicodePunctuation, unicodeWhitespace;
9656
9656
  var init_micromark_util_character = __esm({
9657
- "node_modules/.pnpm/micromark-util-character@2.1.0/node_modules/micromark-util-character/index.js"() {
9657
+ "node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js"() {
9658
9658
  asciiAlpha = regexCheck(/[A-Za-z]/);
9659
9659
  asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
9660
9660
  asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
@@ -10462,12 +10462,12 @@ var init_mdast_util_gfm_autolink_literal = __esm({
10462
10462
  }
10463
10463
  });
10464
10464
 
10465
- // node_modules/.pnpm/micromark-util-normalize-identifier@2.0.0/node_modules/micromark-util-normalize-identifier/index.js
10465
+ // node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js
10466
10466
  function normalizeIdentifier(value2) {
10467
10467
  return value2.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
10468
10468
  }
10469
10469
  var init_micromark_util_normalize_identifier = __esm({
10470
- "node_modules/.pnpm/micromark-util-normalize-identifier@2.0.0/node_modules/micromark-util-normalize-identifier/index.js"() {
10470
+ "node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js"() {
10471
10471
  }
10472
10472
  });
10473
10473
 
@@ -12178,7 +12178,7 @@ var init_mdast_util_gfm = __esm({
12178
12178
  }
12179
12179
  });
12180
12180
 
12181
- // node_modules/.pnpm/micromark-util-chunked@2.0.0/node_modules/micromark-util-chunked/index.js
12181
+ // node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js
12182
12182
  function splice(list3, start, remove, items) {
12183
12183
  const end = list3.length;
12184
12184
  let chunkStart = 0;
@@ -12205,11 +12205,11 @@ function splice(list3, start, remove, items) {
12205
12205
  }
12206
12206
  }
12207
12207
  var init_micromark_util_chunked = __esm({
12208
- "node_modules/.pnpm/micromark-util-chunked@2.0.0/node_modules/micromark-util-chunked/index.js"() {
12208
+ "node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js"() {
12209
12209
  }
12210
12210
  });
12211
12211
 
12212
- // node_modules/.pnpm/micromark-util-combine-extensions@2.0.0/node_modules/micromark-util-combine-extensions/index.js
12212
+ // node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js
12213
12213
  function combineExtensions(extensions) {
12214
12214
  const all3 = {};
12215
12215
  let index = -1;
@@ -12249,7 +12249,7 @@ function constructs(existing, list3) {
12249
12249
  }
12250
12250
  var hasOwnProperty;
12251
12251
  var init_micromark_util_combine_extensions = __esm({
12252
- "node_modules/.pnpm/micromark-util-combine-extensions@2.0.0/node_modules/micromark-util-combine-extensions/index.js"() {
12252
+ "node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js"() {
12253
12253
  init_micromark_util_chunked();
12254
12254
  hasOwnProperty = {}.hasOwnProperty;
12255
12255
  }
@@ -12615,7 +12615,7 @@ var init_micromark_extension_gfm_autolink_literal = __esm({
12615
12615
  }
12616
12616
  });
12617
12617
 
12618
- // node_modules/.pnpm/micromark-util-classify-character@2.0.0/node_modules/micromark-util-classify-character/index.js
12618
+ // node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
12619
12619
  function classifyCharacter(code3) {
12620
12620
  if (code3 === null || markdownLineEndingOrSpace(code3) || unicodeWhitespace(code3)) {
12621
12621
  return 1;
@@ -12625,12 +12625,12 @@ function classifyCharacter(code3) {
12625
12625
  }
12626
12626
  }
12627
12627
  var init_micromark_util_classify_character = __esm({
12628
- "node_modules/.pnpm/micromark-util-classify-character@2.0.0/node_modules/micromark-util-classify-character/index.js"() {
12628
+ "node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js"() {
12629
12629
  init_micromark_util_character();
12630
12630
  }
12631
12631
  });
12632
12632
 
12633
- // node_modules/.pnpm/micromark-util-resolve-all@2.0.0/node_modules/micromark-util-resolve-all/index.js
12633
+ // node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js
12634
12634
  function resolveAll(constructs2, events, context) {
12635
12635
  const called = [];
12636
12636
  let index = -1;
@@ -12644,11 +12644,11 @@ function resolveAll(constructs2, events, context) {
12644
12644
  return events;
12645
12645
  }
12646
12646
  var init_micromark_util_resolve_all = __esm({
12647
- "node_modules/.pnpm/micromark-util-resolve-all@2.0.0/node_modules/micromark-util-resolve-all/index.js"() {
12647
+ "node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js"() {
12648
12648
  }
12649
12649
  });
12650
12650
 
12651
- // node_modules/.pnpm/micromark-factory-space@2.0.0/node_modules/micromark-factory-space/index.js
12651
+ // node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
12652
12652
  function factorySpace(effects, ok3, type, max) {
12653
12653
  const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
12654
12654
  let size = 0;
@@ -12670,12 +12670,12 @@ function factorySpace(effects, ok3, type, max) {
12670
12670
  }
12671
12671
  }
12672
12672
  var init_micromark_factory_space = __esm({
12673
- "node_modules/.pnpm/micromark-factory-space@2.0.0/node_modules/micromark-factory-space/index.js"() {
12673
+ "node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js"() {
12674
12674
  init_micromark_util_character();
12675
12675
  }
12676
12676
  });
12677
12677
 
12678
- // node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/lib/blank-line.js
12678
+ // node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js
12679
12679
  function tokenizeBlankLine(effects, ok3, nok) {
12680
12680
  return start;
12681
12681
  function start(code3) {
@@ -12687,19 +12687,19 @@ function tokenizeBlankLine(effects, ok3, nok) {
12687
12687
  }
12688
12688
  var blankLine;
12689
12689
  var init_blank_line = __esm({
12690
- "node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/lib/blank-line.js"() {
12690
+ "node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js"() {
12691
12691
  init_micromark_factory_space();
12692
12692
  init_micromark_util_character();
12693
12693
  blankLine = {
12694
- tokenize: tokenizeBlankLine,
12695
- partial: true
12694
+ partial: true,
12695
+ tokenize: tokenizeBlankLine
12696
12696
  };
12697
12697
  }
12698
12698
  });
12699
12699
 
12700
- // node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/index.js
12700
+ // node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js
12701
12701
  var init_micromark_core_commonmark = __esm({
12702
- "node_modules/.pnpm/micromark-core-commonmark@2.0.1/node_modules/micromark-core-commonmark/index.js"() {
12702
+ "node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js"() {
12703
12703
  init_blank_line();
12704
12704
  }
12705
12705
  });
@@ -14858,8 +14858,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
14858
14858
  } else {
14859
14859
  status = statusOrResponse.status;
14860
14860
  statusOrResponse.headers.forEach((value2, key) => {
14861
+ if (key.toLowerCase() === "set-cookie") {
14862
+ return;
14863
+ }
14861
14864
  headers.append(key, value2);
14862
14865
  });
14866
+ statusOrResponse.headers.getSetCookie().forEach((ck) => {
14867
+ const index = ck.indexOf("=");
14868
+ if (index === -1) {
14869
+ return;
14870
+ }
14871
+ const key = ck.slice(0, index).trim();
14872
+ const value2 = ck.slice(index + 1).trim();
14873
+ cookie.set(key, value2);
14874
+ });
14863
14875
  if (statusOrResponse.body) {
14864
14876
  const writableStream2 = requestEv.getWritableStream();
14865
14877
  statusOrResponse.body.pipeTo(writableStream2);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwik.dev/router",
3
3
  "description": "The router for Qwik.",
4
- "version": "2.0.0-alpha.6",
4
+ "version": "2.0.0-alpha.8",
5
5
  "bugs": "https://github.com/QwikDev/qwik/issues",
6
6
  "dependencies": {
7
7
  "@mdx-js/mdx": "^3",
@@ -41,7 +41,7 @@
41
41
  "unist-util-visit": "5.0.0",
42
42
  "uvu": "0.5.6",
43
43
  "yaml": "2.4.5",
44
- "@qwik.dev/core": "2.0.0-alpha.6"
44
+ "@qwik.dev/core": "2.0.0-alpha.8"
45
45
  },
46
46
  "engines": {
47
47
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0"