diff --git a/packages/static/CHANGELOG.md b/packages/static/CHANGELOG.md index e3b9925f..2171e60c 100644 --- a/packages/static/CHANGELOG.md +++ b/packages/static/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 4.0.2 + +* Updated README + ## 4.0.1 * Fixed NNBD related issues diff --git a/packages/static/README.md b/packages/static/README.md index 52ff6684..630067f0 100644 --- a/packages/static/README.md +++ b/packages/static/README.md @@ -1,14 +1,12 @@ # Angel3 Static Files Handler -[![version](https://img.shields.io/badge/pub-v4.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_static) +[![version](https://img.shields.io/badge/pub-v4.0.2-brightgreen)](https://pub.dev/packages/angel3_static) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/static/LICENSE) -This package supports serving static files such as html, css and js for [Angel3 framework](https://pub.dartlang.org/packages/angel3). - -*Can also handle `Range` requests now, making it suitable for media streaming, ex. music, video, etc.* +This library provides a virtual directory to serve static files such as html, css and js for [Angel3 framework](https://pub.dev/packages/angel3). It can also handle `Range` requests, making it suitable for media streaming, i.e. music, video, etc.* ## Installation diff --git a/packages/static/example/main.dart b/packages/static/example/main.dart index badf1245..638f2b93 100644 --- a/packages/static/example/main.dart +++ b/packages/static/example/main.dart @@ -35,6 +35,6 @@ void main(List args) async { app.fallback((req, res) => throw AngelHttpException.notFound()); var server = await http.startServer('127.0.0.1', 3000); - print('Serving from ${vDir.source!.path}'); + print('Serving from ${vDir.source.path}'); print('Listening at http://${server.address.address}:${server.port}'); } diff --git a/packages/static/pubspec.yaml b/packages/static/pubspec.yaml index 11bc1faa..9fc0a996 100644 --- a/packages/static/pubspec.yaml +++ b/packages/static/pubspec.yaml @@ -1,6 +1,6 @@ name: angel3_static -description: Static server middleware for Angel. Also capable of serving Range responses. -version: 4.0.1 +description: This library provides a virtual directory to serve static files for Angel3 framework. +version: 4.0.2 homepage: https://github.com/dukefirehawk/angel repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/static environment: