Skip to content

Commit

Permalink
chore(main): release 3.10.0 (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: JakeChampion <JakeChampion@users.noreply.github.com>
  • Loading branch information
JakeChampion and JakeChampion committed Mar 11, 2024
1 parent 5274fd5 commit 6b9d825
Show file tree
Hide file tree
Showing 17,550 changed files with 500 additions and 635,393 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Changelog


## 3.10.0 (2024-03-09)


### Added

* 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))


### Fixed

* correct title for the CoreCache.transactionLookup documentation page ([9892d90](https://github.com/fastly/js-compute-runtime/commit/9892d9074d9a1bd25b9b5db28c12a940f2aac028))

## 3.9.1 (2024-03-04)


Expand Down
22 changes: 22 additions & 0 deletions documentation/docs/fastly:device/Device/lookup.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---

# Device.lookup()

Look up the data associated with a particular User-Agent string.


## Syntax

```js
lookup(userAgent)
```

### Return value

If there is data associated with the User-Agent, a `Device` instance is returned.
Otherwise, `null` is returned.
16 changes: 16 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/brand.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.brand

The read-only **`brand`** property of the `Device` interface is
either a string stating the brand of the device, which can be different from the manufacturer of that device.
If no brand is known, the value will be `null`.


## Value

Either a string value if a brand is known, otherwise `null`.
18 changes: 18 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/hardwareType.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.hardwareType

The read-only **`hardwareType`** property of the `Device` interface is
either a string stating the hardware type of the device, or `null` if the hardware type is not known.

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.



## Value

Either a string value if a hardware type is known, otherwise `null`.
15 changes: 15 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/isDesktop.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.isDesktop

The read-only **`isDesktop`** property of the `Device` interface is
either a boolean stating if the device is a desktop web browser, or `null` if the this is not known.


## Value

Either a boolean stating if the device is a desktop web browser, or `null` if the this is not known.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.isGameConsole

The read-only **`isGameConsole`** property of the `Device` interface is
either a boolean stating if the device is a video game console, or `null` if the this is not known.


## Value

Either a boolean stating if the device is a video game console, or `null` if the this is not known.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.isMediaPlayer

The read-only **`isMediaPlayer`** property of the `Device` interface is
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.


## Value

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.
15 changes: 15 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/isMobile.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.isMobile

The read-only **`isMobile`** property of the `Device` interface is
either a boolean stating if the device is a mobile phone, or `null` if the this is not known.


## Value

Either a boolean stating if the device is a mobile phone, or `null` if the this is not known.
15 changes: 15 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/isSmartTV.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.isSmartTV

The read-only **`isSmartTV`** property of the `Device` interface is
either a boolean stating if the device is a smart TV, or `null` if the this is not known.


## Value

Either a boolean stating if the device is a smart TV, or `null` if the this is not known.
15 changes: 15 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/isTablet.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.isTablet

The read-only **`isTablet`** property of the `Device` interface is
either a boolean stating if the device is a tablet (like an iPad), or `null` if the this is not known.


## Value

Either a boolean stating if the device is a tablet (like an iPad), or `null` if the this is not known.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.isTouchscreen

The read-only **`isTouchscreen`** property of the `Device` interface is
either a boolean stating if the device's screen is touch sensitive, or `null` if the this is not known.


## Value

Either a boolean stating if the device's screen is touch sensitive, or `null` if the this is not known.
15 changes: 15 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/model.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.model

The read-only **`model`** property of the `Device` interface is
either a string stating the model of the device, or `null` if the model is not known.


## Value

Either a string value if a model is known, otherwise `null`.
15 changes: 15 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/name.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Device.prototype.name

The read-only **`name`** property of the `Device` interface is
either a string stating the name of the device, or `null` if the name is not known.


## Value

Either a string value if a name is known, otherwise `null`.
24 changes: 24 additions & 0 deletions documentation/docs/fastly:device/Device/prototype/toJSON.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
import {Fiddle} from '@site/src/components/fiddle';

# toJSON

The `toJSON()` method of the Device interface is a serializer;
it returns a JSON representation of the Device object.

To get a JSON string, you can use `JSON.stringify(device)` directly; it will call `toJSON()` automatically.

## Syntax

```js
toJSON()
```

### Return value

A JSON object that is the serialization of the Device object.

0 comments on commit 6b9d825

Please sign in to comment.