diff --git a/packages/security/CHANGELOG.md b/packages/security/CHANGELOG.md index 444ead67..e32f8924 100644 --- a/packages/security/CHANGELOG.md +++ b/packages/security/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 3.1.0 + +* Updated linter to `package:lints` + ## 3.0.1 * Run `dartfmt -w .` to correct the formating diff --git a/packages/security/LICENSE b/packages/security/LICENSE index b593ac86..df5e0635 100644 --- a/packages/security/LICENSE +++ b/packages/security/LICENSE @@ -1,21 +1,29 @@ -MIT License +BSD 3-Clause License -Copyright (c) 2021 dukefirehawk.com +Copyright (c) 2021, dukefirehawk.com +All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/security/README.md b/packages/security/README.md index e8244d6e..d01b2d27 100644 --- a/packages/security/README.md +++ b/packages/security/README.md @@ -1,12 +1,10 @@ # Angel3 Security -[![version](https://img.shields.io/badge/pub-v3.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_security) +![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_security?include_prereleases) [![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/master/packages/security/LICENSE) -[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/security/LICENSE) - -Angel3 middleware designed to enhance application security by patching common Web security -holes. +Angel3 middleware designed to enhance application security by patching common Web security holes. **This package is currently going through a major overhaul, for version 2.** diff --git a/packages/security/analysis_options.yaml b/packages/security/analysis_options.yaml index c230cee7..ea2c9e94 100644 --- a/packages/security/analysis_options.yaml +++ b/packages/security/analysis_options.yaml @@ -1,4 +1 @@ -include: package:pedantic/analysis_options.yaml -analyzer: - strong-mode: - implicit-casts: false \ No newline at end of file +include: package:lints/recommended.yaml \ No newline at end of file diff --git a/packages/security/example/cookie_signer.dart b/packages/security/example/cookie_signer.dart index d8430c54..16d0d9ad 100644 --- a/packages/security/example/cookie_signer.dart +++ b/packages/security/example/cookie_signer.dart @@ -4,7 +4,7 @@ import 'package:angel3_framework/angel3_framework.dart'; import 'package:angel3_framework/http.dart'; import 'package:angel3_security/angel3_security.dart'; import 'package:logging/logging.dart'; -import 'package:angel3_pretty_logging/angel3_pretty_logging.dart'; +import 'package:belatuk_pretty_logging/belatuk_pretty_logging.dart'; void main() async { // Logging boilerplate. diff --git a/packages/security/example/main.dart b/packages/security/example/main.dart index 96fc0902..2b863a99 100644 --- a/packages/security/example/main.dart +++ b/packages/security/example/main.dart @@ -2,7 +2,7 @@ import 'package:angel3_framework/angel3_framework.dart'; import 'package:angel3_framework/http.dart'; import 'package:angel3_security/angel3_security.dart'; import 'package:logging/logging.dart'; -import 'package:angel3_pretty_logging/angel3_pretty_logging.dart'; +import 'package:belatuk_pretty_logging/belatuk_pretty_logging.dart'; void main() async { // Logging boilerplate. diff --git a/packages/security/pubspec.yaml b/packages/security/pubspec.yaml index 91afdaea..4e12cc5f 100644 --- a/packages/security/pubspec.yaml +++ b/packages/security/pubspec.yaml @@ -1,18 +1,18 @@ name: angel3_security -version: 3.0.1 -description: Angel infrastructure for improving security, rate limiting, and more -homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/security +version: 3.1.0 +description: Angel3 infrastructure for improving security, rate limiting, and more +homepage: https://github.com/dukefirehawk/angel/tree/master/packages/security environment: sdk: '>=2.12.0 <3.0.0' dependencies: - angel3_framework: ^4.0.0 + angel3_framework: ^4.2.0 crypto: ^3.0.1 dev_dependencies: angel3_auth: ^4.0.0 - angel3_production: ^3.0.0 + angel3_production: ^3.1.0 angel3_redis: ^2.0.0 angel3_test: ^4.0.0 angel3_validate: ^4.0.0 - angel3_pretty_logging: ^3.0.0 - pedantic: ^1.11.1 - test: ^1.17.8 + belatuk_pretty_logging: ^4.0.0 + test: ^1.17.5 + lints: ^1.0.0