angel3_container_generator 10.0.0
angel3_container_generator: ^10.0.0 copied to clipboard
Generates the reflection data Angel3's container needs to construct @injectable classes, so it works without dart:mirrors (e.g. in AOT-compiled apps).
Change Log #
10.0.0 #
Breaking changes in 10.0.0 #
- Breaking: Rewritten as a
build_runnerbuilder of reflection data for@injectableclasses and top-level functions, used throughStaticReflector, so thatContainer.make,@Exposecontrollers,@Hooks/@Middlewareandiocwork withoutdart:mirrors, also in AOT and obfuscated apps. It no longer depends onreflectable - Breaking: Removed
GeneratedReflector,ContainedReflectableandcontained. To migrate:- Replace
@containedwith@injectable(frompackage:angel3_container), and addpart '<file>.g.dart';to each library with such classes - Replace
reflectable_builderwithangel3_container_generatorandbuild_runnerindev_dependencies, and rundart run build_runner build - Replace
GeneratedReflector()withStaticReflector.combine([...]), passing each library's generated variable (e.g.servicesReflectionforservices.dart)
- Replace
- Breaking: Closures cannot be described:
iocon a closure needs an explicitinjection:
New in 10.0.0 #
- The data of a class lists its
supertypes(e.g. so aWebSocketControllerfinds inherited@ExposeWsmethods) getMemberreads public fields, getters and methods, declared or inherited, and returnsnoStaticMemberfor other names. Regenerate the data withdart run build_runner build
Fixes in 10.0.0 #
- Docs: The README tells how to install and use the package, and how to migrate from 9.x
9.1.0 #
- Require Dart >= 3.13
9.0.0 #
- Require Dart >= 3.12
8.4.0 #
- Require Dart >= 3.9
- Updated
lintsto 6.0.0 - Updated dependencies to the latest release
8.3.0 #
- Require Dart >= 3.6
- Updated
lintsto 5.0.0 - Updated dependencies to the latest release
8.2.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
8.1.1 #
- Updated repository link
8.1.0 #
- Updated
lintsto 3.0.0 - Fixed analyser warnings
8.0.0 #
- Require Dart >= 3.0
7.1.0-beta.1 #
- Require Dart >= 2.19
- Upgraded
relectableto 4.x.x
7.0.0 #
- Require Dart >= 2.17
6.0.0 #
- Require Dart >= 2.16
5.0.0 #
- Skipped release
4.0.0 #
- Skipped release
3.0.1 #
- Updated
package:angel3_container
3.0.0 #
- Fixed NNBD issues
- All 9 test cases passed
3.0.0-beta.1 #
- Migrated to support Dart >= 2.12 NNBD
- Updated linter to
package:lints - Updated to use
angel3_packages
2.0.0 #
- Migrated to work with Dart >= 2.12 Non NNBD
1.0.1 #
- Update for
pkg:angel_container@1.0.3.