Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fastly/js-compute

Package Overview
Dependencies
Maintainers
5
Versions
130
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 2.0.0 to 2.0.1

9

CHANGELOG.md
# Changelog
## 2.0.1 (2023-05-24)
### Fixed
* When using implicit backends with https protocol, use the hostname for the sni hostname value to match `fetch` behaviour in browsers and other runtimes ([84fb6a2](https://github.com/fastly/js-compute-runtime/commit/84fb6a2fa57408fb13e9319da91d6de3533f1e3c))
## 2.0.0 (2023-05-15)

@@ -28,3 +35,3 @@

Here is a full example of migrating an applicatin from ObjectStore to KVStore:
Here is a full example of migrating an application from ObjectStore to KVStore:
```diff

@@ -31,0 +38,0 @@ /// <reference types="@fastly/js-compute" />

4

js-compute-runtime-cli.js

@@ -24,7 +24,7 @@ #!/usr/bin/env node

// This is a dynamic import because this import will throw an error
// if if does not have a pre-compiled version of Wizer available the platform
// if it does not have a pre-compiled version of Wizer available in the platform
// running the CLI. In that situation, we would still like the
// js-compute-runtime cli's --version and --help flags to work as
// it could be that the user is using an older version of js-compute-runtime
// and a newer version does support the platform they are using.
// and a newer version does not support the platform they are using.
const {compileApplicationToWasm} = await import('./src/compileApplicationToWasm.js')

@@ -31,0 +31,0 @@ await compileApplicationToWasm(input, output, wasmEngine, enableExperimentalHighResolutionTimeMethods);

{
"name": "@fastly/js-compute",
"version": "2.0.0",
"version": "2.0.1",
"engines": {

@@ -48,3 +48,3 @@ "node": "16 - 20",

"dependencies": {
"@bytecodealliance/jco": "^0.6.1",
"@bytecodealliance/jco": "^0.7.0",
"@bytecodealliance/wizer": "^1.6.1-beta.4",

@@ -51,0 +51,0 @@ "acorn": "^8.8.2",

@@ -7,5 +7,8 @@ import { componentEmbed, componentNew, preview1AdapterReactorPath } from '@bytecodealliance/jco';

const wit = await readFile(new URL('../fastly.wit', import.meta.url), 'utf8');
const coreComponentEmbedded = await componentEmbed(coreComponent, wit);
const coreComponentEmbedded = await componentEmbed({
binary: coreComponent,
witSource: wit,
});
const generatedComponent = await componentNew(coreComponentEmbedded, [['wasi_snapshot_preview1', await readFile(preview1AdapterReactorPath())]]);
await writeFile(path, generatedComponent);
}

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 not supported yet

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