@qwik.dev/core 2.0.0-alpha.9 → 2.0.0-beta.2

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 (87) hide show
  1. package/bindings/qwik.darwin-arm64.node +0 -0
  2. package/bindings/qwik.darwin-x64.node +0 -0
  3. package/bindings/qwik.linux-x64-gnu.node +0 -0
  4. package/bindings/qwik.wasm.cjs +27 -27
  5. package/bindings/qwik.wasm.mjs +27 -27
  6. package/bindings/qwik.win32-x64-msvc.node +0 -0
  7. package/bindings/qwik_wasm_bg.wasm +0 -0
  8. package/dist/build/index.cjs +3 -3
  9. package/dist/build/index.d.ts +22 -22
  10. package/dist/build/package.json +1 -1
  11. package/dist/cli.cjs +6 -6
  12. package/dist/core-internal.d.ts +4447 -4153
  13. package/dist/core.cjs +5698 -5353
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.min.mjs +1 -1
  16. package/dist/core.mjs +5691 -5350
  17. package/dist/core.mjs.map +1 -1
  18. package/dist/core.prod.cjs +2811 -2633
  19. package/dist/core.prod.mjs +3193 -3039
  20. package/dist/insights/index.qwik.cjs +1 -4142
  21. package/dist/insights/index.qwik.mjs +63 -4133
  22. package/dist/insights/vite/index.cjs +1 -82
  23. package/dist/insights/vite/index.mjs +65 -37
  24. package/dist/insights/vite.d.ts +22 -0
  25. package/dist/{insights/insights.d.ts → insights.d.ts} +33 -22
  26. package/dist/loader/index.cjs +2 -2
  27. package/dist/loader/index.mjs +2 -2
  28. package/dist/loader/package.json +1 -1
  29. package/dist/optimizer.cjs +554 -355
  30. package/dist/optimizer.d.ts +779 -707
  31. package/dist/optimizer.mjs +552 -399
  32. package/dist/preloader.cjs +269 -0
  33. package/dist/preloader.mjs +198 -0
  34. package/dist/qwikloader.debug.js +242 -222
  35. package/dist/qwikloader.js +1 -3
  36. package/dist/server.cjs +678 -566
  37. package/dist/server.d.ts +504 -402
  38. package/dist/server.mjs +659 -551
  39. package/dist/starters/adapters/aws-lambda/serverless.yml +15 -0
  40. package/dist/starters/adapters/aws-lambda/src/entry_aws-lambda.tsx +0 -2
  41. package/dist/starters/adapters/azure-swa/public/staticwebapp.config.json +7 -0
  42. package/dist/starters/adapters/azure-swa/src/entry.azure-swa.tsx +1 -2
  43. package/dist/starters/adapters/bun/src/entry.bun.ts +3 -2
  44. package/dist/starters/adapters/cloud-run/src/entry.cloud-run.tsx +1 -3
  45. package/dist/starters/adapters/cloudflare-pages/public/_headers +2 -0
  46. package/dist/starters/adapters/cloudflare-pages/src/entry.cloudflare-pages.tsx +1 -2
  47. package/dist/starters/adapters/deno/src/entry.deno.ts +3 -2
  48. package/dist/starters/adapters/express/src/entry.express.tsx +5 -2
  49. package/dist/starters/adapters/fastify/src/entry.fastify.tsx +2 -1
  50. package/dist/starters/adapters/fastify/src/plugins/fastify-qwik.ts +9 -1
  51. package/dist/starters/adapters/firebase/firebase.json +12 -1
  52. package/dist/starters/adapters/firebase/functions/index.js +2 -3
  53. package/dist/starters/adapters/firebase/src/entry-firebase.tsx +1 -2
  54. package/dist/starters/adapters/netlify-edge/public/_headers +2 -0
  55. package/dist/starters/adapters/netlify-edge/src/entry.netlify-edge.tsx +1 -2
  56. package/dist/starters/adapters/node-server/src/entry.node-server.tsx +3 -2
  57. package/dist/starters/adapters/static/README.md +4 -0
  58. package/dist/starters/adapters/vercel-edge/src/entry.vercel-edge.tsx +1 -2
  59. package/dist/starters/adapters/vercel-edge/vercel.json +1 -1
  60. package/dist/starters/features/bootstrap/src/routes/bootstrap/layout.tsx +0 -11
  61. package/dist/starters/features/localize/src/entry.ssr.tsx +0 -2
  62. package/dist/starters/features/localize/src/routes/[locale]/i18n-utils.ts +1 -1
  63. package/dist/starters/features/partytown/package.json +4 -4
  64. package/dist/starters/features/partytown/src/components/partytown/partytown.tsx +2 -2
  65. package/dist/starters/features/postcss/postcss.config.js +1 -1
  66. package/dist/starters/features/service-worker/package.json +13 -0
  67. package/dist/starters/features/service-worker/src/routes/service-worker.ts +14 -0
  68. package/dist/starters/features/styled-vanilla-extract/package.json +2 -1
  69. package/dist/starters/features/tailwind/package.json +2 -1
  70. package/dist/starters/features/tailwind/src/global.css +1 -1
  71. package/dist/starters/features/tailwind-v3/tailwind.config.js +2 -2
  72. package/dist/testing/index.cjs +7988 -7723
  73. package/dist/testing/index.d.ts +141 -141
  74. package/dist/testing/index.mjs +8069 -7810
  75. package/dist/testing/package.json +1 -1
  76. package/package.json +19 -11
  77. package/public.d.ts +4 -0
  78. package/server.d.ts +1 -0
  79. package/dist/insights/index.d.ts +0 -1
  80. package/dist/insights/vite/index.d.ts +0 -1
  81. package/dist/insights/vite/insights-plugin.d.ts +0 -10
  82. package/dist/prefetch/index.cjs +0 -4
  83. package/dist/prefetch/index.d.ts +0 -2
  84. package/dist/prefetch/index.mjs +0 -3
  85. package/dist/prefetch/package.json +0 -8
  86. package/dist/qwik-prefetch.debug.js +0 -244
  87. package/dist/qwik-prefetch.js +0 -1
Binary file
Binary file
Binary file
@@ -222,35 +222,35 @@ async function __wbg_load(module, imports) {
222
222
  function __wbg_get_imports() {
223
223
  const imports = {};
224
224
  imports.wbg = {};
225
- imports.wbg.__wbg_buffer_6e1d53ff183194fc = function(arg0) {
225
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
226
226
  const ret = arg0.buffer;
227
227
  return ret;
228
228
  };
229
- imports.wbg.__wbg_call_3114932863209ca6 = function() { return handleError(function (arg0, arg1) {
229
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
230
230
  const ret = arg0.call(arg1);
231
231
  return ret;
232
232
  }, arguments) };
233
- imports.wbg.__wbg_done_adfd3f40364def50 = function(arg0) {
233
+ imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
234
234
  const ret = arg0.done;
235
235
  return ret;
236
236
  };
237
- imports.wbg.__wbg_entries_ce82e236f8300a53 = function(arg0) {
237
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
238
238
  const ret = Object.entries(arg0);
239
239
  return ret;
240
240
  };
241
- imports.wbg.__wbg_get_68aa371864aa301a = function(arg0, arg1) {
242
- const ret = arg0[arg1 >>> 0];
243
- return ret;
244
- };
245
- imports.wbg.__wbg_get_92a4780a3beb5fe9 = function() { return handleError(function (arg0, arg1) {
241
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
246
242
  const ret = Reflect.get(arg0, arg1);
247
243
  return ret;
248
244
  }, arguments) };
245
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
246
+ const ret = arg0[arg1 >>> 0];
247
+ return ret;
248
+ };
249
249
  imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
250
250
  const ret = arg0[arg1];
251
251
  return ret;
252
252
  };
253
- imports.wbg.__wbg_instanceof_ArrayBuffer_435fcead703e2827 = function(arg0) {
253
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
254
254
  let result;
255
255
  try {
256
256
  result = arg0 instanceof ArrayBuffer;
@@ -260,7 +260,7 @@ function __wbg_get_imports() {
260
260
  const ret = result;
261
261
  return ret;
262
262
  };
263
- imports.wbg.__wbg_instanceof_Uint8Array_9b67296cab48238f = function(arg0) {
263
+ imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
264
264
  let result;
265
265
  try {
266
266
  result = arg0 instanceof Uint8Array;
@@ -270,52 +270,52 @@ function __wbg_get_imports() {
270
270
  const ret = result;
271
271
  return ret;
272
272
  };
273
- imports.wbg.__wbg_isArray_fcd559a3bcfde1e9 = function(arg0) {
273
+ imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
274
274
  const ret = Array.isArray(arg0);
275
275
  return ret;
276
276
  };
277
- imports.wbg.__wbg_iterator_7a20c20ce22add0f = function() {
277
+ imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
278
278
  const ret = Symbol.iterator;
279
279
  return ret;
280
280
  };
281
- imports.wbg.__wbg_length_2e63ba34c4121df5 = function(arg0) {
281
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
282
282
  const ret = arg0.length;
283
283
  return ret;
284
284
  };
285
- imports.wbg.__wbg_length_e74df4881604f1d9 = function(arg0) {
285
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
286
286
  const ret = arg0.length;
287
287
  return ret;
288
288
  };
289
- imports.wbg.__wbg_new_076cac58bb698dd4 = function() {
289
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
290
290
  const ret = new Object();
291
291
  return ret;
292
292
  };
293
- imports.wbg.__wbg_new_0c28e72025e00594 = function() {
293
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
294
294
  const ret = new Array();
295
295
  return ret;
296
296
  };
297
- imports.wbg.__wbg_new_23362fa370a0a372 = function(arg0) {
297
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
298
298
  const ret = new Uint8Array(arg0);
299
299
  return ret;
300
300
  };
301
- imports.wbg.__wbg_next_c591766a7286b02a = function() { return handleError(function (arg0) {
301
+ imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
302
+ const ret = arg0.next;
303
+ return ret;
304
+ };
305
+ imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
302
306
  const ret = arg0.next();
303
307
  return ret;
304
308
  }, arguments) };
305
- imports.wbg.__wbg_next_f387ecc56a94ba00 = function(arg0) {
306
- const ret = arg0.next;
307
- return ret;
309
+ imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
310
+ arg0[arg1 >>> 0] = arg2;
308
311
  };
309
312
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
310
313
  arg0[arg1] = arg2;
311
314
  };
312
- imports.wbg.__wbg_set_7b70226104a82921 = function(arg0, arg1, arg2) {
315
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
313
316
  arg0.set(arg1, arg2 >>> 0);
314
317
  };
315
- imports.wbg.__wbg_set_a1fb6291729caffb = function(arg0, arg1, arg2) {
316
- arg0[arg1 >>> 0] = arg2;
317
- };
318
- imports.wbg.__wbg_value_30db1d77772f3236 = function(arg0) {
318
+ imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
319
319
  const ret = arg0.value;
320
320
  return ret;
321
321
  };
@@ -217,35 +217,35 @@ async function __wbg_load(module, imports) {
217
217
  function __wbg_get_imports() {
218
218
  const imports = {};
219
219
  imports.wbg = {};
220
- imports.wbg.__wbg_buffer_6e1d53ff183194fc = function(arg0) {
220
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
221
221
  const ret = arg0.buffer;
222
222
  return ret;
223
223
  };
224
- imports.wbg.__wbg_call_3114932863209ca6 = function() { return handleError(function (arg0, arg1) {
224
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
225
225
  const ret = arg0.call(arg1);
226
226
  return ret;
227
227
  }, arguments) };
228
- imports.wbg.__wbg_done_adfd3f40364def50 = function(arg0) {
228
+ imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
229
229
  const ret = arg0.done;
230
230
  return ret;
231
231
  };
232
- imports.wbg.__wbg_entries_ce82e236f8300a53 = function(arg0) {
232
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
233
233
  const ret = Object.entries(arg0);
234
234
  return ret;
235
235
  };
236
- imports.wbg.__wbg_get_68aa371864aa301a = function(arg0, arg1) {
237
- const ret = arg0[arg1 >>> 0];
238
- return ret;
239
- };
240
- imports.wbg.__wbg_get_92a4780a3beb5fe9 = function() { return handleError(function (arg0, arg1) {
236
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
241
237
  const ret = Reflect.get(arg0, arg1);
242
238
  return ret;
243
239
  }, arguments) };
240
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
241
+ const ret = arg0[arg1 >>> 0];
242
+ return ret;
243
+ };
244
244
  imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
245
245
  const ret = arg0[arg1];
246
246
  return ret;
247
247
  };
248
- imports.wbg.__wbg_instanceof_ArrayBuffer_435fcead703e2827 = function(arg0) {
248
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
249
249
  let result;
250
250
  try {
251
251
  result = arg0 instanceof ArrayBuffer;
@@ -255,7 +255,7 @@ function __wbg_get_imports() {
255
255
  const ret = result;
256
256
  return ret;
257
257
  };
258
- imports.wbg.__wbg_instanceof_Uint8Array_9b67296cab48238f = function(arg0) {
258
+ imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
259
259
  let result;
260
260
  try {
261
261
  result = arg0 instanceof Uint8Array;
@@ -265,52 +265,52 @@ function __wbg_get_imports() {
265
265
  const ret = result;
266
266
  return ret;
267
267
  };
268
- imports.wbg.__wbg_isArray_fcd559a3bcfde1e9 = function(arg0) {
268
+ imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
269
269
  const ret = Array.isArray(arg0);
270
270
  return ret;
271
271
  };
272
- imports.wbg.__wbg_iterator_7a20c20ce22add0f = function() {
272
+ imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
273
273
  const ret = Symbol.iterator;
274
274
  return ret;
275
275
  };
276
- imports.wbg.__wbg_length_2e63ba34c4121df5 = function(arg0) {
276
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
277
277
  const ret = arg0.length;
278
278
  return ret;
279
279
  };
280
- imports.wbg.__wbg_length_e74df4881604f1d9 = function(arg0) {
280
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
281
281
  const ret = arg0.length;
282
282
  return ret;
283
283
  };
284
- imports.wbg.__wbg_new_076cac58bb698dd4 = function() {
284
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
285
285
  const ret = new Object();
286
286
  return ret;
287
287
  };
288
- imports.wbg.__wbg_new_0c28e72025e00594 = function() {
288
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
289
289
  const ret = new Array();
290
290
  return ret;
291
291
  };
292
- imports.wbg.__wbg_new_23362fa370a0a372 = function(arg0) {
292
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
293
293
  const ret = new Uint8Array(arg0);
294
294
  return ret;
295
295
  };
296
- imports.wbg.__wbg_next_c591766a7286b02a = function() { return handleError(function (arg0) {
296
+ imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
297
+ const ret = arg0.next;
298
+ return ret;
299
+ };
300
+ imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
297
301
  const ret = arg0.next();
298
302
  return ret;
299
303
  }, arguments) };
300
- imports.wbg.__wbg_next_f387ecc56a94ba00 = function(arg0) {
301
- const ret = arg0.next;
302
- return ret;
304
+ imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
305
+ arg0[arg1 >>> 0] = arg2;
303
306
  };
304
307
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
305
308
  arg0[arg1] = arg2;
306
309
  };
307
- imports.wbg.__wbg_set_7b70226104a82921 = function(arg0, arg1, arg2) {
310
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
308
311
  arg0.set(arg1, arg2 >>> 0);
309
312
  };
310
- imports.wbg.__wbg_set_a1fb6291729caffb = function(arg0, arg1, arg2) {
311
- arg0[arg1 >>> 0] = arg2;
312
- };
313
- imports.wbg.__wbg_value_30db1d77772f3236 = function(arg0) {
313
+ imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
314
314
  const ret = arg0.value;
315
315
  return ret;
316
316
  };
Binary file
Binary file
@@ -19,13 +19,13 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // packages/qwik/src/build/index.ts
22
- var build_exports = {};
23
- __export(build_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  isBrowser: () => isBrowser,
25
25
  isDev: () => isDev,
26
26
  isServer: () => isServer
27
27
  });
28
- module.exports = __toCommonJS(build_exports);
28
+ module.exports = __toCommonJS(index_exports);
29
29
  var isBrowser = /* @__PURE__ */ (() => typeof window !== "undefined" && typeof HTMLElement !== "undefined" && !!window.document && String(HTMLElement).includes("[native code]"))();
30
30
  var isServer = !isBrowser;
31
31
  var isDev = /* @__PURE__ */ (() => {
@@ -1,22 +1,22 @@
1
- /**
2
- * True when build is made for browser, client-side execution.
3
- *
4
- * @public
5
- */
6
- export declare const isBrowser: boolean;
7
-
8
- /**
9
- * True when build is in dev mode.
10
- *
11
- * @public
12
- */
13
- export declare const isDev: boolean;
14
-
15
- /**
16
- * True when build is made for SSR purposes.
17
- *
18
- * @public
19
- */
20
- export declare const isServer: boolean;
21
-
22
- export { }
1
+ /**
2
+ * True when build is made for browser, client-side execution.
3
+ *
4
+ * @public
5
+ */
6
+ export declare const isBrowser: boolean;
7
+
8
+ /**
9
+ * True when build is in dev mode.
10
+ *
11
+ * @public
12
+ */
13
+ export declare const isDev: boolean;
14
+
15
+ /**
16
+ * True when build is made for SSR purposes.
17
+ *
18
+ * @public
19
+ */
20
+ export declare const isServer: boolean;
21
+
22
+ export { }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/build",
3
- "version": "2.0.0-alpha.9-dev+56ed5bd",
3
+ "version": "2.0.0-beta.2-dev+3ddc6c7",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
package/dist/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/cli 2.0.0-alpha.9-dev+56ed5bd
3
+ * @qwik.dev/core/cli 2.0.0-beta.2-dev+3ddc6c7
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1365,12 +1365,12 @@ var init_rename_import = __esm({
1365
1365
  });
1366
1366
 
1367
1367
  // packages/qwik/src/cli/index.ts
1368
- var cli_exports = {};
1369
- __export(cli_exports, {
1368
+ var index_exports = {};
1369
+ __export(index_exports, {
1370
1370
  runCli: () => runCli,
1371
1371
  updateApp: () => updateApp
1372
1372
  });
1373
- module.exports = __toCommonJS(cli_exports);
1373
+ module.exports = __toCommonJS(index_exports);
1374
1374
 
1375
1375
  // node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs
1376
1376
  var FORCE_COLOR;
@@ -1553,7 +1553,7 @@ function limitLength(hint, maxLength = 50) {
1553
1553
  }
1554
1554
  function getPackageManager() {
1555
1555
  var _a;
1556
- return ((_a = (0, import_which_pm_runs.default)()) == null ? void 0 : _a.name) || "npm";
1556
+ return ((_a = (0, import_which_pm_runs.default)()) == null ? void 0 : _a.name) || "pnpm";
1557
1557
  }
1558
1558
  function pmRunCmd() {
1559
1559
  const pm = getPackageManager();
@@ -5536,7 +5536,7 @@ async function printHelp(app) {
5536
5536
  await runCommand2(Object.assign(app, { task: args[0], args }));
5537
5537
  }
5538
5538
  function printVersion() {
5539
- console.log("2.0.0-alpha.9-dev+56ed5bd");
5539
+ console.log("2.0.0-beta.2-dev+3ddc6c7");
5540
5540
  }
5541
5541
  // Annotate the CommonJS export names for ESM import in node:
5542
5542
  0 && (module.exports = {