gologin 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  Combined changelog for GoLogin node.js SDK
4
4
 
5
+ ## [3.0.2] 2026-07-29
6
+
7
+ ### Features
8
+
9
+ * Added `customChromeFrame` option to control writing `browser.custom_chrome_frame: false` into profile Preferences
10
+
11
+ ## [3.0.1] 2026-07-28
12
+
13
+ ### Fixes
14
+
15
+ * Fixed crash when profile user agent is malformed and `executablePath` is set
16
+
5
17
  ## [3.0.0] 2026-06-24
6
18
 
7
19
  ### Features
package/README.md CHANGED
@@ -22,7 +22,7 @@ Where is token? API token is <a href="https://app.gologin.com/#/personalArea/Tok
22
22
  ### Example
23
23
 
24
24
  ```js
25
- import { GologinApi } from './src/gologin-api.js';
25
+ import { GologinApi } from 'gologin';
26
26
 
27
27
  const GL = GologinApi({
28
28
  token: 'your token',
package/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export type GoLoginOptions = {
20
20
  proxyCheckAttempts?: number;
21
21
  autoUpdateBrowser?: boolean;
22
22
  checkBrowserUpdate?: boolean;
23
+ customChromeFrame?: boolean;
23
24
  };
24
25
 
25
26
  export type GoLoginStartResult = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "A high-level API to control Orbita browser over GoLogin API",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./src/index.js",
package/src/gologin.js CHANGED
@@ -78,6 +78,7 @@ export class GoLogin {
78
78
  this.newProxyOrbitaMajorVersion = 135;
79
79
  this.proxyCheckTimeout = options.proxyCheckTimeout || 13 * 1000;
80
80
  this.proxyCheckAttempts = options.proxyCheckAttempts || 3;
81
+ this.customChromeFrame = options.customChromeFrame;
81
82
 
82
83
  if (options.tmpdir) {
83
84
  this.tmpdir = options.tmpdir;
@@ -581,6 +582,13 @@ export class GoLogin {
581
582
 
582
583
  this.browserLang = isMAC ? 'en-US' : checkAutoLangResult;
583
584
  const prefsToWrite = Object.assign(preferences, { gologin });
585
+ if (this.customChromeFrame === false) {
586
+ prefsToWrite.browser = {
587
+ ...(prefsToWrite.browser || {}),
588
+ custom_chrome_frame: false,
589
+ };
590
+ }
591
+
584
592
  if (this.browserMajorVersion >= this.newProxyOrbitaMajorVersion && this.proxy?.mode !== 'none') {
585
593
  prefsToWrite.proxy = {
586
594
  mode: 'fixed_servers',
@@ -628,8 +636,13 @@ export class GoLogin {
628
636
 
629
637
  if (!this.browserMajorVersion) {
630
638
  const { userAgent } = profile.navigator;
631
- const [browserMajorVersion] = userAgent.split('Chrome/')[1].split('.');
632
- this.browserMajorVersion = Number(browserMajorVersion);
639
+ try {
640
+ const [browserMajorVersion] = userAgent.split('Chrome/')[1].split('.');
641
+ this.browserMajorVersion = Number(browserMajorVersion);
642
+ } catch (e) {
643
+ const latestVersionNumber = await this.getLatestBrowserVersion();
644
+ this.browserMajorVersion = latestVersionNumber;
645
+ }
633
646
 
634
647
  let executableDir = join(this.executablePath, '..');
635
648
  if (OS_PLATFORM === 'darwin') {