@fastly/js-compute (3.8.3)

Published 2024-02-27 04:52:38 +00:00 by neil

Installation

@fastly:registry=
npm install @fastly/js-compute@3.8.3
"@fastly/js-compute": "3.8.3"

About this package

@fastly/js-compute

JavaScript SDK and CLI for building JavaScript applications on Fastly Compute.

npm version npm downloads per month

Getting Started

We recommend using the Fastly CLI to create, build, and deploy JavaScript Fastly Compute services, as described on the Fastly Developer Hub.

Detailed documentation for JavaScript Fastly Compute services is also available on Fastly Developer Hub.

Usage

JavaScript Examples

The Fastly Developer Hub has a collection of example JavaScript applications.

Here is a small example application:

/// <reference types="@fastly/js-compute" />

async function app(event) {
    const request = event.request;
    return new Response(`You made a request to ${request.url}`)
}

addEventListener("fetch", event => {
  event.respondWith(app(event));
});

API documentation

The API documentation for the JavaScript SDK is located at https://js-compute-reference-docs.edgecompute.app.

Security

If you find any security issues, see the Fastly Security Reporting Page or send an email to: security@fastly.com

We plan to disclose any found security vulnerabilities per the GitHub security vulnerability guidance. Note that communications related to security issues in Fastly-maintained OSS as described here are distinct from Fastly security advisories.

Changelog

The changelog can be found here.

License

Apache-2.0 WITH LLVM-exception

Dependencies

Dependencies

ID Version
@bytecodealliance/jco ^0.10.0
@bytecodealliance/wizer ^3.0.1
acorn ^8.8.2
acorn-walk ^8.2.0
esbuild ^0.17.18
magic-string ^0.30.0
regexpu-core ^5.3.2

Development Dependencies

ID Version
@jakechampion/cli-testing-library ^1.0.0
brittle ^3.2.1
cae-release-notes-format-checker ^1.0.2
eslint ^8.40.0
get-bin-path ^9.0.0
tsd ^0.28.1
typescript ^5.0
Details
npm
2024-02-27 04:52:38 +00:00
1
Apache-2.0
latest
50 KiB
Assets (1)
Versions (1) View all
3.8.3 2024-02-27