From daf6403479994ce2ff393d7fe25ec67f6f9015cd Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Mon, 23 Sep 2024 13:35:32 -0700 Subject: [PATCH] update(angel3): re-branding angel3 --- .continuerc.json | 2 +- .prompts/create.package.prompt | 2 +- .prompts/port.php.prompt | 2 +- packages/container/container/README.md | 10 +-- .../container/container_generator/README.md | 4 +- packages/exceptions/CHANGELOG.md | 2 +- packages/exceptions/README.md | 4 +- packages/framework/CHANGELOG.md | 64 +++++++++---------- packages/framework/README.md | 24 +++---- packages/framework/example/controller.dart | 2 +- packages/framework/example/handle_error.dart | 2 +- packages/framework/example/hostname.dart | 2 +- .../framework/example/http2/body_parsing.dart | 2 +- packages/framework/example/http2/main.dart | 2 +- .../framework/example/http2/server_push.dart | 2 +- packages/framework/example/main.dart | 2 +- packages/framework/example/map_service.dart | 2 +- packages/framework/lib/src/core/service.dart | 4 +- .../lib/src/http2/protevus_http2.dart | 8 +-- packages/framework/test/hooked_test.dart | 8 +-- .../framework/test/http2/adapter_test.dart | 10 +-- packages/mocking/CHANGELOG.md | 2 +- packages/mocking/README.md | 2 +- packages/model/README.md | 4 +- packages/model/pubspec.yaml | 2 +- packages/route/README.md | 8 +-- packages/route/pubspec.yaml | 2 +- packages/route/web/index.html | 4 +- 28 files changed, 92 insertions(+), 92 deletions(-) diff --git a/.continuerc.json b/.continuerc.json index e6dcd40..7442c33 100644 --- a/.continuerc.json +++ b/.continuerc.json @@ -1,5 +1,5 @@ { - "systemMessage": "You are a expert senior software engineer. You are highly proficient in HTML, CSS, JavaScript, PHP, Python, Perl, Dart, Flutter, SQL, Json, Yaml, MongoDB, MySQL, PostgreSQL, Docker, Kubernetes, Git, Github, Shell, Make, Melos, CI/CD, Firebase, Blockchain Development and Technologies with over 10+ years of experience in software and blockchain development. You are an expert in Laravel, Symfony, Codeigniter PHP frameworks Including, Conduit, Angel3, Serverpod, Riverpod, Vania, Nylo Dart frameworks. You are also an expert in writing unit test, regular expressions and project documentation. Your are also an expert at educating and teaching others what you know.", + "systemMessage": "You are a expert senior software engineer. You are highly proficient in HTML, CSS, JavaScript, PHP, Python, Perl, Dart, Flutter, SQL, Json, Yaml, MongoDB, MySQL, PostgreSQL, Docker, Kubernetes, Git, Github, Shell, Make, Melos, CI/CD, Firebase, Blockchain Development and Technologies with over 10+ years of experience in software and blockchain development. You are an expert in Laravel, Symfony, Codeigniter PHP frameworks Including, Conduit, Protevus, Serverpod, Riverpod, Vania, Nylo Dart frameworks. You are also an expert in writing unit test, regular expressions and project documentation. Your are also an expert at educating and teaching others what you know.", "completionOptions": { "maxTokens": 30000 }, diff --git a/.prompts/create.package.prompt b/.prompts/create.package.prompt index a73892f..7073674 100644 --- a/.prompts/create.package.prompt +++ b/.prompts/create.package.prompt @@ -2,7 +2,7 @@ temperature: 0.5 maxTokens: 30000 --- -You are an expert senior software engineer. You are highly proficient in HTML, CSS, JavaScript, PHP, Python, Perl, Dart, Flutter, SQL, JSON, YAML, MongoDB, MySQL, PostgreSQL, Docker, Kubernetes, Git, GitHub, Shell, Make, Melos, CI/CD, Firebase, Blockchain Development, and Technologies with over 10+ years of experience in software and blockchain development. You are an expert in Laravel, Symfony, CodeIgniter PHP frameworks, and Conduit, Angel3, Serverpod, Riverpod, Vania, Nylo Dart frameworks. You are also an expert in writing unit tests, regular expressions, and project documentation. Additionally, you excel at educating and teaching others. +You are an expert senior software engineer. You are highly proficient in HTML, CSS, JavaScript, PHP, Python, Perl, Dart, Flutter, SQL, JSON, YAML, MongoDB, MySQL, PostgreSQL, Docker, Kubernetes, Git, GitHub, Shell, Make, Melos, CI/CD, Firebase, Blockchain Development, and Technologies with over 10+ years of experience in software and blockchain development. You are an expert in Laravel, Symfony, CodeIgniter PHP frameworks, and Conduit, Protevus, Serverpod, Riverpod, Vania, Nylo Dart frameworks. You are also an expert in writing unit tests, regular expressions, and project documentation. Additionally, you excel at educating and teaching others. {{{ input }}} diff --git a/.prompts/port.php.prompt b/.prompts/port.php.prompt index 17e1a18..5366f43 100644 --- a/.prompts/port.php.prompt +++ b/.prompts/port.php.prompt @@ -2,7 +2,7 @@ temperature: 0.5 maxTokens: 30000 --- -You are an expert senior software engineer. You are highly proficient in HTML, CSS, JavaScript, PHP, Python, Perl, Dart, Flutter, SQL, JSON, YAML, MongoDB, MySQL, PostgreSQL, Docker, Kubernetes, Git, GitHub, Shell, Make, Melos, CI/CD, Firebase, Blockchain Development, and Technologies with over 10+ years of experience in software and blockchain development. You are an expert in Laravel, Symfony, CodeIgniter PHP frameworks, and Conduit, Angel3, Serverpod, Riverpod, Vania, Nylo Dart frameworks. You are also an expert in writing unit tests, regular expressions, and project documentation. Additionally, you excel at educating and teaching others. +You are an expert senior software engineer. You are highly proficient in HTML, CSS, JavaScript, PHP, Python, Perl, Dart, Flutter, SQL, JSON, YAML, MongoDB, MySQL, PostgreSQL, Docker, Kubernetes, Git, GitHub, Shell, Make, Melos, CI/CD, Firebase, Blockchain Development, and Technologies with over 10+ years of experience in software and blockchain development. You are an expert in Laravel, Symfony, CodeIgniter PHP frameworks, and Conduit, Protevus, Serverpod, Riverpod, Vania, Nylo Dart frameworks. You are also an expert in writing unit tests, regular expressions, and project documentation. Additionally, you excel at educating and teaching others. {{{ input }}} diff --git a/packages/container/container/README.md b/packages/container/container/README.md index a8a3fe2..aec7501 100644 --- a/packages/container/container/README.md +++ b/packages/container/container/README.md @@ -1,11 +1,11 @@ -# Angel3 Container +# Protevus Container ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_container?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/dart-backend/angel)](https://github.com/dart-backend/angel/tree/master/packages/container/angel_container/LICENSE) -A better IoC container for Angel3, ultimately allowing Angel3 to be used with or without `dart:mirrors` package. +A better IoC container for Protevus, ultimately allowing Protevus to be used with or without `dart:mirrors` package. ```dart import 'package:angel3_container/mirrors.dart'; @@ -32,14 +32,14 @@ A better IoC container for Angel3, ultimately allowing Angel3 to be used with or void main() async { // Using Mirror Reflector - var app = Angel(reflector: MirrorsReflector()); + var app = Protevus(reflector: MirrorsReflector()); // Sales Controller app.container.registerSingleton(SalesController()); await app.mountController(); - var http = AngelHttp(app); + var http = ProtevusHttp(app); var server = await http.startServer('localhost', 3000); - print("Angel3 server listening at ${http.uri}"); + print("Protevus server listening at ${http.uri}"); } ``` diff --git a/packages/container/container_generator/README.md b/packages/container/container_generator/README.md index 8666046..432ce12 100644 --- a/packages/container/container_generator/README.md +++ b/packages/container/container_generator/README.md @@ -1,11 +1,11 @@ -# Angel3 Container Generator +# Protevus Container Generator ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_container_generator?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/dart-backend/angel)](https://github.com/dart-backend/angel/tree/master/packages/container/angel3_container_generator/LICENSE) -An alternative container for Angel3 that uses `reflectable` package instead of `dart:mirrors` for reflection. However, `reflectable` has more limited relfection capabilities when compared to `dart:mirrors`. +An alternative container for Protevus that uses `reflectable` package instead of `dart:mirrors` for reflection. However, `reflectable` has more limited relfection capabilities when compared to `dart:mirrors`. ## Usage diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 1b7db3c..d365339 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -24,7 +24,7 @@ ## 6.0.0 * Require Dart >= 2.16 -* [**Breaking**] `error` for `AngelHttpException` is no longer mandatory +* [**Breaking**] `error` for `HttpException` is no longer mandatory ## 5.0.0 diff --git a/packages/exceptions/README.md b/packages/exceptions/README.md index 093ab5e..deb2aa1 100644 --- a/packages/exceptions/README.md +++ b/packages/exceptions/README.md @@ -1,8 +1,8 @@ -# Angel3 Http Exception +# Protevus Http Exception ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_http_exception?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/dart-backend/angel)](https://github.com/dart-backend/angel/tree/master/packages/http_exception/LICENSE) -Exception class that can be serialized to JSON and serialized to clients. Angel3's HTTP exception class. +Exception class that can be serialized to JSON and serialized to clients. Protevus's HTTP exception class. diff --git a/packages/framework/CHANGELOG.md b/packages/framework/CHANGELOG.md index 614dde5..fcb0343 100644 --- a/packages/framework/CHANGELOG.md +++ b/packages/framework/CHANGELOG.md @@ -20,8 +20,8 @@ ## 8.2.0 -* Add `addResponseHeader` to `AngelHttp` to add headers to HTTP default response -* Add `removeResponseHeader` to `AngelHttp` to remove headers from HTTP default response +* Add `addResponseHeader` to `ProtevusHttp` to add headers to HTTP default response +* Add `removeResponseHeader` to `ProtevusHttp` to remove headers from HTTP default response ## 8.1.1 @@ -80,7 +80,7 @@ ## 4.2.2 * Added `Date` to response header -* Updated `Server: Angel3` response header +* Updated `Server: Protevus` response header ## 4.2.1 @@ -103,7 +103,7 @@ ## 4.1.1 -* Updated link to `Angel3` home page +* Updated link to `Protevus` home page * Fixed pedantic warnings ## 4.1.0 @@ -138,7 +138,7 @@ ## 2.1.1 -* `AngelHttp.uri` now returns an empty `Uri` if the server is not listening. +* `ProtevusHttp.uri` now returns an empty `Uri` if the server is not listening. ## 2.1.0 @@ -150,7 +150,7 @@ therefore been bumped to `2.1.0`. ## 2.0.5-beta * Make `@Expose()` in `Controller` optional. -* Add `allowHttp1` to `AngelHttp2` constructors. +* Add `allowHttp1` to `ProtevusHttp2` constructors. * Add `deserializeBody` and `decodeBody` to `RequestContext`. * Add `HostnameRouter`, which allows for routing based on hostname. * Default to using `ThrowingReflector`, instead of `EmptyReflector`. This will give a more descriptive @@ -189,17 +189,17 @@ See more: `, instead of just `FutureOr`. +* ProtevusConfigurer is now `FutureOr`, instead of just `FutureOr`. * Use a `Container.has` check in `Driver.sendResponse`. * Remove unnecessary `new` and `const`. ## 2.0.0 -* Angel 2! :angel: :rocket: +* Protevus 2! :angel: :rocket: ## 2.0.0-rc.10 -* Fix an error that prevented `AngelHttp2.custom` from working properly. +* Fix an error that prevented `ProtevusHttp2.custom` from working properly. * Add `startSharedHttp2`. ## 2.0.0-rc.9 @@ -246,8 +246,8 @@ the outputs of `before` events. ## 2.0.0-rc.0 * Log a warning when no `reflector` is provided. -* Add `AngelEnvironment` class. - * Add `Angel.environment`. +* Add `ProtevusEnvironment` class. + * 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`. @@ -256,8 +256,8 @@ the outputs of `before` events. ## 2.0.0-alpha.24 -* Add `AngelEnv` class to `core`. -* Deprecate `Angel.isProduction`, in favor of `AngelEnv`. +* Add `ProtevusEnv` class to `core`. +* Deprecate `Protevus.isProduction`, in favor of `ProtevusEnv`. ## 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,21 +319,21 @@ 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 * All calls to `Service.parseId` are now affixed with the `` argument. -* Added `uri` getter to `AngelHttp`. +* Added `uri` getter to `ProtevusHttp`. * The default for `parseQuery` now wraps query parameters in `Map.from`. This resolves a bug in `package:angel_validate`. @@ -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`. @@ -398,7 +398,7 @@ stable, there'll be a conversion, perhaps. * Remove dependency on `package:dart2_constant`. * Moved `lib/hooks.dart` into `package:angel_hooks`. * Moved `TypedService` into `package:angel_typed_service`. -* Completely removed the `AngelBase` class. +* Completely removed the `ProtevusBase` class. * Removed all `@deprecated` symbols. * `Service.toId` was renamed to `Service.parseId`; it also now uses its single type argument to determine how to parse a value. \* In addition, this method was also made `static`. @@ -409,16 +409,16 @@ 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 a dependency on `package:pool`, which also meant removing `AngelHttp.throttle`. +* Removed `Protevus.injections` and `RequestContext.injections`. +* Removed `Protevus.inject` and `RequestContext.inject`. +* Removed a dependency on `package:pool`, which also meant removing `ProtevusHttp.throttle`. * Remove the `RequestMiddleware` typedef; from now on, one should use `ResponseContext.end` exclusively to close responses. * `waterfall` will now only accept `RequestHandler`. @@ -434,11 +434,11 @@ 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`. +* `ProtevusHttp.useZone` now defaults to `false`. * `ResponseContext` now starts in streaming mode by default; the response buffer is opt-in, as in many cases it is unnecessary and slows down response time. * `ResponseContext.streaming` was replaced by `ResponseContext.isBuffered`. @@ -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/framework/README.md b/packages/framework/README.md index b500f91..9d1ab8b 100644 --- a/packages/framework/README.md +++ b/packages/framework/README.md @@ -1,6 +1,6 @@ -# Angel3 Framework +# Protevus Framework -[![Angel3 Framework](../../angel3_logo.png)](https://github.com/dart-backend/angel) +[![Protevus Framework](../../angel3_logo.png)](https://github.com/dart-backend/angel) ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_framework?include_prereleases) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) @@ -8,9 +8,9 @@ [![License](https://img.shields.io/github/license/dart-backend/angel)](https://github.com/dart-backend/angel/tree/master/packages/framework/LICENSE) [![melos](https://img.shields.io/badge/maintained%20with-melos-f700ff.svg?style=flat-square)](https://github.com/invertase/melos) -Angel3 framework is a high-powered HTTP server with support for dependency injection, sophisticated routing, authentication, ORM, graphql etc. It is designed to keep the core minimal but extensible through a series of plugin packages. It won't dictate which features, databases or web templating engine to use. This flexibility enable Angel3 framework to grow with your application as new features can be added to handle the new use cases. +Protevus framework is a high-powered HTTP server with support for dependency injection, sophisticated routing, authentication, ORM, graphql etc. It is designed to keep the core minimal but extensible through a series of plugin packages. It won't dictate which features, databases or web templating engine to use. This flexibility enable Protevus framework to grow with your application as new features can be added to handle the new use cases. -This package is the core package of [Angel3](https://github.com/dart-backend/angel). For more information, visit us at [Angel3 Website](https://angel3-framework.web.app). +This package is the core package of [Protevus](https://github.com/dart-backend/angel). For more information, visit us at [Protevus Website](https://angel3-framework.web.app). ## Installation and Setup @@ -19,10 +19,10 @@ This package is the core package of [Angel3](https://github.com/dart-backend/ang 1. Download and install [Dart](https://dart.dev/get-dart) 2. Clone one of the following starter projects: - * [Angel3 Basic Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-basic) - * [Angel3 ORM Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-orm) - * [Angel3 ORM MySQL Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-orm-mysql) - * [Angel3 Graphql Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-graphql) + * [Protevus Basic Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-basic) + * [Protevus ORM Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-orm) + * [Protevus ORM MySQL Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-orm-mysql) + * [Protevus Graphql Template](https://github.com/dukefirehawk/boilerplates/tree/v7/angel3-graphql) 3. Run the project in development mode (*hot-reloaded* is enabled on file changes). @@ -38,11 +38,11 @@ This package is the core package of [Angel3](https://github.com/dart-backend/ang 5. Run as docker. Edit and build the image with the provided `Dockerfile` file. -### (Option 2) Create a new project with Angel3 CLI +### (Option 2) Create a new project with Protevus CLI 1. Download and install [Dart](https://dart.dev/get-dart) -2. Install the [Angel3 CLI](https://pub.dev/packages/angel3_cli): +2. Install the [Protevus CLI](https://pub.dev/packages/angel3_cli): ```bash dart pub global activate angel3_cli @@ -74,9 +74,9 @@ 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 Angel3 +### Migrating from Angel to Protevus -Check out [Migrating to Angel3](https://angel3-docs.dukefirehawk.com/migration/angel-2.x.x-to-angel3/migration-guide-3) +Check out [Migrating to Protevus](https://angel3-docs.dukefirehawk.com/migration/angel-2.x.x-to-angel3/migration-guide-3) ## Donation & Support diff --git a/packages/framework/example/controller.dart b/packages/framework/example/controller.dart index 40b6d92..ee1df8a 100644 --- a/packages/framework/example/controller.dart +++ b/packages/framework/example/controller.dart @@ -8,7 +8,7 @@ void main() async { Logger.root.onRecord.listen(print); // Create our server. - var app = Protevus(logger: Logger('angel'), reflector: MirrorsReflector()); + var app = Protevus(logger: Logger('protevus'), reflector: MirrorsReflector()); var http = ProtevusHttp(app); await app.mountController(); diff --git a/packages/framework/example/handle_error.dart b/packages/framework/example/handle_error.dart index d2c702a..0f6d2d0 100644 --- a/packages/framework/example/handle_error.dart +++ b/packages/framework/example/handle_error.dart @@ -7,7 +7,7 @@ import 'package:logging/logging.dart'; void main() async { var app = Protevus(reflector: MirrorsReflector()) - ..logger = (Logger('angel') + ..logger = (Logger('protevus') ..onRecord.listen((rec) { print(rec); if (rec.error != null) print(rec.error); diff --git a/packages/framework/example/hostname.dart b/packages/framework/example/hostname.dart index 2b5e8bf..0f6bd75 100644 --- a/packages/framework/example/hostname.dart +++ b/packages/framework/example/hostname.dart @@ -19,7 +19,7 @@ void main() async { hierarchicalLoggingEnabled = true; //Logger.root.onRecord.listen(prettyLog); - var app = Protevus(logger: Logger('angel')); + var app = Protevus(logger: Logger('protevus')); var http = ProtevusHttp(app); var multiHost = HostnameRouter.configure({ 'api.localhost:3000': apiConfigurer, diff --git a/packages/framework/example/http2/body_parsing.dart b/packages/framework/example/http2/body_parsing.dart index dfb1c46..8385f18 100644 --- a/packages/framework/example/http2/body_parsing.dart +++ b/packages/framework/example/http2/body_parsing.dart @@ -7,7 +7,7 @@ import 'package:logging/logging.dart'; void main() async { var app = Protevus(); - app.logger = Logger('angel') + app.logger = Logger('protevus') ..onRecord.listen((rec) { print(rec); if (rec.error != null) print(rec.error); diff --git a/packages/framework/example/http2/main.dart b/packages/framework/example/http2/main.dart index b18d32a..d661bc0 100644 --- a/packages/framework/example/http2/main.dart +++ b/packages/framework/example/http2/main.dart @@ -11,7 +11,7 @@ void main() async { 'gzip': gzip.encoder, 'deflate': zlib.encoder, }); - app.logger = Logger('angel')..onRecord.listen(dumpError); + app.logger = Logger('protevus')..onRecord.listen(dumpError); app.get('/', (req, res) => 'Hello HTTP/2!!!'); diff --git a/packages/framework/example/http2/server_push.dart b/packages/framework/example/http2/server_push.dart index 0108338..7dc5dab 100644 --- a/packages/framework/example/http2/server_push.dart +++ b/packages/framework/example/http2/server_push.dart @@ -7,7 +7,7 @@ import 'package:logging/logging.dart'; void main() async { var app = Protevus(); - app.logger = Logger('angel') + app.logger = Logger('protevus') ..onRecord.listen((rec) { print(rec); if (rec.error != null) print(rec.error); diff --git a/packages/framework/example/main.dart b/packages/framework/example/main.dart index c5157b1..cdb64e0 100644 --- a/packages/framework/example/main.dart +++ b/packages/framework/example/main.dart @@ -9,7 +9,7 @@ void main() async { // Create our server. var app = Protevus( - logger: Logger('angel'), + logger: Logger('protevus'), reflector: MirrorsReflector(), ); diff --git a/packages/framework/example/map_service.dart b/packages/framework/example/map_service.dart index 14c0364..62a25b2 100644 --- a/packages/framework/example/map_service.dart +++ b/packages/framework/example/map_service.dart @@ -9,7 +9,7 @@ void main() async { // Create our server. var app = Protevus( - logger: Logger('angel'), + logger: Logger('protevus'), reflector: MirrorsReflector(), ); diff --git a/packages/framework/lib/src/core/service.dart b/packages/framework/lib/src/core/service.dart index c070f90..92a0cc5 100644 --- a/packages/framework/lib/src/core/service.dart +++ b/packages/framework/lib/src/core/service.dart @@ -77,8 +77,8 @@ class Service extends Routable { return _app!; } - set app(Protevus angel) { - _app = angel; + set app(Protevus protevus) { + _app = protevus; } bool get isAppActive => _app != null; diff --git a/packages/framework/lib/src/http2/protevus_http2.dart b/packages/framework/lib/src/http2/protevus_http2.dart index a068194..7a7844f 100644 --- a/packages/framework/lib/src/http2/protevus_http2.dart +++ b/packages/framework/lib/src/http2/protevus_http2.dart @@ -158,13 +158,13 @@ class ProtevusHttp2 extends Driver implements ServerSocket { - final _ProtevusHttp2ServerSocket angel; + final _ProtevusHttp2ServerSocket protevus; final _ctrl = StreamController(); - _FakeServerSocket(this.angel); + _FakeServerSocket(this.protevus); @override - InternetAddress get address => angel.address; + InternetAddress get address => protevus.address; @override Future close() async { @@ -173,7 +173,7 @@ class _FakeServerSocket extends Stream implements ServerSocket { } @override - int get port => angel.port; + int get port => protevus.port; @override StreamSubscription listen(void Function(Socket event)? onData, diff --git a/packages/framework/test/hooked_test.dart b/packages/framework/test/hooked_test.dart index 532f319..b9b28fb 100644 --- a/packages/framework/test/hooked_test.dart +++ b/packages/framework/test/hooked_test.dart @@ -83,7 +83,7 @@ void main() { ..listen((HookedServiceEvent event) async { // Hooks can be Futures ;) event.cancel([ - {'angel': 'framework'} + {'protevus': 'framework'} ]); }) ..listen((HookedServiceEvent event) { @@ -93,13 +93,13 @@ void main() { var response = await client.get(Uri.parse('$url/todos')); print(response.body); var result = json.decode(response.body) as List; - expect(result[0]['angel'], equals('framework')); + expect(result[0]['protevus'], equals('framework')); }); test('asStream() fires', () async { var stream = todoService.afterCreated.asStream(); - await todoService.create({'angel': 'framework'}); - expect(await stream.first.then((e) => e.result['angel']), 'framework'); + await todoService.create({'protevus': 'framework'}); + expect(await stream.first.then((e) => e.result['protevus']), 'framework'); }); test('metadata', () async { diff --git a/packages/framework/test/http2/adapter_test.dart b/packages/framework/test/http2/adapter_test.dart index 4dce717..4cca958 100644 --- a/packages/framework/test/http2/adapter_test.dart +++ b/packages/framework/test/http2/adapter_test.dart @@ -33,7 +33,7 @@ void main() { app = Protevus(reflector: MirrorsReflector()) ..encoders['gzip'] = gzip.encoder; hierarchicalLoggingEnabled = true; - app.logger = Logger.detached('angel.http2') + app.logger = Logger.detached('protevus.http2') ..onRecord.listen((rec) { print(rec); if (rec.error == null) return; @@ -53,7 +53,7 @@ void main() { app.get('/stream', (req, res) => jfkStream().pipe(res)); app.get('/headers', (req, res) async { - res.headers.addAll({'foo': 'bar', 'x-angel': 'http2'}); + res.headers.addAll({'foo': 'bar', 'x-protevus': 'http2'}); await res.close(); }); @@ -184,7 +184,7 @@ void main() { test('headers sent', () async { var response = await client.get(serverRoot.replace(path: '/headers')); expect(response.headers['foo'], 'bar'); - expect(response.headers['x-angel'], 'http2'); + expect(response.headers['x-protevus'], 'http2'); }); test('server push', () async { @@ -288,7 +288,7 @@ void main() { rq.fields['foo'] = 'bar'; rq.files.add(http.MultipartFile( 'file', Stream.fromIterable([utf8.encode('hello world')]), 11, - contentType: MediaType('angel', 'framework'))); + contentType: MediaType('protevus', 'framework'))); var response = await client.send(rq); var responseBody = await response.stream.transform(utf8.decoder).join(); @@ -297,7 +297,7 @@ void main() { responseBody, json.encode([ 11, - 'angel/framework', + 'protevus/framework', {'foo': 'bar'} ])); }); diff --git a/packages/mocking/CHANGELOG.md b/packages/mocking/CHANGELOG.md index 14cbc25..bf99dfd 100644 --- a/packages/mocking/CHANGELOG.md +++ b/packages/mocking/CHANGELOG.md @@ -75,4 +75,4 @@ ## 1.0.3 * Dart2 fixes -* Apparently fix hangs that break Angel tests +* Apparently fix hangs that break Protevus tests diff --git a/packages/mocking/README.md b/packages/mocking/README.md index cc2abe1..048d51c 100644 --- a/packages/mocking/README.md +++ b/packages/mocking/README.md @@ -9,7 +9,7 @@ Manufacture dart:io HttpRequests, HttpResponses, HttpHeaders, etc. This makes it possible to test server-side Dart applications without having to ever bind to a port. -This package was originally designed to make testing [Angel3](https://angel3-framework.web.app/) applications smoother, but works with any Dart-based server. +This package was originally designed to make testing [Protevus](https://angel3-framework.web.app/) applications smoother, but works with any Dart-based server. ## Usage diff --git a/packages/model/README.md b/packages/model/README.md index 3315f1a..ad5d520 100644 --- a/packages/model/README.md +++ b/packages/model/README.md @@ -1,11 +1,11 @@ -# Angel3 Data Model +# Protevus Data Model ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_model?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/dart-backend/angel)](https://github.com/dart-backend/angel/tree/master/packages/model/LICENSE) -The basic data models for Angel3 framework. +The basic data models for Protevus framework. ```dart import 'package:angel3_model/angel3_model.dart'; diff --git a/packages/model/pubspec.yaml b/packages/model/pubspec.yaml index d1f4ebc..a179cb4 100644 --- a/packages/model/pubspec.yaml +++ b/packages/model/pubspec.yaml @@ -1,6 +1,6 @@ name: platform_model version: 9.0.0 -description: Angel3 basic data model class, no longer with the added weight of the whole framework. +description: Protevus basic data model class, no longer with the added weight of the whole framework. homepage: https://angel3-framework.web.app/ repository: https://github.com/dart-backend/angel/tree/master/packages/model environment: diff --git a/packages/route/README.md b/packages/route/README.md index 0b125db..2ad330e 100644 --- a/packages/route/README.md +++ b/packages/route/README.md @@ -1,4 +1,4 @@ -# Angel3 Route +# Protevus Route ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_route?include_prereleases) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) @@ -9,11 +9,11 @@ A powerful, isomorphic routing library for Dart. `angel3_route` exposes a routing system that takes the shape of a tree. This tree structure can be easily navigated, in a fashion somewhat similar to a filesystem. The `Router` API is a very straightforward interface that allows for your code to take a shape similar to the route tree. Users of Laravel and Express will be very happy. -`angel3_route` does not require the use of [Angel 3](https://pub.dev/packages/angel3_framework), and has minimal dependencies. Thus, it can be used in any application, regardless of framework. This includes Web apps, Flutter apps, CLI apps, and smaller servers which do not need all the features of the Angel framework. +`angel3_route` does not require the use of [Protevus 3](https://pub.dev/packages/angel3_framework), and has minimal dependencies. Thus, it can be used in any application, regardless of framework. This includes Web apps, Flutter apps, CLI apps, and smaller servers which do not need all the features of the Protevus framework. ## Contents -- [Angel3 Route](#angel3-route) +- [Protevus Route](#angel3-route) - [Contents](#contents) - [Examples](#examples) - [Routing](#routing) @@ -26,7 +26,7 @@ A powerful, isomorphic routing library for Dart. ### Routing -If you use [Angel3](https://pub.dev/packages/angel3_framework), every `Angel` instance is a `Router` in itself. +If you use [Protevus](https://pub.dev/packages/angel3_framework), every `Protevus` instance is a `Router` in itself. ```dart void main() { diff --git a/packages/route/pubspec.yaml b/packages/route/pubspec.yaml index 716766d..f43ca86 100644 --- a/packages/route/pubspec.yaml +++ b/packages/route/pubspec.yaml @@ -1,6 +1,6 @@ name: platform_route version: 9.0.0 -description: A powerful, isomorphic routing library for Dart. It is mainly used in the Angel3 framework, but can be used in Flutter and on the Web. +description: A powerful, isomorphic routing library for Dart. It is mainly used in the Protevus framework, but can be used in Flutter and on the Web. homepage: https://angel3-framework.web.app/ repository: https://github.com/dart-backend/angel/tree/master/packages/route environment: diff --git a/packages/route/web/index.html b/packages/route/web/index.html index 4806c9a..aab2766 100644 --- a/packages/route/web/index.html +++ b/packages/route/web/index.html @@ -3,10 +3,10 @@ - Angel Route Samples + Protevus Route Samples -

Angel Route Samples

+

Protevus Route Samples