94 Commits

Author SHA1 Message Date
460759e3a7 Release 1.10.1 - Expose correct port in onStarted() for random port launches 2025-05-02 23:23:30 +02:00
4fc66ab265 Merge pull request #43 from rodolfogoulart/main
update the port, in case server port is random
2025-05-02 23:18:17 +02:00
f59b241d4f update the port, in case server port is random
in case user wants the random port.
using 0 give the next free port on the system.
2025-05-02 16:57:41 -03:00
ab2c7ebb79 Release 1.10.0 1.10.0 2024-11-10 21:18:59 +01:00
b48fad22df 1.9.2 Use thread-safe print on startup 2024-04-16 21:33:46 +02:00
b9cdd3d3d1 Merge pull request #38 from 0rzech/print-in-shelf-run
Revert "use stdout.println instead of print"
2024-04-16 21:23:55 +02:00
fb5b5fd98b Revert "use stdout.println instead of print"
This reverts commit 79bc7c6a05, because `writeln`
is not thread-safe. See https://github.com/dart-lang/sdk/issues/55345 for more
details.
2024-04-16 15:25:33 +02:00
d74cf2cef3 Release 1.9.1 2024-03-27 20:21:57 +01:00
b3fefe15fd Fix cors example 2024-03-27 20:21:29 +01:00
5b2750e784 upgrade dependencies - version 1.9 2024-02-23 19:36:04 +01:00
1c3b2b4a9f release version 1.8.0 2024-02-23 19:05:05 +01:00
88f3f0e337 Release 1.7.0 1.7.0 2023-02-26 21:16:57 +01:00
fadc601b66 Merge pull request #30 from omegaui/main
📢 Added `onWillClose` and `onClosed` callbacks!
2023-02-26 20:11:33 +01:00
df82036a78 📢 Fixed Tests! 2023-02-26 17:21:55 +05:30
1542a82629 📢 Dart formatted shelf_run_test.dart! 2023-02-26 17:17:30 +05:30
02e538a322 📢 Added onWillClose and onClosed callbacks! 2023-02-26 17:13:46 +05:30
16e33d9d40 Release 1.6.0 1.6.0 2023-02-21 18:56:33 +01:00
9b7a38283e Polish for onStartFailed 2023-02-21 18:48:13 +01:00
b5826a821f Merge pull request #28 from omegaui/main
Implemented `onStartFailed` call back in `shelf_run.dart`.
2023-02-21 16:31:52 +01:00
10d8102264 📢 Added Tests and Updated according to the code review! 2023-02-21 20:06:00 +05:30
e5d2cf5286 🚀 Implemented OnStartFailed call back in shelf_run.dart.
Hey There!
This commit adds support for `onStartFailed` call back in `shelfRun()` function.
This enables us to know if the server was crashed due to any `SocketException` that occurs during Initialization.
Since, `shelfRun` process is an asynchronized  operation, it was not externally possible to handle the exception that occurs during initializatiion.
But this commit, enables you to handle it via the `onStartFailed` call back!
Heres, an example call:
```dart
void main(){
    shelfRun(init, onStartFailed: (e) => print("An error occured during server initilization"));
}
```
2023-02-21 11:24:07 +05:30
773997f769 Update dependencies 1.5.1 2023-01-10 19:35:25 +01:00
795a0ffb60 Add example for middleware usage 2023-01-10 19:31:46 +01:00
2ebf6b45a6 Run dart fmt 1.5.0 2022-09-09 21:11:58 +02:00
abd04f5c2e Release 1.5.0 2022-09-09 21:10:09 +02:00
e60f2901f1 Changed implementation of applying global middlewares to better scope to a router 2022-09-09 21:09:56 +02:00
dac8b2bc37 Merge pull request #23 from davidmartos96/middlewares_bug
Add test for nested ShelfPlusApp with middlewares
2022-09-09 20:17:26 +02:00
9b7a9d76c4 Add test for nested ShelfPlusApp with middlewares 2022-09-08 23:53:25 +02:00
f849997619 Release 1.4.1 1.4.1 2022-08-31 17:36:38 +02:00
132a03d55d Remove unused import 2022-08-31 17:28:28 +02:00
3ec7c6f12c Merge pull request #22 from HosamHasanRamadan/onstart_custom_function
add on start custom function
2022-08-31 17:23:34 +02:00
833637b6cb update test case for onStarted , hot reload on 2022-08-31 15:48:03 +02:00
0333803d89 add unit tests for onStarted callback 2022-08-26 18:55:07 +02:00
40db20e059 change on start callback name to 'OnStarted' 2022-08-26 17:15:50 +02:00
8ed7f4a81b add on start custom function 2022-08-26 16:26:13 +02:00
db8203c35f next version 1.4.0 2022-06-20 22:13:07 +02:00
4d57706546 readme formatting 2022-06-20 22:13:02 +02:00
15f1d490bb Merge branch 'main' of https://github.com/felixblaschke/shelf_plus 2022-06-20 22:09:25 +02:00
46dbed394c Merge pull request #17 from ilkanimal/main
change defaultBindAddress type
2022-06-20 22:08:47 +02:00
c11414f64d change defaultBindAddress type 2022-06-20 22:00:56 +03:00
82ad8e2bc1 changelog 2022-06-18 09:04:06 +02:00
d5aa6d634b upgrade code base to Dart 2.17 2022-06-18 09:03:25 +02:00
ec86cbb08b apply linter rule 2022-06-18 09:01:48 +02:00
c9e731b575 update changelog 2022-06-18 08:50:34 +02:00
79bc7c6a05 use stdout.println instead of print 2022-06-18 08:50:23 +02:00
99440102ba dart format 2022-06-18 08:47:37 +02:00
23df7c24f1 Merge branch 'feature_security_context' 2022-06-18 08:47:01 +02:00
fd4bd090e6 Merge pull request #16 from mjablecnik/main
Add securityContext
2022-06-18 08:37:01 +02:00
73773bf8d8 Add securityContext 2022-06-17 08:36:53 +02:00
f184f47715 Fixed middleware handling for undefined routes 1.2.3 2022-06-07 20:17:18 +02:00