Skip to content

Commit 6b9d825

Browse files
authored
chore(main): release 3.10.0 (#737)
Co-authored-by: JakeChampion <[email protected]>
1 parent 5274fd5 commit 6b9d825

File tree

17,550 files changed

+500
-635393
lines changed

Some content is hidden

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

17,550 files changed

+500
-635393
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Changelog
22

33

4+
## 3.10.0 (2024-03-09)
5+
6+
7+
### Added
8+
9+
* add fastly:device module which allows applications to detect a device based on a user-agent ([#738](https://github.com/fastly/js-compute-runtime/issues/738)) ([5274fd5](https://github.com/fastly/js-compute-runtime/commit/5274fd5280d80b276e6f13d4acbdefc435af6c57))
10+
11+
12+
### Fixed
13+
14+
* correct title for the CoreCache.transactionLookup documentation page ([9892d90](https://github.com/fastly/js-compute-runtime/commit/9892d9074d9a1bd25b9b5db28c12a940f2aac028))
15+
416
## 3.9.1 (2024-03-04)
517

618

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
8+
# Device.lookup()
9+
10+
Look up the data associated with a particular User-Agent string.
11+
12+
13+
## Syntax
14+
15+
```js
16+
lookup(userAgent)
17+
```
18+
19+
### Return value
20+
21+
If there is data associated with the User-Agent, a `Device` instance is returned.
22+
Otherwise, `null` is returned.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.brand
8+
9+
The read-only **`brand`** property of the `Device` interface is
10+
either a string stating the brand of the device, which can be different from the manufacturer of that device.
11+
If no brand is known, the value will be `null`.
12+
13+
14+
## Value
15+
16+
Either a string value if a brand is known, otherwise `null`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.hardwareType
8+
9+
The read-only **`hardwareType`** property of the `Device` interface is
10+
either a string stating the hardware type of the device, or `null` if the hardware type is not known.
11+
12+
A string representation of the device's primary platform hardware. The most commonly used device types are also identified via boolean variables. Because a device may have multiple device types and this variable only has the primary type, we recommend using the boolean variables for logic and using this string representation for logging.
13+
14+
15+
16+
## Value
17+
18+
Either a string value if a hardware type is known, otherwise `null`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.isDesktop
8+
9+
The read-only **`isDesktop`** property of the `Device` interface is
10+
either a boolean stating if the device is a desktop web browser, or `null` if the this is not known.
11+
12+
13+
## Value
14+
15+
Either a boolean stating if the device is a desktop web browser, or `null` if the this is not known.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.isGameConsole
8+
9+
The read-only **`isGameConsole`** property of the `Device` interface is
10+
either a boolean stating if the device is a video game console, or `null` if the this is not known.
11+
12+
13+
## Value
14+
15+
Either a boolean stating if the device is a video game console, or `null` if the this is not known.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.isMediaPlayer
8+
9+
The read-only **`isMediaPlayer`** property of the `Device` interface is
10+
either a boolean stating if the device is a media player (like Blu-ray players, iPod devices, and smart speakers such as Amazon Echo), or `null` if the this is not known.
11+
12+
13+
## Value
14+
15+
Either a boolean stating if the device is a media player (like Blu-ray players, iPod devices, and smart speakers such as Amazon Echo), or `null` if the this is not known.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.isMobile
8+
9+
The read-only **`isMobile`** property of the `Device` interface is
10+
either a boolean stating if the device is a mobile phone, or `null` if the this is not known.
11+
12+
13+
## Value
14+
15+
Either a boolean stating if the device is a mobile phone, or `null` if the this is not known.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.isSmartTV
8+
9+
The read-only **`isSmartTV`** property of the `Device` interface is
10+
either a boolean stating if the device is a smart TV, or `null` if the this is not known.
11+
12+
13+
## Value
14+
15+
Either a boolean stating if the device is a smart TV, or `null` if the this is not known.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.isTablet
8+
9+
The read-only **`isTablet`** property of the `Device` interface is
10+
either a boolean stating if the device is a tablet (like an iPad), or `null` if the this is not known.
11+
12+
13+
## Value
14+
15+
Either a boolean stating if the device is a tablet (like an iPad), or `null` if the this is not known.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.isTouchscreen
8+
9+
The read-only **`isTouchscreen`** property of the `Device` interface is
10+
either a boolean stating if the device's screen is touch sensitive, or `null` if the this is not known.
11+
12+
13+
## Value
14+
15+
Either a boolean stating if the device's screen is touch sensitive, or `null` if the this is not known.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.model
8+
9+
The read-only **`model`** property of the `Device` interface is
10+
either a string stating the model of the device, or `null` if the model is not known.
11+
12+
13+
## Value
14+
15+
Either a string value if a model is known, otherwise `null`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
# Device.prototype.name
8+
9+
The read-only **`name`** property of the `Device` interface is
10+
either a string stating the name of the device, or `null` if the name is not known.
11+
12+
13+
## Value
14+
15+
Either a string value if a name is known, otherwise `null`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
hide_title: false
3+
hide_table_of_contents: false
4+
pagination_next: null
5+
pagination_prev: null
6+
---
7+
import {Fiddle} from '@site/src/components/fiddle';
8+
9+
# toJSON
10+
11+
The `toJSON()` method of the Device interface is a serializer;
12+
it returns a JSON representation of the Device object.
13+
14+
To get a JSON string, you can use `JSON.stringify(device)` directly; it will call `toJSON()` automatically.
15+
16+
## Syntax
17+
18+
```js
19+
toJSON()
20+
```
21+
22+
### Return value
23+
24+
A JSON object that is the serialization of the Device object.

0 commit comments

Comments
 (0)