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 Jul 20, 2023
1 parent ce6a773 commit c6328cb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 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.18.0

### Changed

- Update of user agent versions

## v3.17.0

### Changed
Expand Down
18 changes: 9 additions & 9 deletions src/useragent/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ abstract class Version {
}

export const randomChromeVersion = new class extends Version {
// all versions: https://en.wikipedia.org/wiki/Google_Chrome_version_history
// all versions: https://chromereleases.googleblog.com/search/label/Desktop%20Update
private variants = {
major: {min: 112, max: 114}, // periodically we should update those values
major: {min: 114, max: 116}, // periodically we should update those values
minor: {static: 0},
patch: {min: 5615, max: 5672},
patch: {min: 5735, max: 5845},
build: {min: 194, max: 226},
}

Expand All @@ -42,9 +42,9 @@ export const randomChromeVersion = new class extends Version {
}

export const randomFirefoxVersion = new class extends Version {
// all versions: https://en.wikipedia.org/wiki/Firefox_version_history
// all versions: https://www.mozilla.org/en-US/firefox/releases/
private variants = {
major: {min: 111, max: 123}, // periodically we should update those values
major: {min: 113, max: 115}, // periodically we should update those values
minor: {static: 0},
patch: {variants: ['esr']},
}
Expand All @@ -64,9 +64,9 @@ 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: 96, max: 97}, // periodically we should update those values
major: {min: 98, max: 100}, // periodically we should update those values
minor: {static: 0},
patch: {min: 2889, max: 4480},
patch: {min: 2889, max: 4815},
build: {min: 24, max: 198},
}

Expand Down Expand Up @@ -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: 111, max: 113}, // periodically we should update those values
major: {min: 109, max: 114}, // periodically we should update those values
minor: {static: 0},
patch: {min: 1661, max: 1722},
patch: {min: 1518, max: 1823},
build: {min: 33, max: 62},
}

Expand Down

0 comments on commit c6328cb

Please sign in to comment.