Skip to content

Commit ece775c

Browse files
committed
chore: add docs for 3.42.0
1 parent a7c5d57 commit ece775c

784 files changed

Lines changed: 28498 additions & 66 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Changelog
22

3-
## [3.42.0](https://github.com/fastly/js-compute-runtime/compare/v3.41.2...v3.42.0) (2026-05-08)
3+
## 3.42.0 (2026-05-08)
44

5-
6-
### Features
5+
### Added
76

87
* Bail out of reusable sandbox if request fails ([#1453](https://github.com/fastly/js-compute-runtime/issues/1453)) ([b6f41b0](https://github.com/fastly/js-compute-runtime/commit/b6f41b0bcf429705f1a70530e39774f3fedd3c07))
98

10-
11-
### Bug Fixes
9+
### Fixed
1210

1311
* Correct GC guard type in KVStore::put to prevent wasm unreachable crashes and fix some CI issues ([#1475](https://github.com/fastly/js-compute-runtime/issues/1475)) ([15f850d](https://github.com/fastly/js-compute-runtime/commit/15f850d47c2a407d5261f3b46047bb533bcca1dd))
1412
* Protect against GC from `validate_bytes` ([#1447](https://github.com/fastly/js-compute-runtime/issues/1447)) ([be0867b](https://github.com/fastly/js-compute-runtime/commit/be0867ba1f7632dab107c3db15800db3a52a49ec))

documentation/app/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

documentation/package-lock.json

Lines changed: 70 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
8+
# Acl.open()
9+
10+
Opens the ACL with the given name, returning a new `Acl` instance with the given name on success.
11+
12+
## Syntax
13+
14+
```js
15+
Acl.open(name)
16+
```
17+
18+
### Return value
19+
20+
An `Acl` instance.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
8+
# Acl.prototype.lookup()
9+
10+
The **`lookup(ipAddress)`** method returns the name associated with the `Acl` instance.
11+
12+
## Syntax
13+
14+
```js
15+
acl.lookup(ipAddress)
16+
```
17+
18+
### Parameters
19+
20+
- `ipAddress` _: string_
21+
- IPv4 or IPv6 address to lookup
22+
23+
### Return value
24+
25+
An Object of the form `{ action: 'ALLOW' | 'BlOCK', prefix: string }`, where `prefix` is the IP
26+
address prefix that was matched in the ACL.
27+
28+
## Example
29+
30+
```js
31+
/// <reference types="@fastly/js-compute" />
32+
import { Acl } from 'fastly:acl';
33+
addEventListener('fetch', async (evt) => {
34+
const myAcl = Acl.open('myacl');
35+
const match = await myAcl.lookup(evt.client.address);
36+
evt.respondWith(new Response(match?.action === 'BLOCK' ? 'blocked' : 'allowed'));
37+
});
38+
```

0 commit comments

Comments
 (0)