Release 1.10.1 - Expose correct port in onStarted() for random port launches

This commit is contained in:
Felix Blaschke
2025-05-02 23:23:30 +02:00
parent 4fc66ab265
commit 460759e3a7
4 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,8 @@
## 1.10.1
- Expose correct port in `onStarted()` if server is launched with random port (thanks to [rodolfogoulart](https://github.com/rodolfogoulart))
- Remove library name (following lint `unnecessary_library_name`)
## 1.10.0
- Upgraded dependencies (thanks to [pulyaevskiy](https://github.com/pulyaevskiy))

View File

@ -1,7 +1,3 @@
/// Shelf Plus is a quality of life addon for your server-side
/// development within the Shelf platform.
library shelf_plus;
export 'package:shelf/shelf.dart';
export 'package:shelf_router/shelf_router.dart';
export 'package:shelf_static/shelf_static.dart';

View File

@ -105,8 +105,7 @@ Future<HttpServer> _createServer(
if (onStarted == null) {
print('shelfRun HTTP service running on port ${server.port}');
} else {
port = server.port;
onStarted(address, port);
onStarted(address, server.port);
}
return server;
}

View File

@ -1,6 +1,6 @@
name: shelf_plus
description: Shelf Plus is a quality of life addon for your server-side development within the Shelf platform.
version: 1.10.0
version: 1.10.1
repository: https://github.com/felixblaschke/shelf_plus
environment: