From 67d5f183c1880e21c04b6e688eb4f5e22dbc4ebb Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Sat, 12 Oct 2024 03:39:20 -0700 Subject: [PATCH] Refactor: changing namespace, imports, re-branding --- packages/auth/CHANGELOG.md | 2 +- packages/auth/README.md | 6 ++-- packages/auth/lib/src/plugin.dart | 8 ++--- packages/auth/lib/src/strategy.dart | 2 +- packages/auth_oauth2/CHANGELOG.md | 4 +-- packages/auth_oauth2/README.md | 10 +++--- .../auth_oauth2/lib/angel3_auth_oauth2.dart | 2 +- packages/auth_twitter/CHANGELOG.md | 2 +- packages/cache/README.md | 6 ++-- packages/cache/lib/src/cache.dart | 2 +- packages/cache/lib/src/cache_service.dart | 2 +- packages/client/CHANGELOG.md | 4 +-- packages/client/README.md | 2 +- packages/client/lib/angel3_client.dart | 14 ++++---- packages/client/lib/base_angel_client.dart | 4 +-- packages/client/lib/browser.dart | 4 +-- packages/client/lib/flutter.dart | 4 +-- packages/client/lib/io.dart | 6 ++-- packages/client/package.json | 2 +- packages/configuration/CHANGELOG.md | 2 +- packages/configuration/pubspec.yaml | 2 +- packages/core/container/container/README.md | 2 +- packages/core/framework/CHANGELOG.md | 36 +++++++++---------- packages/core/framework/README.md | 2 +- .../framework/example/http2/public/app.js | 2 +- .../example/http2/public/body_parsing.html | 2 +- .../framework/example/http2/public/index.html | 2 +- packages/core/framework/example/json.dart | 2 +- packages/core/framework/example/main.dart | 4 +-- .../framework/lib/src/core/controller.dart | 2 +- .../core/framework/lib/src/core/driver.dart | 2 +- .../lib/src/core/request_context.dart | 6 ++-- .../lib/src/core/response_context.dart | 6 ++-- .../core/framework/lib/src/core/server.dart | 4 +-- .../core/framework/lib/src/core/service.dart | 2 +- .../framework/lib/src/http/angel_http.dart | 2 +- .../framework/lib/src/http2/angel_http2.dart | 2 +- .../core/framework/performance/hello/angel.md | 4 +-- .../framework/test/precontained_test.dart | 2 +- .../core/framework/test/routing_test.dart | 4 +-- packages/core/mocking/CHANGELOG.md | 2 +- packages/core/mocking/test/all_test.dart | 2 +- packages/core/route/README.md | 4 +-- packages/core/route/web/index.html | 4 +-- packages/cors/CHANGELOG.md | 2 +- packages/cors/lib/angel3_cors.dart | 2 +- packages/file_service/CHANGELOG.md | 2 +- packages/file_service/README.md | 4 +-- packages/file_service/pubspec.yaml | 2 +- packages/hot/CHANGELOG.md | 4 +-- packages/hot/README.md | 6 ++-- packages/hot/lib/angel3_hot.dart | 2 +- packages/html/CHANGELOG.md | 2 +- packages/html/README.md | 6 ++-- packages/html/pubspec.yaml | 2 +- packages/jael/angel_jael/CHANGELOG.md | 2 +- packages/jael/angel_jael/README.md | 8 ++--- packages/jael/angel_jael/lib/angel3_jael.dart | 2 +- packages/jael/angel_jael/pubspec.yaml | 2 +- .../jael_preprocessor/test/block_test.dart | 2 +- packages/jinja/README.md | 2 +- packages/jinja/lib/angel3_jinja.dart | 2 +- packages/markdown/CHANGELOG.md | 2 +- packages/markdown/README.md | 8 ++--- packages/mongo/CHANGELOG.md | 2 +- packages/mongo/README.md | 2 +- packages/mustache/CHANGELOG.md | 2 +- packages/mustache/README.md | 2 +- packages/oauth2/CHANGELOG.md | 2 +- packages/oauth2/README.md | 2 +- packages/oauth2/lib/src/exception.dart | 2 +- packages/oauth2/pubspec.yaml | 2 +- packages/orm/README.md | 6 ++-- .../angel_migration_runner/lib/src/cli.dart | 2 +- .../lib/angel3_orm_service.dart | 2 +- .../lib/src/standalone_test.dart | 2 +- packages/production/README.md | 2 +- packages/production/lib/src/runner.dart | 4 +-- packages/proxy/CHANGELOG.md | 2 +- packages/proxy/pubspec.yaml | 2 +- packages/redis/lib/src/redis_service.dart | 2 +- packages/rethinkdb/README.md | 2 +- packages/security/CHANGELOG.md | 2 +- packages/seo/CHANGELOG.md | 2 +- packages/seo/README.md | 6 ++-- packages/seo/example/web/index.html | 4 +-- packages/seo/test/inline_assets_test.dart | 4 +-- .../angel_serialize_generator/pubspec.yaml | 2 +- packages/shelf/CHANGELOG.md | 2 +- packages/shelf/README.md | 18 +++++----- packages/static/README.md | 2 +- packages/sync/CHANGELOG.md | 2 +- packages/test/CHANGELOG.md | 2 +- packages/test/README.md | 2 +- .../user_agent/angel_user_agent/CHANGELOG.md | 2 +- packages/validate/CHANGELOG.md | 4 +-- packages/validate/README.md | 2 +- packages/validate/lib/server.dart | 2 +- packages/websocket/CHANGELOG.md | 6 ++-- packages/websocket/README.md | 6 ++-- packages/websocket/example/index.html | 2 +- packages/websocket/lib/angel3_websocket.dart | 2 +- packages/websocket/lib/browser.dart | 4 +-- packages/websocket/lib/constants.dart | 4 +-- packages/websocket/lib/flutter.dart | 4 +-- packages/websocket/lib/io.dart | 4 +-- 106 files changed, 193 insertions(+), 193 deletions(-) diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index dd01834e..6dadefca 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -141,7 +141,7 @@ ## 2.0.0-alpha -* Depend on Dart 2 and Angel 2. +* Depend on Dart 2 and Protevus 2. * Remove `dart2_constant`. * Remove `requireAuth`. * Remove `userKey`, instead favoring generic parameters. diff --git a/packages/auth/README.md b/packages/auth/README.md index ea27ea8e..78234612 100644 --- a/packages/auth/README.md +++ b/packages/auth/README.md @@ -17,7 +17,7 @@ A complete authentication plugin for Protevus. Inspired by Passport. More detail Ensure you have read the [User Guide](https://angel3-docs.dukefirehawk.com/guides/authentication). ```dart -configureServer(Angel app) async { +configureServer(Protevus app) async { var auth = AngelAuth( serializer: (user) => user.id ?? '', deserializer: (id) => fetchAUserByIdSomehow(id @@ -27,7 +27,7 @@ configureServer(Angel app) async { // POST route to handle username+password app.post('/local', auth.authenticate('local')); - // Using Angel's asynchronous injections, we can parse the JWT + // Using Protevus's asynchronous injections, we can parse the JWT // on demand. It won't be parsed until we check. app.get('/profile', ioc((User user) { print(user.description); @@ -55,7 +55,7 @@ configureServer(Angel app) async { A frequent use case within SPA's is opening OAuth login endpoints in a separate window. [`angel3_client`](https://pub.dev/packages/angel3_client) provides a facility for this, which works perfectly with the default callback provided in this package. ```dart -configureServer(Angel app) async { +configureServer(Protevus app) async { var handler = auth.authenticate( 'facebook', AngelAuthOptions(callback: confirmPopupAuthentication())); diff --git a/packages/auth/lib/src/plugin.dart b/packages/auth/lib/src/plugin.dart index f263addd..5714d5a0 100644 --- a/packages/auth/lib/src/plugin.dart +++ b/packages/auth/lib/src/plugin.dart @@ -9,7 +9,7 @@ import 'auth_token.dart'; import 'options.dart'; import 'strategy.dart'; -/// Handles authentication within an Angel application. +/// Handles authentication within an Protevus application. class AngelAuth { final _log = Logger('AngelAuth'); @@ -95,7 +95,7 @@ class AngelAuth { _jwtLifeSpan = jwtLifeSpan.toInt(); } - /// Configures an Angel server to decode and validate JSON Web tokens on demand, + /// Configures an Protevus server to decode and validate JSON Web tokens on demand, /// whenever an instance of [User] is injected. Future configureServer(Protevus app) async { /* @@ -111,7 +111,7 @@ class AngelAuth { if (app.container == null) { _log.severe('Protevus container is null'); throw StateError( - 'Angel.container is null. All authentication will fail.'); + 'Protevus.container is null. All authentication will fail.'); } */ var appContainer = app.container; @@ -184,7 +184,7 @@ class AngelAuth { /// /// Now that `package:angel_framework` supports asynchronous injections, this middleware /// is no longer directly necessary. Instead, call [configureServer]. You can then use - /// `makeAsync`, or Angel's injections directly: + /// `makeAsync`, or Protevus's injections directly: /// /// ```dart /// var auth = AngelAuth(...); diff --git a/packages/auth/lib/src/strategy.dart b/packages/auth/lib/src/strategy.dart index ca76239a..394189a0 100644 --- a/packages/auth/lib/src/strategy.dart +++ b/packages/auth/lib/src/strategy.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:angel3_framework/angel3_framework.dart'; import 'options.dart'; -/// A function that handles login and signup for an Angel application. +/// A function that handles login and signup for an Protevus application. abstract class AuthStrategy { /// Authenticates or rejects an incoming user. FutureOr authenticate(RequestContext req, ResponseContext res, diff --git a/packages/auth_oauth2/CHANGELOG.md b/packages/auth_oauth2/CHANGELOG.md index d0bef9d8..7973db99 100644 --- a/packages/auth_oauth2/CHANGELOG.md +++ b/packages/auth_oauth2/CHANGELOG.md @@ -57,7 +57,7 @@ ## 2.1.0 -* Angel 2 + Dart 2 update +* Protevus 2 + Dart 2 update * Support for handling errors + rejections. * Use `ExternalAuthOptions`. @@ -67,7 +67,7 @@ ## 2.0.0 -* Angel 2 + Dart 2 updates. +* Protevus 2 + Dart 2 updates. ## 1.0.2 diff --git a/packages/auth_oauth2/README.md b/packages/auth_oauth2/README.md index 39ea9dd3..7e5f8491 100644 --- a/packages/auth_oauth2/README.md +++ b/packages/auth_oauth2/README.md @@ -12,7 +12,7 @@ Protevus library for authenticating users with remote identity providers via OAu First, create an options object: ```dart -configureServer(Angel app) async { +configureServer(Protevus app) async { // Load from a Map, i.e. app config: var opts = ExternalAuthOptions.fromMap(app.configuration['auth0'] as Map); @@ -55,7 +55,7 @@ OAuth2Verifier oauth2verifier(Service userService) { Now, initialize an `OAuth2Strategy`, using the options and verifier. You'll also need to provide a name for this instance of the strategy. Consider using the name of the remote authentication provider (ex. `facebook`). ```dart -configureServer(Angel app) { +configureServer(Protevus app) { auth.strategies['github'] = OAuth2Strategy( options, authorizationEndpoint, @@ -71,7 +71,7 @@ configureServer(Angel app) { } ``` -Lastly, connect it to an `AngelAuth` instance, and wire it up to an `Angel` server. Set up two routes: +Lastly, connect it to an `AngelAuth` instance, and wire it up to an `Protevus` server. Set up two routes: 1. Redirect users to the external provider 2. Acts as a callback and handles an access code @@ -79,7 +79,7 @@ Lastly, connect it to an `AngelAuth` instance, and wire it up to an `Angel` serv In the case of the callback route, you may want to display an HTML page that closes a popup window. In this case, use `confirmPopupAuthentication`, which is bundled with `package:angel3_auth`, as a `callback` function: ```dart -configureServer(Angel app) async { +configureServer(Protevus app) async { // ... var auth = AngelAuth(); auth.strategies['github'] = oauth2Strategy; @@ -103,7 +103,7 @@ configureServer(Angel app) async { This package should work out-of-the-box for most OAuth2 providers, such as Github or Dropbox. However, if your OAuth2 scopes are separated by a delimiter other than the default (`' '`), you can add it in the `OAuth2Strategy` constructor: ```dart -configureServer(Angel app) async { +configureServer(Protevus app) async { OAuth2Strategy(..., delimiter: ' '); } ``` diff --git a/packages/auth_oauth2/lib/angel3_auth_oauth2.dart b/packages/auth_oauth2/lib/angel3_auth_oauth2.dart index 6a16c6ad..9373ef2d 100644 --- a/packages/auth_oauth2/lib/angel3_auth_oauth2.dart +++ b/packages/auth_oauth2/lib/angel3_auth_oauth2.dart @@ -6,7 +6,7 @@ import 'package:angel3_framework/angel3_framework.dart'; import 'package:http_parser/http_parser.dart'; import 'package:oauth2/oauth2.dart' as oauth2; -/// An Angel [AuthStrategy] that signs users in via a third-party service that speaks OAuth 2.0. +/// An Protevus [AuthStrategy] that signs users in via a third-party service that speaks OAuth 2.0. class OAuth2Strategy implements AuthStrategy { /// A callback that uses the third-party service to authenticate a [User]. /// diff --git a/packages/auth_twitter/CHANGELOG.md b/packages/auth_twitter/CHANGELOG.md index 88a50978..a8dd5b15 100644 --- a/packages/auth_twitter/CHANGELOG.md +++ b/packages/auth_twitter/CHANGELOG.md @@ -30,7 +30,7 @@ ## 2.0.0 -* Angel 2 + Dart 2 suppport. +* Protevus 2 + Dart 2 suppport. * Use `package:twitter` instead of `package:twit`. * Add `TwitterAuthorizationException`. * Add `onError` callback. diff --git a/packages/cache/README.md b/packages/cache/README.md index 38662582..682fbbff 100644 --- a/packages/cache/README.md +++ b/packages/cache/README.md @@ -19,7 +19,7 @@ This can improve the performance of sending objects that are complex to serializ ```dart void main() async { - var app = Angel()..lazyParseBodies = true; + var app = Protevus()..lazyParseBodies = true; app.use( '/api/todos', @@ -49,7 +49,7 @@ Supports the `If-Modified-Since` header, as well as storing the contents of resp To initialize a simple cache: ```dart -Future configureServer(Angel app) async { +Future configureServer(Protevus app) async { // Simple instance. var cache = ResponseCache(); @@ -81,7 +81,7 @@ Call `invalidate` to remove a resource from a `ResponseCache`. Some servers expect a reverse proxy or caching layer to support `PURGE` requests. If this is your case, make sure to include some sort of validation (maybe IP-based) to ensure no arbitrary attacker can hack your cache: ```dart -Future configureServer(Angel app) async { +Future configureServer(Protevus app) async { app.addRoute('PURGE', '*', (req, res) { if (req.ip != '127.0.0.1') throw AngelHttpException.forbidden(); diff --git a/packages/cache/lib/src/cache.dart b/packages/cache/lib/src/cache.dart index 6038344a..5bb85223 100644 --- a/packages/cache/lib/src/cache.dart +++ b/packages/cache/lib/src/cache.dart @@ -4,7 +4,7 @@ import 'package:angel3_framework/angel3_framework.dart'; import 'package:pool/pool.dart'; import 'package:logging/logging.dart'; -/// A flexible response cache for Angel. +/// A flexible response cache for Protevus. /// /// Use this to improve real and perceived response of Web applications, /// as well as to memorize expensive responses. diff --git a/packages/cache/lib/src/cache_service.dart b/packages/cache/lib/src/cache_service.dart index 817ff027..0a3cfeea 100644 --- a/packages/cache/lib/src/cache_service.dart +++ b/packages/cache/lib/src/cache_service.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:collection/collection.dart'; import 'package:angel3_framework/angel3_framework.dart'; -/// An Angel [Service] that caches data from another service. +/// An Protevus [Service] that caches data from another service. /// /// This is useful for applications of scale, where network latency /// can have real implications on application performance. diff --git a/packages/client/CHANGELOG.md b/packages/client/CHANGELOG.md index 11a7b474..6243bc10 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -77,7 +77,7 @@ ## 2.0.0 * Deprecate `basePath` in favor of `baseUrl`. -* `Angel` now extends `http.Client`. +* `Protevus` now extends `http.Client`. * Deprecate `auth_types`. ## 2.0.0-alpha.2 @@ -92,7 +92,7 @@ ## 2.0.0-alpha * Depend on Dart 2. -* Depend on Angel 2. +* Depend on Protevus 2. * Remove `dart2_constant`. ## 1.2.0+2 diff --git a/packages/client/README.md b/packages/client/README.md index 7647090b..bc2794e2 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -16,7 +16,7 @@ import 'package:angel3_client/browser.dart'; import 'package:angel3_client/flutter.dart'; main() async { - Angel app = Rest("http://localhost:3000"); + Protevus app = Rest("http://localhost:3000"); } ``` diff --git a/packages/client/lib/angel3_client.dart b/packages/client/lib/angel3_client.dart index b033ac0e..1c5e358b 100644 --- a/packages/client/lib/angel3_client.dart +++ b/packages/client/lib/angel3_client.dart @@ -1,4 +1,4 @@ -/// Client library for the Angel framework. +/// Client library for the Protevus framework. library angel3_client; import 'dart:async'; @@ -17,9 +17,9 @@ typedef ProtevusConfigurer = FutureOr Function(Protevus app); /// doesn't work. typedef ProtevusDeserializer = T? Function(dynamic x); -/// Represents an Angel server that we are querying. +/// Represents an Protevus server that we are querying. abstract class Protevus extends http.BaseClient { - //final _log = Logger('Angel'); + //final _log = Logger('Protevus'); /// A mutable member. When this is set, it holds a JSON Web Token /// that is automatically attached to every request sent. @@ -72,7 +72,7 @@ abstract class Protevus extends http.BaseClient { /// Creates a [Service] instance that queries a given path on the server. /// - /// This expects that there is an Angel `Service` mounted on the server. + /// This expects that there is an Protevus `Service` mounted on the server. /// /// In other words, all endpoints will return [Data], except for the root of /// [path], which returns a [List]. @@ -104,7 +104,7 @@ abstract class Protevus extends http.BaseClient { {body, Map? headers, Encoding? encoding}); } -/// Represents the result of authentication with an Angel server. +/// Represents the result of authentication with an Protevus server. class ProtevusAuthResult { String? _token; final Map data = {}; @@ -150,7 +150,7 @@ class ProtevusAuthResult { } } -/// Queries a service on an Angel server, with the same API. +/// Queries a service on an Protevus server, with the same API. abstract class Service { /// Fired on `indexed` events. Stream> get onIndexed; @@ -170,7 +170,7 @@ abstract class Service { /// Fired on `removed` events. Stream get onRemoved; - /// The Angel instance powering this service. + /// The Protevus instance powering this service. Protevus get app; Future close(); diff --git a/packages/client/lib/base_angel_client.dart b/packages/client/lib/base_angel_client.dart index aa748c0d..00934309 100644 --- a/packages/client/lib/base_angel_client.dart +++ b/packages/client/lib/base_angel_client.dart @@ -28,14 +28,14 @@ ProtevusHttpException failure(Response response, } else { return ProtevusHttpException( message: message ?? - 'Unhandled exception while connecting to Angel backend.', + 'Unhandled exception while connecting to Protevus backend.', statusCode: response.statusCode, stackTrace: stack); } } catch (e, st) { return ProtevusHttpException( message: message ?? - 'Angel backend did not return JSON - an error likely occurred.', + 'Protevus backend did not return JSON - an error likely occurred.', statusCode: response.statusCode, stackTrace: stack ?? st); } diff --git a/packages/client/lib/browser.dart b/packages/client/lib/browser.dart index a9dc1a80..78449f26 100644 --- a/packages/client/lib/browser.dart +++ b/packages/client/lib/browser.dart @@ -1,4 +1,4 @@ -/// Browser client library for the Angel framework. +/// Browser client library for the Protevus framework. library angel_client.browser; import 'dart:async' @@ -11,7 +11,7 @@ import 'angel3_client.dart'; import 'base_angel_client.dart'; export 'angel3_client.dart'; -/// Queries an Angel server via REST. +/// Queries an Protevus server via REST. class Rest extends BaseProtevusClient { Rest(String basePath) : super(http.BrowserClient(), basePath); diff --git a/packages/client/lib/flutter.dart b/packages/client/lib/flutter.dart index 9394b400..e31384e7 100644 --- a/packages/client/lib/flutter.dart +++ b/packages/client/lib/flutter.dart @@ -1,4 +1,4 @@ -/// Flutter-compatible client library for the Angel framework. +/// Flutter-compatible client library for the Protevus framework. library angel_client.flutter; import 'dart:async'; @@ -6,7 +6,7 @@ import 'package:http/http.dart' as http; import 'base_angel_client.dart'; export 'angel3_client.dart'; -/// Queries an Angel server via REST. +/// Queries an Protevus server via REST. class Rest extends BaseProtevusClient { Rest(String basePath) : super(http.Client() as http.BaseClient, basePath); diff --git a/packages/client/lib/io.dart b/packages/client/lib/io.dart index 745a1b9a..3ca36f12 100644 --- a/packages/client/lib/io.dart +++ b/packages/client/lib/io.dart @@ -1,4 +1,4 @@ -/// Command-line client library for the Angel framework. +/// Command-line client library for the Protevus framework. library angel_client.cli; import 'dart:async'; @@ -10,7 +10,7 @@ import 'angel3_client.dart'; import 'base_angel_client.dart'; export 'angel3_client.dart'; -/// Queries an Angel server via REST. +/// Queries an Protevus server via REST. class Rest extends BaseProtevusClient { //final _log = Logger('REST'); final List _services = []; @@ -42,7 +42,7 @@ class Rest extends BaseProtevusClient { } } -/// Queries an Angel service via REST. +/// Queries an Protevus service via REST. class RestService extends BaseProtevusService { final _log = Logger('RestService'); diff --git a/packages/client/package.json b/packages/client/package.json index a1da32d9..83ea3fbe 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,7 +1,7 @@ { "name": "angel_client", "version": "1.0.0-dev", - "description": "Client library for the Angel framework.", + "description": "Client library for the Protevus framework.", "main": "build/angel_client.js", "jsnext:main": "lib/angel_client.js", "directories": { diff --git a/packages/configuration/CHANGELOG.md b/packages/configuration/CHANGELOG.md index d8827fd4..0de97c16 100644 --- a/packages/configuration/CHANGELOG.md +++ b/packages/configuration/CHANGELOG.md @@ -61,7 +61,7 @@ but instead throw an exception. ## 2.0.0 -* Use Angel 2. +* Use Protevus 2. ## 1.2.0-rc.0 diff --git a/packages/configuration/pubspec.yaml b/packages/configuration/pubspec.yaml index 27a8e4be..83185de9 100644 --- a/packages/configuration/pubspec.yaml +++ b/packages/configuration/pubspec.yaml @@ -1,6 +1,6 @@ name: angel3_configuration version: 8.2.0 -description: Automatic YAML application configuration loader for Angel 3, with .env support. +description: Automatic YAML application configuration loader for Protevus 3, with .env support. homepage: https://angel3-framework.web.app/ repository: https://github.com/dart-backend/protevus/tree/master/packages/configuration environment: diff --git a/packages/core/container/container/README.md b/packages/core/container/container/README.md index eff33d65..e531453a 100644 --- a/packages/core/container/container/README.md +++ b/packages/core/container/container/README.md @@ -32,7 +32,7 @@ A better IoC container for Protevus, ultimately allowing Protevus to be used wit void main() async { // Using Mirror Reflector - var app = Angel(reflector: MirrorsReflector()); + var app = Protevus(reflector: MirrorsReflector()); // Sales Controller app.container.registerSingleton(SalesController()); diff --git a/packages/core/framework/CHANGELOG.md b/packages/core/framework/CHANGELOG.md index 64eb5f29..c379fce2 100644 --- a/packages/core/framework/CHANGELOG.md +++ b/packages/core/framework/CHANGELOG.md @@ -195,7 +195,7 @@ handlers to run, even after the response was closed. ## 2.0.0 -* Angel 2! :protevus: :rocket: +* Protevus 2! :protevus: :rocket: ## 2.0.0-rc.10 @@ -247,7 +247,7 @@ the outputs of `before` events. * Log a warning when no `reflector` is provided. * Add `AngelEnvironment` class. - * Add `Angel.environment`. + * Add `Protevus.environment`. * Deprecated `app.isProduction` in favor of `app.environment.isProduction`. * Allow setting of `bodyAsObject`, `bodyAsMap`, or `bodyAsList` **exactly once**. * Resolve named singletons in `resolveInjection`. @@ -257,7 +257,7 @@ the outputs of `before` events. ## 2.0.0-alpha.24 * Add `AngelEnv` class to `core`. -* Deprecate `Angel.isProduction`, in favor of `AngelEnv`. +* Deprecate `Protevus.isProduction`, in favor of `AngelEnv`. ## 2.0.0-alpha.23 @@ -306,7 +306,7 @@ stable, there'll be a conversion, perhaps. * `RequestContext` now exposes a `Stream> get body` getter. * Calling `RequestContext.parseBody()` parses its contents. * Added `bodyAsMap`, `bodyAsList`, `bodyAsObject`, and `uploadedFiles` to `RequestContext`. - * Removed `Angel.keepRawRequestBuffers` and anything that had to do with buffering request bodies. + * Removed `Protevus.keepRawRequestBuffers` and anything that had to do with buffering request bodies. ## 2.0.0-alpha.14 @@ -319,15 +319,15 @@ stable, there'll be a conversion, perhaps. ## 2.0.0-alpha.12 * Remove `ResponseContext.sendFile`. -* Add `Angel.mimeTypeResolver`. +* Add `Protevus.mimeTypeResolver`. * Fix a bug where an unknown MIME type on `streamFile` would return a 500. ## 2.0.0-alpha.11 * Add `readMany` to `Service`. * Allow `ResponseContext.redirect` to take a `Uri`. -* Add `Angel.mountController`. -* Add `Angel.findServiceOf`. +* Add `Protevus.mountController`. +* Add `Protevus.findServiceOf`. * Roll in HTTP/2. See `pkg:angel_framework/http2.dart`. ## 2.0.0-alpha.10 @@ -379,10 +379,10 @@ stable, there'll be a conversion, perhaps. ## 2.0.0-alpha.1 -* Removed `Angel.injectEncoders`. +* Removed `Protevus.injectEncoders`. * Added `Providers.toJson`. * Moved `Providers.graphql` to `Providers.graphQL`. -* `Angel.optimizeForProduction` no longer calls `preInject`, +* `Protevus.optimizeForProduction` no longer calls `preInject`, as it does not need to. * Rename `ResponseContext.enableBuffer` to `ResponseContext.useBuffer`. @@ -409,15 +409,15 @@ stable, there'll be a conversion, perhaps. gone. * `HttpRequestContextImpl` and `HttpResponseContextImpl` were renamed to `HttpRequestContext` and `HttpResponseContext`. -* Lazy-parsing request bodies is now the default; `Angel.lazyParseBodies` was replaced - with `Angel.eagerParseRequestBodies`. -* `Angel.storeOriginalBuffer` -> `Angel.storeRawRequestBuffers`. +* Lazy-parsing request bodies is now the default; `Protevus.lazyParseBodies` was replaced + with `Protevus.eagerParseRequestBodies`. +* `Protevus.storeOriginalBuffer` -> `Protevus.storeRawRequestBuffers`. * The methods `lazyBody`, `lazyFiles`, and `lazyOriginalBuffer` on `ResponseContext` were all replaced with `parseBody`, `parseUploadedFiles`, and `parseRawRequestBuffer`, respectively. * Removed the synchronous equivalents of the above methods (`body`, `files`, and `originalBuffer`), as well as `query`. -* Removed `Angel.injections` and `RequestContext.injections`. -* Removed `Angel.inject` and `RequestContext.inject`. +* Removed `Protevus.injections` and `RequestContext.injections`. +* Removed `Protevus.inject` and `RequestContext.inject`. * Removed a dependency on `package:pool`, which also meant removing `AngelHttp.throttle`. * Remove the `RequestMiddleware` typedef; from now on, one should use `ResponseContext.end` exclusively to close responses. @@ -434,9 +434,9 @@ stable, there'll be a conversion, perhaps. * Removed `RequestContext.properties`. * Removed the defunct `debug` property where it still existed. * `Routable.use` now only accepts a `Service`. -* Removed `Angel.createZoneForRequest`. -* Removed `Angel.defaultZoneCreator`. -* Added all flags to the `Angel` constructor, ex. `Angel.eagerParseBodies`. +* Removed `Protevus.createZoneForRequest`. +* Removed `Protevus.defaultZoneCreator`. +* Added all flags to the `Protevus` constructor, ex. `Protevus.eagerParseBodies`. * Fix a bug where synchronous errors in `handleRequest` would not be caught. * `AngelHttp.useZone` now defaults to `false`. * `ResponseContext` now starts in streaming mode by default; the response buffer is opt-in, @@ -448,5 +448,5 @@ stable, there'll be a conversion, perhaps. * Removed the now-obsolete `ResponseContext.end`. * Removed the now-obsolete `ResponseContext.releaseCorrespondingRequest`. * `preInject` now takes a `Reflector` as its second argument. -* `Angel.reflector` defaults to `const EmptyReflector()`, disabling +* `Protevus.reflector` defaults to `const EmptyReflector()`, disabling reflection out-of-the-box. diff --git a/packages/core/framework/README.md b/packages/core/framework/README.md index d94a57aa..4ab542c1 100644 --- a/packages/core/framework/README.md +++ b/packages/core/framework/README.md @@ -74,7 +74,7 @@ The performance benchmark can be found at [TechEmpower Framework Benchmarks Round 21](https://www.techempower.com/benchmarks/#section=data-r21&test=composite) -### Migrating from Angel to Protevus +### Migrating from Protevus to Protevus Check out [Migrating to Protevus](https://angel3-docs.dukefirehawk.com/migration/protevus-2.x.x-to-angel3/migration-guide-3) diff --git a/packages/core/framework/example/http2/public/app.js b/packages/core/framework/example/http2/public/app.js index 036c6dc3..5b08ee98 100644 --- a/packages/core/framework/example/http2/public/app.js +++ b/packages/core/framework/example/http2/public/app.js @@ -7,7 +7,7 @@ window.onload = function() { $app.appendChild($h1); $app.appendChild($button); - $h1.textContent = '~Angel HTTP/2 server push~'; + $h1.textContent = '~Protevus HTTP/2 server push~'; $button.textContent = 'Change color'; $button.onclick = function() { diff --git a/packages/core/framework/example/http2/public/body_parsing.html b/packages/core/framework/example/http2/public/body_parsing.html index 941d21c1..8ad8a1a2 100644 --- a/packages/core/framework/example/http2/public/body_parsing.html +++ b/packages/core/framework/example/http2/public/body_parsing.html @@ -2,7 +2,7 @@ - Angel HTTP/2 + Protevus HTTP/2