@qwik.dev/core 2.0.0-beta.45 → 2.0.0-beta.47
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/build.d.ts +1 -1
- package/dist/backpatch/package.json +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/core-internal.d.ts +177 -108
- package/dist/core.min.mjs +10 -11
- package/dist/core.mjs +2354 -2126
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +4191 -4007
- package/dist/error-swap-executor.debug.js +2 -2
- package/dist/error-swap-executor.js +1 -1
- package/dist/insights.d.ts +2 -2
- package/dist/jsx-runtime/index.d.ts +1 -1
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.d.ts +14 -4
- package/dist/optimizer.mjs +492 -446
- package/dist/out-of-order-executor.debug.js +2 -2
- package/dist/preloader.mjs +77 -69
- package/dist/server-modules.d.ts +7 -7
- package/dist/server.d.ts +17 -17
- package/dist/server.mjs +93 -62
- package/dist/server.prod.mjs +419 -384
- package/dist/starters/adapters/bun/adapters/bun/vite.config.ts +0 -1
- package/dist/testing/index.d.ts +23 -22
- package/dist/testing/index.mjs +7484 -7364
- package/dist/testing/package.json +1 -1
- package/dist/ts-optimizer.mjs +1095 -1068
- package/dist/worker/index.mjs +2 -2
- package/dist/worker/package.json +1 -1
- package/dist/worker/worker.shared.js +3 -3
- package/handlers.mjs +6 -6
- package/jsx-dev-runtime.d.ts +1 -1
- package/jsx-runtime.d.ts +1 -1
- package/loader.d.ts +1 -1
- package/optimizer.d.ts +1 -1
- package/package.json +3 -2
- package/public.d.ts +6 -6
- package/server.d.ts +1 -1
- package/testing.d.ts +1 -1
package/dist/worker/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _capturesObj, implicit$FirstArg, inlinedQrl } from "@qwik.dev/core";
|
|
2
2
|
import workerUrl from "./worker.js?worker&url";
|
|
3
3
|
import { _serialize } from "@qwik.dev/core/internal";
|
|
4
4
|
import nodeWorkerAssetUrl from "./worker.node.js?worker&url";
|
|
@@ -241,7 +241,7 @@ var isNodeRuntime = () => !!runtimeGlobals.process?.versions?.node && !isBunRunt
|
|
|
241
241
|
/** @public */
|
|
242
242
|
var workerQrl = (qrl) => {
|
|
243
243
|
return /*#__PURE__*/ inlinedQrl(async (...args) => {
|
|
244
|
-
|
|
244
|
+
let qrl = _capturesObj._[0];
|
|
245
245
|
const filtered = sanitizeWorkerArgs(args);
|
|
246
246
|
const worker = await getWorkerTransport(qrl);
|
|
247
247
|
if (!worker) return qrl(...filtered);
|
package/dist/worker/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { setPlatform } from '@qwik.dev/core';
|
|
2
|
-
import { _deserialize } from '@qwik.dev/core/internal';
|
|
2
|
+
import { _deserialize, _getSingleton } from '@qwik.dev/core/internal';
|
|
3
3
|
|
|
4
4
|
const getSymbolHash = (symbolName) => {
|
|
5
5
|
const index = symbolName.lastIndexOf('_');
|
|
@@ -11,7 +11,7 @@ const createWorkerPlatform = (qrlBaseUrl) => {
|
|
|
11
11
|
isServer: true,
|
|
12
12
|
async importSymbol(_containerEl, url, symbolName) {
|
|
13
13
|
const hash = getSymbolHash(symbolName);
|
|
14
|
-
const regSym =
|
|
14
|
+
const regSym = _getSingleton('regSymbols')?.get(hash);
|
|
15
15
|
if (regSym) {
|
|
16
16
|
return regSym;
|
|
17
17
|
}
|
|
@@ -21,7 +21,7 @@ const createWorkerPlatform = (qrlBaseUrl) => {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const module = await import(/* @vite-ignore */ new URL(url, qrlBaseUrl).href);
|
|
24
|
-
const symbol = module[symbolName] ??
|
|
24
|
+
const symbol = module[symbolName] ?? _getSingleton('regSymbols')?.get(hash);
|
|
25
25
|
if (symbol === undefined) {
|
|
26
26
|
throw new Error(`Dynamic import ${symbolName} not found`);
|
|
27
27
|
}
|
package/handlers.mjs
CHANGED
|
@@ -19,14 +19,14 @@ export {
|
|
|
19
19
|
// Show
|
|
20
20
|
_shC,
|
|
21
21
|
_shT,
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
// Pending
|
|
23
|
+
_peC,
|
|
24
|
+
_peT,
|
|
25
25
|
// Reveal
|
|
26
26
|
_reR,
|
|
27
27
|
_reC,
|
|
28
28
|
_reT,
|
|
29
|
-
//
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
// Catch
|
|
30
|
+
_caC,
|
|
31
|
+
_caR,
|
|
32
32
|
} from '@qwik.dev/core/internal';
|
package/jsx-dev-runtime.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// re-export for typescript in old resolution mode
|
|
2
|
-
export * from './dist/jsx-runtime';
|
|
2
|
+
export * from './dist/jsx-runtime.js';
|
package/jsx-runtime.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// re-export for typescript in old resolution mode
|
|
2
|
-
export * from './dist/jsx-runtime';
|
|
2
|
+
export * from './dist/jsx-runtime.js';
|
package/loader.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// re-export for typescript in old resolution mode
|
|
2
|
-
export * from './dist/loader';
|
|
2
|
+
export * from './dist/loader/index.js';
|
package/optimizer.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// re-export for typescript in old resolution mode
|
|
2
|
-
export * from './dist/optimizer';
|
|
2
|
+
export * from './dist/optimizer.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwik.dev/core",
|
|
3
3
|
"description": "An open source framework for building instant loading web apps at any scale, without the extra effort.",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.47",
|
|
5
5
|
"author": "Qwik Team",
|
|
6
6
|
"bin": {
|
|
7
7
|
"qwik": "./qwik-cli.mjs"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prettier": "3.7.4",
|
|
31
31
|
"rolldown": "1.2.4",
|
|
32
32
|
"vitest": "5.0.0",
|
|
33
|
-
"@qwik.dev/core": "2.0.0-beta.
|
|
33
|
+
"@qwik.dev/core": "2.0.0-beta.47",
|
|
34
34
|
"@qwik.dev/dom": "2.1.19"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
@@ -195,6 +195,7 @@
|
|
|
195
195
|
"directory": "packages/qwik"
|
|
196
196
|
},
|
|
197
197
|
"sideEffects": [
|
|
198
|
+
"./src/core/shared/duplicate-core.ts",
|
|
198
199
|
"./src/testing/vdom-diff.unit-util.ts",
|
|
199
200
|
"./src/testing/mocks.ts"
|
|
200
201
|
],
|
package/public.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export {
|
|
2
2
|
$,
|
|
3
3
|
AsyncSignal,
|
|
4
|
+
Catch,
|
|
5
|
+
CatchInfo,
|
|
6
|
+
CatchProps,
|
|
4
7
|
ClassList,
|
|
5
8
|
Component,
|
|
6
9
|
component$,
|
|
@@ -12,9 +15,6 @@ export {
|
|
|
12
15
|
createSignal,
|
|
13
16
|
CSSProperties,
|
|
14
17
|
Each,
|
|
15
|
-
ErrorBoundary,
|
|
16
|
-
ErrorBoundaryInfo,
|
|
17
|
-
ErrorBoundaryProps,
|
|
18
18
|
// TODO remove this
|
|
19
19
|
event$,
|
|
20
20
|
EventHandler,
|
|
@@ -39,6 +39,8 @@ export {
|
|
|
39
39
|
NoSerializeSymbol,
|
|
40
40
|
SerializerSymbol,
|
|
41
41
|
OnVisibleTaskOptions,
|
|
42
|
+
Pending,
|
|
43
|
+
PendingProps,
|
|
42
44
|
PrefetchGraph,
|
|
43
45
|
PrefetchServiceWorker,
|
|
44
46
|
PropsOf,
|
|
@@ -66,8 +68,6 @@ export {
|
|
|
66
68
|
Signal,
|
|
67
69
|
SkipRender,
|
|
68
70
|
Slot,
|
|
69
|
-
Suspense,
|
|
70
|
-
SuspenseProps,
|
|
71
71
|
sync$,
|
|
72
72
|
TaskCtx,
|
|
73
73
|
// TODO do we really want to export this?
|
|
@@ -95,4 +95,4 @@ export {
|
|
|
95
95
|
SVGAttributes,
|
|
96
96
|
HTMLElementAttrs,
|
|
97
97
|
SVGProps,
|
|
98
|
-
} from './dist/core-internal';
|
|
98
|
+
} from './dist/core-internal.js';
|
package/server.d.ts
CHANGED
package/testing.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// re-export for typescript in old resolution mode
|
|
2
|
-
export * from './dist/testing';
|
|
2
|
+
export * from './dist/testing/index.js';
|