workerd 0.20230404.0 → 0.20230419.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 +1 -1
- package/install.js +6 -5
- package/lib/main.js +3 -3
- package/package.json +6 -6
package/bin/workerd
CHANGED
|
@@ -123,7 +123,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
123
123
|
"node_modules",
|
|
124
124
|
".cache",
|
|
125
125
|
"workerd",
|
|
126
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.
|
|
126
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.20230419.0"}-${import_path.default.basename(subpath)}`
|
|
127
127
|
);
|
|
128
128
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
129
129
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
package/install.js
CHANGED
|
@@ -51,6 +51,7 @@ function downloadedBinPath(pkg, subpath) {
|
|
|
51
51
|
|
|
52
52
|
// npm/lib/node-install.ts
|
|
53
53
|
var import_fs = __toESM(require("fs"));
|
|
54
|
+
var import_os2 = __toESM(require("os"));
|
|
54
55
|
var import_path2 = __toESM(require("path"));
|
|
55
56
|
var import_zlib = __toESM(require("zlib"));
|
|
56
57
|
var import_https = __toESM(require("https"));
|
|
@@ -73,10 +74,10 @@ function validateBinaryVersion(...command) {
|
|
|
73
74
|
//
|
|
74
75
|
stdio: "pipe"
|
|
75
76
|
}).toString().trim();
|
|
76
|
-
if (stdout !== `workerd ${"2023-04-
|
|
77
|
+
if (stdout !== `workerd ${"2023-04-19"}`) {
|
|
77
78
|
throw new Error(
|
|
78
79
|
`Expected ${JSON.stringify(
|
|
79
|
-
"2023-04-
|
|
80
|
+
"2023-04-19"
|
|
80
81
|
)} but got ${JSON.stringify(stdout)}`
|
|
81
82
|
);
|
|
82
83
|
}
|
|
@@ -132,7 +133,7 @@ function installUsingNPM(pkg, subpath, binPath) {
|
|
|
132
133
|
try {
|
|
133
134
|
import_fs.default.writeFileSync(import_path2.default.join(installDir, "package.json"), "{}");
|
|
134
135
|
import_child_process.default.execSync(
|
|
135
|
-
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.
|
|
136
|
+
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.20230419.0"}`,
|
|
136
137
|
{ cwd: installDir, stdio: "pipe", env }
|
|
137
138
|
);
|
|
138
139
|
const installedBinPath = import_path2.default.join(
|
|
@@ -166,7 +167,7 @@ function removeRecursive(dir) {
|
|
|
166
167
|
import_fs.default.rmdirSync(dir);
|
|
167
168
|
}
|
|
168
169
|
function maybeOptimizePackage(binPath) {
|
|
169
|
-
if (!isYarn()) {
|
|
170
|
+
if (import_os2.default.platform() !== "win32" && !isYarn()) {
|
|
170
171
|
const tempPath = import_path2.default.join(__dirname, "bin-workerd");
|
|
171
172
|
try {
|
|
172
173
|
import_fs.default.linkSync(binPath, tempPath);
|
|
@@ -179,7 +180,7 @@ function maybeOptimizePackage(binPath) {
|
|
|
179
180
|
}
|
|
180
181
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
|
181
182
|
const unscopedPkg = pkg.substring(pkg.indexOf("/") + 1);
|
|
182
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"0.
|
|
183
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"0.20230419.0"}.tgz`;
|
|
183
184
|
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`);
|
|
184
185
|
try {
|
|
185
186
|
import_fs.default.writeFileSync(
|
package/lib/main.js
CHANGED
|
@@ -137,7 +137,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
137
137
|
"node_modules",
|
|
138
138
|
".cache",
|
|
139
139
|
"workerd",
|
|
140
|
-
`pnpapi-${pkg.replace("/", "-")}-${"0.
|
|
140
|
+
`pnpapi-${pkg.replace("/", "-")}-${"0.20230419.0"}-${import_path.default.basename(subpath)}`
|
|
141
141
|
);
|
|
142
142
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
143
143
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
|
@@ -152,8 +152,8 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
152
152
|
// npm/lib/node-path.ts
|
|
153
153
|
var { binPath } = generateBinPath();
|
|
154
154
|
var node_path_default = binPath;
|
|
155
|
-
var compatibilityDate = "2023-04-
|
|
156
|
-
var version = "0.
|
|
155
|
+
var compatibilityDate = "2023-04-19";
|
|
156
|
+
var version = "0.20230419.0";
|
|
157
157
|
// Annotate the CommonJS export names for ESM import in node:
|
|
158
158
|
0 && (module.exports = {
|
|
159
159
|
compatibilityDate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workerd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20230419.0",
|
|
4
4
|
"description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime",
|
|
5
5
|
"repository": "https://github.com/cloudflare/workerd",
|
|
6
6
|
"scripts": {
|
|
@@ -14,11 +14,11 @@
|
|
|
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.
|
|
21
|
-
"@cloudflare/workerd-windows-64": "0.
|
|
17
|
+
"@cloudflare/workerd-darwin-arm64": "0.20230419.0",
|
|
18
|
+
"@cloudflare/workerd-darwin-64": "0.20230419.0",
|
|
19
|
+
"@cloudflare/workerd-linux-arm64": "0.20230419.0",
|
|
20
|
+
"@cloudflare/workerd-linux-64": "0.20230419.0",
|
|
21
|
+
"@cloudflare/workerd-windows-64": "0.20230419.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0"
|
|
24
24
|
}
|