angular/packages/compiler/src
Alex Rickabaugh f755db78dc fix(core): require factory to be provided for shakeable InjectionToken (#22207)
InjectionToken can be created with an ngInjectableDef, and previously
this allowed the full expressiveness of @Injectable. However, this
requires a runtime reflection system in order to generate factories
from expressed provider declarations.

Instead, this change requires scoped InjectionTokens to provide the
factory directly (likely using inject() for the arguments), bypassing
the need for a reflection system.

Fixes #22205

PR Close #22207
2018-02-15 16:16:16 -08:00
..
aot feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
compiler_util feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
css_parser fix(compiler): Update types for TypeScript nullability support 2017-04-10 15:26:33 -06:00
expression_parser fix(compiler): make unary plus operator consistent to JavaScript (#22154) 2018-02-13 13:04:30 -08:00
i18n fix(compiler): add support for marker tags in xliff serializers (#21250) 2018-01-17 17:02:09 -08:00
jit feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
ml_parser fix(compiler): skip   when trimming / removing whitespaces (#19310) 2017-09-25 13:33:31 -07:00
output fix(ivy): add names to function expressions (#21714) 2018-01-23 13:33:48 -08:00
render3 refactor(ivy): rename bindX() functions to interpolationX() (#22229) 2018-02-15 14:20:53 -08:00
schema refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
template_parser feat(compiler): mark @NgModules in provider lists for identification at runtime (#22005) 2018-02-12 14:34:59 -08:00
view_compiler feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
assertions.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
ast_path.ts refactor(compiler-cli): move the expression expression type checker (#16562) 2017-05-09 16:16:50 -07:00
chars.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
compile_metadata.ts feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
compile_reflector.ts feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
compiler.ts feat(compiler-cli): reflect static methods added to classes in metadata (#21926) 2018-02-01 08:30:58 -08:00
config.ts fix(compiler): don't overwrite missingTranslation's value in JIT (#19952) 2017-11-03 11:08:39 -07:00
constant_pool.ts fix(ivy): fix issues found producing "Hello, World" example (#21790) 2018-01-27 10:50:13 -08:00
core.ts feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
directive_normalizer.ts refactor(compiler): remove stale metadata classes for animations 2017-10-04 16:20:55 -07:00
directive_resolver.ts feat(compiler): narrow types of expressions used in *ngIf (#20702) 2017-12-08 10:24:26 -08:00
identifiers.ts feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
injectable_compiler.ts fix(core): require factory to be provided for shakeable InjectionToken (#22207) 2018-02-15 16:16:16 -08:00
lifecycle_reflector.ts refactor(compiler): don’t rely on global reflector (#16832) 2017-05-23 10:41:23 -06:00
metadata_resolver.ts feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
ng_module_compiler.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
ng_module_resolver.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
parse_util.ts feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
pipe_resolver.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
provider_analyzer.ts feat: change @Injectable() to support tree-shakeable tokens (#22005) 2018-02-12 14:34:59 -08:00
resource_loader.ts refactor(compiler): allow sync AOT compilation (#16832). 2017-05-23 10:41:23 -06:00
selector.ts feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
shadow_css.ts fix(compiler): Don't strip /*# sourceURL ... */ (#16088) 2018-01-24 12:35:30 -08:00
style_compiler.ts fix(compiler): various squashed fixes for the new ngc 2017-09-25 13:36:00 -07:00
style_url_resolver.ts fix(compiler): Don't strip CSS source maps 2017-08-15 16:30:09 -07:00
summary_resolver.ts fix(compiler): allow to use flat modules and summaries 2017-09-28 14:20:20 -07:00
url_resolver.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00
util.ts feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
version.ts refactor(compiler): split compiler and core (#18683) 2017-08-16 17:58:53 -05:00