Skip to content

Commit

Permalink
9cfb612 fix: improve new SW logic (#6641)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed Jul 8, 2024
1 parent e1dc461 commit 219eb4c
Show file tree
Hide file tree
Showing 28 changed files with 47 additions and 41 deletions.
Binary file modified bindings/qwik.win32-x64-msvc.node
Binary file not shown.
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/build",
"version": "1.6.0-dev20240705183439",
"version": "1.6.0-dev20240708215852",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions cli.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/cli 1.6.0-dev20240705183439
* @builder.io/qwik/cli 1.6.0-dev20240708215852
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -4889,7 +4889,7 @@ async function printHelp(app) {
await runCommand2(Object.assign(app, { task: args[0], args }));
}
function printVersion() {
console.log("1.6.0-dev20240705183439");
console.log("1.6.0-dev20240708215852");
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions core.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.6.0-dev20240705183439
* @builder.io/qwik 1.6.0-dev20240708215852
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1009,7 +1009,7 @@
*
* @public
*/
const version = "1.6.0-dev20240705183439";
const version = "1.6.0-dev20240708215852";

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ export declare type ValueOrPromise<T> = T | Promise<T>;
export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;

/**
* 1.6.0-dev20240705183439
* 1.6.0-dev20240708215852
*
* @public
*/
Expand Down
2 changes: 1 addition & 1 deletion core.min.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions core.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.6.0-dev20240705183439
* @builder.io/qwik 1.6.0-dev20240708215852
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1005,7 +1005,7 @@ const serializeSStyle = (scopeIds) => {
*
* @public
*/
const version = "1.6.0-dev20240705183439";
const version = "1.6.0-dev20240708215852";

/**
* @internal
Expand Down
4 changes: 2 additions & 2 deletions core.prod.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.6.0-dev20240705183439
* @builder.io/qwik 1.6.0-dev20240708215852
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -355,7 +355,7 @@
return value;
}
};
const version = "1.6.0-dev20240705183439";
const version = "1.6.0-dev20240708215852";
const useSequentialScope = () => {
const iCtx = useInvokeContext();
const elCtx = getContext(iCtx.$hostElement$, iCtx.$renderCtx$.$static$.$containerState$);
Expand Down
4 changes: 2 additions & 2 deletions core.prod.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.6.0-dev20240705183439
* @builder.io/qwik 1.6.0-dev20240708215852
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -592,7 +592,7 @@ const serializeSStyle = scopeIds => {
}
};

const version = "1.6.0-dev20240705183439";
const version = "1.6.0-dev20240708215852";

const useSequentialScope = () => {
const iCtx = useInvokeContext();
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/core",
"version": "1.6.0-dev20240705183439",
"version": "1.6.0-dev20240708215852",
"main": "../core.mjs",
"module": "../core.mjs",
"types": "../core.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion jsx-dev-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/jsx-dev-runtime",
"version": "1.6.0-dev20240705183439",
"version": "1.6.0-dev20240708215852",
"main": "../core.mjs",
"module": "../core.mjs",
"types": "../jsx-runtime.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion jsx-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/jsx-runtime",
"version": "1.6.0-dev20240705183439",
"version": "1.6.0-dev20240708215852",
"main": "../core.mjs",
"module": "../core.mjs",
"types": "../jsx-runtime.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/loader",
"version": "1.6.0-dev20240705183439",
"version": "1.6.0-dev20240708215852",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
9 changes: 6 additions & 3 deletions optimizer.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/optimizer 1.6.0-dev20240705183439
* @builder.io/qwik/optimizer 1.6.0-dev20240708215852
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1256,7 +1256,7 @@ globalThis.qwikOptimizer = function(module) {
}
};
var versions = {
qwik: "1.6.0-dev20240705183439"
qwik: "1.6.0-dev20240708215852"
};
async function getSystem() {
const sysEnv = getEnv();
Expand Down Expand Up @@ -3556,9 +3556,12 @@ globalThis.qwikOptimizer = function(module) {
const fs = await sys.dynamicImport("node:fs");
const workerScriptPath = (await this.resolve("@builder.io/qwik/qwik-prefetch.js")).id;
const workerScript = await fs.promises.readFile(workerScriptPath, "utf-8");
const assetsDir = qwikPlugin.getOptions().assetsDir || "";
const useAssetsDir = !!assetsDir && "_astro" !== assetsDir;
const qwikPrefetchServiceWorkerFile = "qwik-prefetch-service-worker.js";
this.emitFile({
type: "asset",
fileName: "qwik-prefetch-service-worker.js",
fileName: useAssetsDir ? sys.path.join(filePath, qwikPrefetchServiceWorkerFile) : qwikPrefetchServiceWorkerFile,
source: workerScript
});
"function" === typeof opts.manifestOutput && await opts.manifestOutput(manifest);
Expand Down
9 changes: 6 additions & 3 deletions optimizer.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/optimizer 1.6.0-dev20240705183439
* @builder.io/qwik/optimizer 1.6.0-dev20240708215852
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1282,7 +1282,7 @@ var QWIK_BINDING_MAP = {
};

var versions = {
qwik: "1.6.0-dev20240705183439"
qwik: "1.6.0-dev20240708215852"
};

async function getSystem() {
Expand Down Expand Up @@ -3678,9 +3678,12 @@ function qwikVite(qwikViteOpts = {}) {
const fs = await sys.dynamicImport("node:fs");
const workerScriptPath = (await this.resolve("@builder.io/qwik/qwik-prefetch.js")).id;
const workerScript = await fs.promises.readFile(workerScriptPath, "utf-8");
const assetsDir = qwikPlugin.getOptions().assetsDir || "";
const useAssetsDir = !!assetsDir && "_astro" !== assetsDir;
const qwikPrefetchServiceWorkerFile = "qwik-prefetch-service-worker.js";
this.emitFile({
type: "asset",
fileName: "qwik-prefetch-service-worker.js",
fileName: useAssetsDir ? sys.path.join(filePath, qwikPrefetchServiceWorkerFile) : qwikPrefetchServiceWorkerFile,
source: workerScript
});
"function" === typeof opts.manifestOutput && await opts.manifestOutput(manifest);
Expand Down
2 changes: 1 addition & 1 deletion optimizer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/optimizer",
"version": "1.6.0-dev20240705183439",
"version": "1.6.0-dev20240708215852",
"main": "../optimizer.mjs",
"module": "../optimizer.mjs",
"types": "../optimizer.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik",
"version": "1.6.0-dev20240705183439",
"version": "1.6.0-dev20240708215852",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
"license": "MIT",
"main": "./core.mjs",
Expand Down
Loading

0 comments on commit 219eb4c

Please sign in to comment.