v0.5.0

nextauthjs/next-authv0.5.0Apr 28, 2023by ekzhang

AI Summary

This release modifies the behavior of the `--min-port` option, allowing it to be respected when connecting with port `0`. Additionally, it introduces a new `--max-port` option to limit the range of available ports.

Key Highlights

  • Added `--max-port` option to limit port range.
  • Random ports now respect the `--min-port` setting.
  • Changed port validation logic to apply `--min-port` to implicit ports.

Breaking Changes

  • The behavior of `--min-port` has changed; it now applies to random ports (port 0) instead of only explicit ports.

New Features

  • New `--max-port` option for port range control.
  • Random port selection respecting `--min-port`.

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