Socket
Socket
Sign inDemoInstall

@fastly/js-compute

Package Overview
Dependencies
Maintainers
5
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastly/js-compute - npm Package Compare versions

Comparing version 3.18.1 to 3.19.0

12

CHANGELOG.md
# Changelog
## 3.19.0 (2024-07-29)
### Added
* Add FetchEvent.server object which contains information about the server which received the incoming HTTP request from the client. ([#855](https://github.com/fastly/js-compute-runtime/issues/855)) ([538ed9c](https://github.com/fastly/js-compute-runtime/commit/538ed9c436105caf4bf906355fcf110752870b2b))
* use StarlingMonkey by default, --disable-starlingmonkey flag ([#861](https://github.com/fastly/js-compute-runtime/issues/861)) ([475cdf9](https://github.com/fastly/js-compute-runtime/commit/475cdf910d5690d74ff96dccd14dfefc209ea944))
### Fixed
* Correct Class name for the ClientInfo class ([#854](https://github.com/fastly/js-compute-runtime/issues/854)) ([efb5694](https://github.com/fastly/js-compute-runtime/commit/efb569475a285bdeb2dcc1346d718eb26be4fed9))
* correct spelling in CLI error message ([#849](https://github.com/fastly/js-compute-runtime/issues/849)) ([38b558c](https://github.com/fastly/js-compute-runtime/commit/38b558c3ad7c6871243823a207485ba9cc6282dd))
## 3.18.1 (2024-07-18)

@@ -4,0 +16,0 @@

4

package.json
{
"name": "@fastly/js-compute",
"version": "3.18.1",
"version": "3.19.0",
"license": "Apache-2.0",

@@ -31,3 +31,3 @@ "main": "js-compute-runtime-cli.js",

"test:cli": "brittle --bail integration-tests/cli/**.test.js",
"test:integration": "node ./integration-tests/js-compute/test.js",
"test:integration": "node ./integration-tests/js-compute/test.js --disable-starlingmonkey",
"test:wpt": "tests/wpt-harness/build-wpt-runtime.sh && node ./tests/wpt-harness/run-wpt.mjs -vv",

@@ -34,0 +34,0 @@ "test:types": "tsd",

@@ -12,3 +12,2 @@ import { dirname, resolve, sep, normalize } from "node:path";

import { bundle } from "./bundle.js";
import { containsSyntaxErrors } from "./containsSyntaxErrors.js";

@@ -37,3 +36,3 @@ async function getTmpDir () {

console.error(
`Error: The \`input\` path points to a non-existant file: ${input}`
`Error: The \`input\` path points to a non-existent file: ${input}`
);

@@ -62,3 +61,3 @@ process.exit(1);

console.error(
`Error: The \`wasmEngine\` path points to a non-existant file: ${wasmEngine}`
`Error: The \`wasmEngine\` path points to a non-existent file: ${wasmEngine}`
);

@@ -94,9 +93,15 @@ process.exit(1);

if (containsSyntaxErrors(input)) {
let wizerInput, cleanup = () => {};
let contents;
try {
contents = await bundle(input, enableExperimentalTopLevelAwait);
} catch (error) {
console.error(
`Error:`,
error.message
);
process.exit(1);
}
let wizerInput, cleanup = () => {};
let contents = await bundle(input, enableExperimentalTopLevelAwait);
wizerInput = precompile(

@@ -103,0 +108,0 @@ contents.outputFiles[0].text,

@@ -11,6 +11,6 @@ import { fileURLToPath } from "node:url";

let enableExperimentalTopLevelAwait = false;
let starlingMonkey = false;
let starlingMonkey = true;
let enablePBL = false;
let customEngineSet = false;
let wasmEngine = join(__dirname, "../js-compute-runtime.wasm");
let wasmEngine = join(__dirname, "../starling.wasm");
let customInputSet = false;

@@ -22,8 +22,2 @@ let input = join(process.cwd(), "bin/index.js");

let useStarlingMonkey = () => {
console.log(`Building with the experimental StarlingMonkey engine`);
starlingMonkey = true;
wasmEngine = wasmEngine = join(__dirname, "../starling.wasm");
};
// eslint-disable-next-line no-cond-assign

@@ -56,5 +50,10 @@ loop: while ((cliInput = cliInputs.shift())) {

case "--starlingmonkey": {
useStarlingMonkey();
break;
}
case "--disable-starlingmonkey": {
starlingMonkey = false;
wasmEngine = join(__dirname, "../js-compute-runtime.wasm");
console.log('Building with the js-compute-runtime.wasm engine');
break;
}
case "--engine-wasm": {

@@ -61,0 +60,0 @@ if (customEngineSet) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc