@qwik.dev/core 2.0.0-beta.18 → 2.0.0-beta.19

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 (39) hide show
  1. package/dist/backpatch/package.json +1 -1
  2. package/dist/build/package.json +1 -1
  3. package/dist/cli.mjs +2 -2
  4. package/dist/core-internal.d.ts +10 -3
  5. package/dist/core.min.mjs +1 -1
  6. package/dist/core.mjs +107 -91
  7. package/dist/core.mjs.map +1 -1
  8. package/dist/core.prod.mjs +64 -61
  9. package/dist/loader/package.json +1 -1
  10. package/dist/optimizer.mjs +889 -884
  11. package/dist/server.mjs +4 -3
  12. package/dist/starters/adapters/cloudflare-workers/README.md +52 -0
  13. package/dist/starters/adapters/cloudflare-workers/adapters/cloudflare-workers/vite.config.ts +15 -0
  14. package/dist/starters/adapters/cloudflare-workers/gitignore +3 -0
  15. package/dist/starters/adapters/cloudflare-workers/package.json +31 -0
  16. package/dist/starters/adapters/cloudflare-workers/public/.assetsignore +4 -0
  17. package/dist/starters/adapters/cloudflare-workers/public/_headers +11 -0
  18. package/dist/starters/adapters/cloudflare-workers/public/_redirects +1 -0
  19. package/dist/starters/adapters/cloudflare-workers/src/entry.cloudflare-pages.tsx +23 -0
  20. package/dist/starters/adapters/cloudflare-workers/worker-configuration.d.ts +5 -0
  21. package/dist/starters/adapters/cloudflare-workers/wrangler.jsonc +41 -0
  22. package/dist/starters/adapters/express/package.json +1 -1
  23. package/dist/starters/features/compiled-i18n/package.json +37 -0
  24. package/dist/starters/features/compiled-i18n/src/components/locale-selector/locale-selector.tsx +30 -0
  25. package/dist/starters/features/{localize → compiled-i18n}/src/entry.ssr.tsx +7 -2
  26. package/dist/starters/features/compiled-i18n/src/routes/plugin@compiled-i18n.ts +28 -0
  27. package/dist/starters/features/cypress/src/actions/example.action.ts +5 -0
  28. package/dist/starters/features/cypress/src/components/example/example.cy.tsx +50 -8
  29. package/dist/starters/features/cypress/src/components/example/example.tsx +13 -3
  30. package/dist/starters/features/cypress/src/loaders/example.loader.ts +5 -0
  31. package/dist/testing/index.mjs +71 -44
  32. package/dist/testing/package.json +1 -1
  33. package/package.json +2 -2
  34. package/dist/starters/features/localize/package.json +0 -37
  35. package/dist/starters/features/localize/src/locales/message.en.json +0 -8
  36. package/dist/starters/features/localize/src/locales/message.it.json +0 -8
  37. package/dist/starters/features/localize/src/routes/[locale]/i18n-utils.ts +0 -94
  38. package/dist/starters/features/localize/src/routes/[locale]/index.tsx +0 -52
  39. package/dist/starters/features/localize/src/routes/[locale]/layout.tsx +0 -12
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/backpatch",
3
- "version": "2.0.0-beta.18-dev+a8081d4",
3
+ "version": "2.0.0-beta.19-dev+0d046fb",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/build",
3
- "version": "2.0.0-beta.18-dev+a8081d4",
3
+ "version": "2.0.0-beta.19-dev+0d046fb",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/cli 2.0.0-beta.18-dev+a8081d4
3
+ * @qwik.dev/core/cli 2.0.0-beta.19-dev+0d046fb
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
@@ -5625,7 +5625,7 @@ async function printHelp(app) {
5625
5625
  await runCommand2(Object.assign(app, { task: args[0], args }));
5626
5626
  }
5627
5627
  function printVersion() {
5628
- console.log("2.0.0-beta.18-dev+a8081d4");
5628
+ console.log("2.0.0-beta.19-dev+0d046fb");
5629
5629
  }
5630
5630
  export {
5631
5631
  runCli,
@@ -3808,11 +3808,18 @@ export declare interface Tracker {
3808
3808
  export declare const _UNINITIALIZED: unique symbol;
3809
3809
 
3810
3810
  /**
3811
- * Don't track listeners for this callback
3811
+ * Get the value of the expression without tracking listeners. A function will be invoked, signals
3812
+ * will return their value, and stores will be unwrapped (they return the backing object).
3812
3813
  *
3814
+ * When you pass a function, you can also pass additional arguments that the function will receive.
3815
+ *
3816
+ * Note that stores are not unwrapped recursively.
3817
+ *
3818
+ * @param expr - The function or object to evaluate without tracking.
3819
+ * @param args - Additional arguments to pass when `expr` is a function.
3813
3820
  * @public
3814
3821
  */
3815
- export declare const untrack: <T>(fn: () => T) => T;
3822
+ export declare const untrack: <T, A extends any[]>(expr: ((...args: A) => T) | Signal<T> | T, ...args: A) => T;
3816
3823
 
3817
3824
  declare type UnwantedKeys = keyof HTMLAttributesBase | keyof DOMAttributes<any> | keyof ARIAMixin | keyof GlobalEventHandlers | 'enterKeyHint' | 'innerText' | 'innerHTML' | 'outerHTML' | 'inputMode' | 'outerText' | 'nodeValue' | 'textContent';
3818
3825
 
@@ -4439,7 +4446,7 @@ export declare const _VAR_PROPS: unique symbol;
4439
4446
  export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;
4440
4447
 
4441
4448
  /**
4442
- * 2.0.0-beta.18-dev+a8081d4
4449
+ * 2.0.0-beta.19-dev+0d046fb
4443
4450
  *
4444
4451
  * @public
4445
4452
  */