Skip to content

Releases: jonesiscoding/device

Client Hints

Client Hints Pre-release
Pre-release

Choose a tag to compare

@jonesiscoding jonesiscoding released this 01 Oct 18:29

With the v5 release, this library has adopted the concept of "Client Hints" and can act as a polyfill for official Client Hints, as well as add non-standard client hints for feature detection and other uses.

Other changes include:

  • Browser feature detection from CanIUse data
  • Improved pointer detection for hybrid devices
  • Configurable feature detection via JSON and adding your own classes
  • Configurable bot detection
  • Configurable "minimum feature set" for devices
  • Can provide mod_rewrite directives to automatically populate hints based on values from cookies or other hints.

This is a testing release, with additional documentation forthcoming.

Client Hints

Client Hints Pre-release
Pre-release

Choose a tag to compare

@jonesiscoding jonesiscoding released this 26 Sep 16:54
04ed07a

With the v5 release, this library has adopted the concept of "Client Hints" and can act as a polyfill for official Client Hints, as well as add non-standard client hints for feature detection and other uses.

Other changes include:

  • Browser feature detection from CanIUse data
  • Improved pointer detection for hybrid devices
  • Configurable feature detection via JSON and adding your own classes
  • Configurable bot detection
  • Configurable "minimum feature set" for devices
  • Can provide mod_rewrite directives to automatically populate hints based on values from cookies or other hints.

This is a testing release, with additional documentation forthcoming.

v5.1.7

v5.1.7 Pre-release
Pre-release

Choose a tag to compare

@jonesiscoding jonesiscoding released this 25 Sep 19:43
69f4daf

With the v5 release, this library has adopted the concept of "Client Hints" and can act as a polyfill for official Client Hints, as well as add non-standard client hints for feature detection and other uses.

Other changes include:

  • Browser feature detection from CanIUse data
  • Improved pointer detection for hybrid devices
  • Configurable feature detection via JSON and adding your own classes
  • Configurable bot detection
  • Configurable "minimum feature set" for devices
  • Can provide mod_rewrite directives to automatically populate hints based on values from cookies or other hints.

This is a testing release, with additional documentation forthcoming.

Client Hints

Client Hints Pre-release
Pre-release

Choose a tag to compare

@jonesiscoding jonesiscoding released this 12 Sep 18:10

With the v5 release, this library has adopted the concept of "Client Hints" and can act as a polyfill for official Client Hints, as well as add non-standard client hints for feature detection and other uses.

Other changes include:

  • Browser feature detection from CanIUse data
  • Improved pointer detection for hybrid devices
  • Configurable feature detection via JSON and adding your own classes
  • Configurable bot detection
  • Configurable "minimum feature set" for devices
  • Can provide mod_rewrite directives to automatically populate hints based on values from cookies or other hints.

This is a testing release, with additional documentation forthcoming.

Empty User Agent

Choose a tag to compare

@jonesiscoding jonesiscoding released this 29 Dec 21:49

Fixes issues with uses of HintsWithFallback::getUserAgent() in which the user agent string could not be determined from any of the server headers.

Various Bugfixes

Choose a tag to compare

@jonesiscoding jonesiscoding released this 22 Jul 00:06

Fixes issues with cookie saving in iOS Safari.

Distributable Release

Choose a tag to compare

@jonesiscoding jonesiscoding released this 29 May 16:24
v4.0.5

Adds pleasing config

Headless Clients

Choose a tag to compare

@jonesiscoding jonesiscoding released this 28 May 13:38

Improves handling when no user agent string is present. Note that the user agent string is only utilized in the absence of other hints such as the JS cookie or Client Hint headers; this behavior can be easily bypassed.

Client Hints

Choose a tag to compare

@jonesiscoding jonesiscoding released this 27 May 13:22

Initial 4.x release, which is almost a complete code rewrite. Namespace, function names, and properties have been changed. Any code using these libraries will need to be adapted.

The concept of client hints has been introduced in the PHP backend, utilizing some of the Client Hints provided by various browsers to the server in the request and some data from the front end javascript. The JS component has also been rewritten, making it easier to add additional tests, and dividing the hints into hardware, preference, and features.

Bugfixes - Please Read

Choose a tag to compare

@jonesiscoding jonesiscoding released this 16 Jul 13:46

Fixes several bugs, including one that misreported device width and height on iOS devices in portrait orientation.

It is important to note that this release may change the height (and possibly width) reported for any device that has a taskbar, notification bar, dock, or other UI element that takes up a portion of the screen. The width/height reported are now based off of the maximum screen space available to the browser.

This may affect other code that is based on specific threshold, so test with care. This is the reason for the minor version bump in this release.