Skip to content

Commit

Permalink
update(versions): Update of user agent versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Dec 5, 2022
1 parent 8552b6c commit ecdf6e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ 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].

## UNRELEASED
## v3.16.1

### Changed

- Update of user agent versions

### Fixed

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: 104, max: 108}, // periodically we should update those values
major: {min: 108, max: 110}, // periodically we should update those values
minor: {static: 0},
patch: {min: 5112, max: 5249},
build: {min: 132, max: 218},
patch: {min: 5359, max: 5414},
build: {min: 94, max: 218},
}

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: 107, max: 123}, // periodically we should update those values
major: {min: 108, max: 123}, // 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: 78, max: 90}, // periodically we should update those values
major: {min: 91, max: 93}, // periodically we should update those values
minor: {static: 0},
patch: {min: 2889, max: 4480},
build: {min: 24, max: 198},
Expand Down Expand Up @@ -110,10 +110,10 @@ 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: 102, max: 105}, // periodically we should update those values
major: {min: 105, max: 107}, // periodically we should update those values
minor: {static: 0},
patch: {min: 1245, max: 1343},
build: {min: 33, max: 91},
patch: {min: 1245, max: 1418},
build: {min: 33, max: 62},
}

version(): BrowserVersion {
Expand Down

0 comments on commit ecdf6e3

Please sign in to comment.