v0.5.0

browserbase/stagehandv0.5.0Apr 28, 2023by ekzhang

AI Summary

This version redefines how the `--min-port` option functions, now respecting it even when the user specifies port 0. It introduces a new `--max-port` option to define the upper bound of the port range.

Key Highlights

  • `--min-port` now applies to default connections
  • New `--max-port` option added
  • Port 0 now resolves to a random port respecting min/max bounds

Breaking Changes

  • The `--min-port` option behavior has changed; it is no longer just a validation check but determines the range for random ports.

New Features

  • `--max-port` option
  • Updated random port selection logic

Full Release Notes

This version changes the behavior of bore in relation to the `--min-port` option. Now, when a minimum port is specified, any user that connects to bore by default (port: 0) will pick a random port that respects the value of the option. Previously the min port was only used as validation when the user connected with an explicitly specified `--port` variable, and the OS was queried for a free port instead.

This also lets us add a `--max-port` option, which was requested by multiple people.

## What's Changed
* Use random ports when port number is 0 by @ekzhang in https://github.com/ekzhang/bore/pull/79


**Full Changelog**: https://github.com/ekzhang/bore/compare/v0.4.1...v0.5.0