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

@fastly/js-compute

Package Overview
Dependencies
Maintainers
0
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 Versions

1
13

3.3.1

Diff

Changelog

Source

3.3.1 (2023-08-24)

Changed

  • update to spidermonkey which includes async resume support when using pbl (#634) (1dea60f)
jakechampion
published 3.3.0 •

Changelog

Source

3.3.0 (2023-08-22)

Added

jakechampion
published 3.2.1 •

Changelog

Source

3.2.1 (2023-08-16)

Fixed

  • Add documentation and type definitions for the new event.client.* fields (#625) (a6f557b)
jakechampion
published 3.2.0 •

Changelog

Source

3.2.0 (2023-08-10)

Added

  • add ability to automatically decompress gzip responses returned from fetch (#497) (e08d060)

Changed

  • use spidermonkey version 115 (4a4716d)
  • reduce memory usage by caching client getters when they are first called (87ee0cb)
  • update to latest url crate which passes some more wpt url tests (f0a42fd)
jakechampion
published 3.1.1 •

Changelog

Source

3.1.1 (2023-07-14)

Fixed

  • Request.prototype.clone - Do not create a body on the new request if the request instance being cloned does not contain a body (5debe80)
jakechampion
published 3.1.0 •

Changelog

Source

3.1.0 (2023-07-12)

Added

  • Add ability to disable connection-pooling behavior for Dynamic Backends (#574) (718bea8)

Changed

  • Deprecate SimpleCache.set and recommend SimpleCache.getOrSet as the alternative (bff1bf5)
jakechampion
published 3.0.0 •

Changelog

Source

3.0.0 (2023-07-08)

Changed

⚠ BREAKING CHANGE

  • Rename SimpleCache.delete to SimpleCache.purge and require purge options to be supplied as the second parameter

We are renaming because "purge" is already a well-known and documented concept for removing content from Fastly's cache.

The new addition of a second argument allows the caller to decide what scope to purge the content from, currently they can choose to purge from all of Fastly ("global") or from the POP that contains the currently executing instance ("pop"). We do not provide a default option right now, in the future we may provide a default option, if we discover a common pattern is being used.

Here is an example of migrating an application using SimpleCache.delete to SimpleCache.purge with the same behaviour:

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

import { SimpleCache } from 'fastly:cache';

addEventListener('fetch', event => event.respondWith(app(event)));

async function app(event) {
  const url = new URL(event.request.url);
  const path = url.pathname;
  if (url.searchParams.has('delete')) {
-    SimpleCache.delete(path);
+    SimpleCache.purge(path, { scope: "global" });
    return new Response(page, { status: 204 });
  }

  let page = SimpleCache.getOrSet(path, async () => {
    return {
      value: await render(path),
      // Store the page in the cache for 1 minute.
      ttl: 60
    }
  });
  return new Response(page, {
    headers: {
      'content-type': 'text/plain;charset=UTF-8'
    }
  });
}

async function render(path) {
  // expensive/slow function which constructs and returns the contents for a given path
  await new Promise(resolve => setTimeout(resolve, 10_000));
  return path;
}


Added

  • add event.client.tlsCipherOpensslName (49b0c99)
  • add event.client.tlsClientCertificate (cf93b62)
  • add event.client.tlsClientHello (3d87cb2)
  • add event.client.tlsJA3MD5 (2ecf4af)
  • add event.client.tlsProtocol (4c91142)
  • Rename SimpleCache.delete to SimpleCache.purge and require purge options to be supplied as the second parameter (20113c1)
jakechampion
published 2.5.0 •

Changelog

Source

2.5.0 (2023-07-05)

Added

  • add DOMException class (58b8086)
  • Add support for HMAC within SubtleCrypto implementation (96ac02d)

Changed

  • update types for SubtleCrypto to show we support a subset of importKey/sign/verify (#568) (329b733)
jakechampion
published 2.4.0 •

Changelog

Source

2.4.0 (2023-06-22)

Changed

  • Update to SpiderMonkey version 114.0.1 (#563) (03e2254)
jakechampion
published 2.3.0 •

Changelog

Source

2.3.0 (2023-06-12)

Added

  • implement web performance api (ddfe11e)
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