Skip to content

Commit

Permalink
Update of user agent versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Feb 27, 2023
1 parent 6194f24 commit a0b6dfc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].

## v3.16.2

### Changed

- Update of user agent versions

## v3.16.1

### Changed
Expand Down
16 changes: 8 additions & 8 deletions src/useragent/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ abstract class Version {
export const randomChromeVersion = new class extends Version {
// all versions: https://en.wikipedia.org/wiki/Google_Chrome_version_history
private variants = {
major: {min: 108, max: 110}, // periodically we should update those values
major: {min: 110, max: 113}, // periodically we should update those values
minor: {static: 0},
patch: {min: 5359, max: 5414},
build: {min: 94, max: 218},
patch: {min: 5481, max: 5563},
build: {min: 194, max: 226},
}

version(): BrowserVersion {
Expand All @@ -44,7 +44,7 @@ export const randomChromeVersion = new class extends Version {
export const randomFirefoxVersion = new class extends Version {
// all versions: https://en.wikipedia.org/wiki/Firefox_version_history
private variants = {
major: {min: 108, max: 123}, // periodically we should update those values
major: {min: 110, max: 116}, // periodically we should update those values
minor: {static: 0},
patch: {variants: ['esr']},
}
Expand All @@ -64,7 +64,7 @@ export const randomFirefoxVersion = new class extends Version {
export const randomOperaVersion = new class extends Version {
// all versions: https://en.wikipedia.org/wiki/Opera_version_history
private variants = {
major: {min: 91, max: 93}, // periodically we should update those values
major: {min: 96, max: 97}, // periodically we should update those values
minor: {static: 0},
patch: {min: 2889, max: 4480},
build: {min: 24, max: 198},
Expand All @@ -88,7 +88,7 @@ export const randomOperaVersion = new class extends Version {
export const randomSafariVersion = new class extends Version {
// all versions: https://en.wikipedia.org/wiki/Safari_version_history
private variants = {
major: {min: 537, max: 611}, // periodically we should update those values
major: {min: 614, max: 632}, // periodically we should update those values
minor: {min: 1, max: 36},
patch: {min: 1, max: 15},
}
Expand All @@ -110,9 +110,9 @@ export const randomSafariVersion = new class extends Version {
export const randomEdgeVersion = new class extends Version {
// all versions: https://docs.microsoft.com/en-us/deployedge/microsoft-edge-relnote-stable-channel
private variants = {
major: {min: 105, max: 107}, // periodically we should update those values
major: {min: 110, max: 113}, // periodically we should update those values
minor: {static: 0},
patch: {min: 1245, max: 1418},
patch: {min: 1462, max: 1587},
build: {min: 33, max: 62},
}

Expand Down

0 comments on commit a0b6dfc

Please sign in to comment.