vsavkin
c11ca944d4
perf(ElementInjector): add a benchmark measuring the instantiation of element injectors without using reflection
2014-10-27 17:56:05 -04:00
vsavkin
e3b772425e
feat(ElementInjector): change ElementInjector to accept bindings or types
2014-10-27 17:56:05 -04:00
vsavkin
31831eee5e
feat(View): implement ProtoView.instantiate
2014-10-27 17:18:35 -04:00
vsavkin
79d270c3dd
feat(ElementInjector): add support for "special" objects
2014-10-27 14:14:56 -04:00
vsavkin
e3548b497f
feat(ElementInjector): implement ElementInjector
2014-10-27 10:16:50 -04:00
vsavkin
ea0df352be
feat(di): add metadata to Key
2014-10-27 10:04:12 -04:00
vsavkin
2a4b63b614
refactor(collection): use Map instead of Object
2014-10-18 17:50:55 -04:00
vsavkin
1f4caa8773
feat(benchmark): add a simple benchmark for the di module
2014-10-18 17:06:23 -04:00
vsavkin
2f732c6b84
docs(di): add docs to di module
2014-10-14 08:11:44 -04:00
vsavkin
1a7d5160f2
use Promise instead of Future
2014-10-12 17:47:52 -04:00
vsavkin
f524a89cb6
feat(injector): add support for default bindings
2014-10-12 17:29:02 -04:00
vsavkin
b71cd9f380
refactor(di): use boolean instead of bool
2014-10-12 17:15:58 -04:00
vsavkin
92b2559109
refactor(di): cleanup
2014-10-12 17:06:41 -04:00
vsavkin
c3d9b5c91e
refactor(di): simplify Injector API
2014-10-12 17:06:41 -04:00
vsavkin
f0870791f6
refactor(di): cleanup to make dartanalyzer happy
2014-10-12 17:06:41 -04:00
vsavkin
97667e2591
refactor(di): make use of optional parameters
2014-10-12 17:06:41 -04:00
vsavkin
3f3fb7017e
refactor(injector): implement support for nested bindings
2014-10-12 17:06:41 -04:00
vsavkin
0b60f8494d
style(di): add new lines
2014-10-12 17:06:41 -04:00
vsavkin
d313cac42f
refactor(injector): change toFactory to use reflector to construct dependencies
2014-10-12 17:06:40 -04:00
vsavkin
06a221671c
refactor(injector): cleanup
2014-10-12 17:06:40 -04:00
vsavkin
9b411372df
feat(injector): change injector to recover from errors
...
So it can instantiate an object after a failed attempt.
2014-10-12 17:06:40 -04:00
vsavkin
b9d03e6635
refactor(di): move Dependency from key.js to binding.js
2014-10-12 17:06:40 -04:00
Misko Hevery
a9896ed391
design: view instantiation test
2014-10-10 20:54:33 -07:00
Victor Berchet
5527a1b1a4
feature(change detection): implement barebone ChangeDetector
...
fixes #39
2014-10-08 11:11:56 +02:00
Vojta Jina
cfc5fdc60d
chore: use es6-module-loader
...
Switch Traceur to use modules=“instantiate” and use es6-module-loader.
This setup supports cyclic dependencies.
2014-10-07 17:35:22 -07:00
Chirayu Krishnappa
e4ce69dcc7
test(scanner): port the rest of the lexer tests from AngularDart
...
Closes #64
2014-10-07 16:47:50 -07:00
vsavkin
5162b3c0ca
refactor(reflector): cleanup
2014-10-07 10:42:27 -04:00
vsavkin
7d566adea0
style(reflector): formatting
2014-10-07 10:34:07 -04:00
vsavkin
187c4aa33c
refactor(injector): uses one instance of reflector instead of creating a new instance every time
2014-10-07 10:29:32 -04:00
vsavkin
ab4f86a0cb
refactor(injector): cleanup
2014-10-07 10:03:06 -04:00
vsavkin
ea22cc4c7a
refactor(injector): add @FIELD annotations to Key and Dependency
2014-10-07 09:39:52 -04:00
vsavkin
df09a7c817
refactor(injector): add bool and int annotations
2014-10-07 09:37:45 -04:00
vsavkin
971e31fcd3
feat(facade): add bool type
2014-10-07 09:37:23 -04:00
vsavkin
4e0c368c03
refactor(injector): remove DIError
2014-10-07 09:21:00 -04:00
vsavkin
62004e22e0
feat(injector): change injector to show the full path when error happens in a constructor (async)
2014-10-07 09:04:11 -04:00
vsavkin
e7666d0612
feat(injector): handle async cyclic dependencies
2014-10-06 16:24:12 -04:00
vsavkin
a0176273c5
feat(injector): implement InjectLazy
2014-10-06 15:03:05 -04:00
vsavkin
e02cdfe733
feat(injector): handle in-progress async construction
2014-10-06 15:03:05 -04:00
vsavkin
4d6c7481ad
feat(injector): handle construction errors
...
- Detect cyclic deps
- Handle initialization errors
2014-10-06 15:03:05 -04:00
vsavkin
14af5a0a42
feat(injector): implement async dependencies
2014-10-06 15:02:41 -04:00
vsavkin
a814d48bbc
refactor(injector): use @CONST to create the Inject annotation
2014-10-03 20:34:37 -04:00
vsavkin
f63a5dd158
refactor(injector): change reflector to collect the resolving path only when an error occurs
2014-10-03 19:54:53 -04:00
vsavkin
15305b6cd7
refactor(facade): instantiate a fixed length array
2014-10-03 16:31:12 -04:00
vsavkin
a85812f688
refactor(injector): rename humanize into stringify
2014-10-03 16:29:59 -04:00
vsavkin
b2199632c7
feat(injector): initial implementaion of dynamic injector
2014-10-03 15:35:33 -04:00
Misko Hevery
6c8da62c1b
fix: Enabled annotation support for Dart
2014-10-02 21:48:46 -07:00
Misko Hevery
cbd429640f
chore: remove hello test
2014-10-02 21:02:48 -07:00
Victor Berchet
089a2f1b62
feat(transpiler): constructor and typed field semantics
...
fixes #11 (constructor and typed field semantics)
fixes #42 (Should we infer class property types from ctor args ?)
fixes #17 (number (js) should map to num (dart))
Closes #45
2014-10-02 21:02:47 -07:00
Misko Hevery
fd0c2d8063
design: added selector interface
2014-10-02 20:39:27 -07:00
Tobias Bosch
33af1d0b39
chore(build): execute `pub get` only if a pubspec.yaml changed and run `dart analyzer` on all dart files
...
`pub get` is now only executed when the `pubspec.yaml` in the `modules`
folder is different than the `pubspec.yaml` in the `build/dart` folder.
Generates the file `build/dart/_analyzer.dart` that imports all modules
to run `dart analyzer` against all of them. The build will fail whenever
there are errors, warnings or hints in `dart analyzer`.
Changes the sources so that `dart analyzer` does not report any
error, warning or hint.
Closes #40
2014-10-02 16:10:08 -07:00