workerd 0.20221111.0 → 0.20230215.0
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/bin/workerd +4 -0
- package/install.js +19 -4
- package/lib/main.js +7 -3
- package/package.json +5 -5
package/bin/workerd
CHANGED
|
@@ -14,6 +14,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
14
|
return to;
|
|
15
15
|
};
|
|
16
16
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
17
21
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
18
22
|
mod
|
|
19
23
|
));
|
package/install.js
CHANGED
|
@@ -13,6 +13,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
13
|
return to;
|
|
14
14
|
};
|
|
15
15
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
16
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
17
21
|
mod
|
|
18
22
|
));
|
|
@@ -55,12 +59,23 @@ var isToPathJS = true;
|
|
|
55
59
|
function validateBinaryVersion(...command) {
|
|
56
60
|
command.push("--version");
|
|
57
61
|
const stdout = import_child_process.default.execFileSync(command.shift(), command, {
|
|
62
|
+
// Without this, this install script strangely crashes with the error
|
|
63
|
+
// "EACCES: permission denied, write" but only on Ubuntu Linux when node is
|
|
64
|
+
// installed from the Snap Store. This is not a problem when you download
|
|
65
|
+
// the official version of node. The problem appears to be that stderr
|
|
66
|
+
// (i.e. file descriptor 2) isn't writable?
|
|
67
|
+
//
|
|
68
|
+
// More info:
|
|
69
|
+
// - https://snapcraft.io/ (what the Snap Store is)
|
|
70
|
+
// - https://nodejs.org/dist/ (download the official version of node)
|
|
71
|
+
// - https://github.com/evanw/esbuild/issues/1711#issuecomment-1027554035
|
|
72
|
+
//
|
|
58
73
|
stdio: "pipe"
|
|
59
74
|
}).toString().trim();
|
|
60
|
-
if (stdout !== `workerd ${"
|
|
75
|
+
if (stdout !== `workerd ${"2023-02-15"}`) {
|
|
61
76
|
throw new Error(
|
|
62
77
|
`Expected ${JSON.stringify(
|
|
63
|
-
"
|
|
78
|
+
"2023-02-15"
|
|
64
79
|
)} but got ${JSON.stringify(stdout)}`
|
|
65
80
|
);
|
|
66
81
|
}
|
|
@@ -116,7 +131,7 @@ function installUsingNPM(pkg, subpath, binPath) {
|
|
|
116
131
|
try {
|
|
117
132
|
import_fs.default.writeFileSync(import_path2.default.join(installDir, "package.json"), "{}");
|
|
118
133
|
import_child_process.default.execSync(
|
|
119
|
-
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.
|
|
134
|
+
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.20230215.0"}`,
|
|
120
135
|
{ cwd: installDir, stdio: "pipe", env }
|
|
121
136
|
);
|
|
122
137
|
const installedBinPath = import_path2.default.join(
|
|
@@ -162,7 +177,7 @@ function maybeOptimizePackage(binPath) {
|
|
|
162
177
|
}
|
|
163
178
|
}
|
|
164
179
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
|
165
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.
|
|
180
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.20230215.0"}.tgz`;
|
|
166
181
|
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`);
|
|
167
182
|
try {
|
|
168
183
|
import_fs.default.writeFileSync(
|
package/lib/main.js
CHANGED
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
26
|
mod
|
|
23
27
|
));
|
|
@@ -132,7 +136,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
132
136
|
"node_modules",
|
|
133
137
|
".cache",
|
|
134
138
|
"workerd",
|
|
135
|
-
`pnpapi-${pkg}-${"0.
|
|
139
|
+
`pnpapi-${pkg}-${"0.20230215.0"}-${import_path.default.basename(subpath)}`
|
|
136
140
|
);
|
|
137
141
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
138
142
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
|
@@ -147,8 +151,8 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
147
151
|
// npm/lib/node-path.ts
|
|
148
152
|
var { binPath } = generateBinPath();
|
|
149
153
|
var node_path_default = binPath;
|
|
150
|
-
var compatibilityDate = "
|
|
151
|
-
var version = "0.
|
|
154
|
+
var compatibilityDate = "2023-02-15";
|
|
155
|
+
var version = "0.20230215.0";
|
|
152
156
|
// Annotate the CommonJS export names for ESM import in node:
|
|
153
157
|
0 && (module.exports = {
|
|
154
158
|
compatibilityDate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workerd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20230215.0",
|
|
4
4
|
"description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime",
|
|
5
5
|
"repository": "https://github.com/cloudflare/workerd",
|
|
6
6
|
"scripts": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"workerd": "bin/workerd"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@cloudflare/workerd-darwin-arm64": "0.
|
|
18
|
-
"@cloudflare/workerd-darwin-64": "0.
|
|
19
|
-
"@cloudflare/workerd-linux-arm64": "0.
|
|
20
|
-
"@cloudflare/workerd-linux-64": "0.
|
|
17
|
+
"@cloudflare/workerd-darwin-arm64": "0.20230215.0",
|
|
18
|
+
"@cloudflare/workerd-darwin-64": "0.20230215.0",
|
|
19
|
+
"@cloudflare/workerd-linux-arm64": "0.20230215.0",
|
|
20
|
+
"@cloudflare/workerd-linux-64": "0.20230215.0"
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0"
|
|
23
23
|
}
|