Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- The URL is now shown as a log when opening browser windows.

## [4.1.0] - 2024-08-01

### Changed

- Pack toolbelt using nodejs 20
- Allow specific builder config to override the common config for pinned dependencies

Expand Down Expand Up @@ -2134,13 +2139,13 @@ I know you're excited, yeah, gimme a hug homie <3

**TL;DR:** You don't need to type the sandbox name on `watch` or set the cookies anymore.

#
#

**First big important note:** If you have any credentials cached, please `logout` and `login` again.

**Second big important note:** Delete the previous `vtex_workspace` and `vtex_sandbox` cookies that you have setted before.

#
#

- [`#58`](https://github.com/vtex/toolbelt/issues/58)
- [`#48`](https://github.com/vtex/toolbelt/issues/48) (closed due to deprecation)
Expand Down
5 changes: 5 additions & 0 deletions src/modules/featureFlag/featureFlagDecider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ import open from 'open'
import { ErrorReport } from '../../api/error/ErrorReport'
import { ErrorKinds } from '../../api/error/ErrorKinds'
import opn from 'opn'
import logger from '../../api/logger'
import chalk from 'chalk'

export async function switchOpen(url: string, options) {
try {
const configClient = ToolbeltConfig.createClient()
const { featureFlags } = await configClient.getGlobalConfig()

logger.info('Your browser should open automatically. You can also use the url below.')
logger.info(`${chalk.cyan(url)}`)

if (featureFlags.FEATURE_FLAG_NEW_OPEN_PACKAGE) {
return open(url, options)
}
Expand Down
Loading