angular/packages/core/src
Kristiyan Kostadinov 2b12b8a569 refactor(core): move duplicate directive check outside of host directives (#60137)
The check that verifies that there are no duplicates in the directives array was only running after host directive matching since that was the only case when it can happen. After the upcoming changes that won't be the case anymore so these changes move it always run after directive matching.

I also did some additional cleanup by adding comments and by not lazily initializing the `allDirectiveDefs` array when matching host directives. The array is guaranteed to be defined since earlier in the function we verify that there's at least one def with host directives.

PR Close #60137
2025-03-03 22:04:48 +00:00
..
application fix(core): Remove duplicate reporting of errors in CDR.detectChanges (#60056) 2025-02-25 12:20:22 -05:00
authoring refactor(core): move logic out of shared instructions code (#59453) 2025-01-15 12:20:27 -08:00
change_detection fix(core): Catch and report rejections in async function of PendingTasks.run (#60044) 2025-03-03 17:13:33 +00:00
compiler docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
debug refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
defer refactor(core): clean up when blocks fail to fetch or hydrate (#59740) 2025-02-21 11:08:03 -05:00
di refactor(core): Move getCurrentInjector/setCurrentInjector to primitives package. (#60090) 2025-02-28 18:47:08 +00:00
hydration fix(core): prevents event replay from being called on comment nodes (#60130) 2025-02-28 16:30:27 +00:00
i18n docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
interface docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
internal refactor(core): account for anonymous classes in internal utility (#58392) 2024-10-28 12:38:03 -07:00
linker refactor(core): move LContainer manipulation logic to its own file (#59856) 2025-02-18 15:41:42 +00:00
metadata docs: set syntax highlighting to the remaining Markdown code examples blocks (#59088) 2025-01-14 15:14:02 -05:00
platform refactor(core): move callAndReportToErrorHandler to bootstrap file (#59793) 2025-02-03 13:54:40 -08:00
reflection docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
render feat(core): add event listener options to renderer (#59092) 2024-12-10 13:39:47 -08:00
render3 refactor(core): move duplicate directive check outside of host directives (#60137) 2025-03-03 22:04:48 +00:00
resource feat(common): introduce experimental httpResource (#59876) 2025-02-14 18:40:37 +00:00
sanitization refactor(core): move DOM manipulation logic to its own file (#59462) 2025-01-16 10:38:44 -08:00
testability docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
util refactor(core): improve stringify (#59745) 2025-02-19 15:21:36 +00:00
view refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
zone docs: correct typo in description of runTask method (#59119) 2024-12-13 10:09:40 -08:00
authoring.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
cached_injector_service.ts refactor: add @__PURE__ next to @pureOrBreakMyCode for improved bundler compatibility (#58297) 2024-10-28 12:26:05 -07:00
change_detection.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
console.ts refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
core.externs.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
core.ts refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
core_private_export.ts refactor(core): Add fake navigation to primitives for code sharing (#59857) 2025-02-19 20:09:10 +00:00
core_reactivity_export.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
core_reactivity_export_internal.ts feat(core): introduce the reactive linkedSignal (#58189) 2024-10-18 08:12:51 +00:00
core_render3_private_export.ts refactor(compiler): remove input transforms feature (#59980) 2025-02-18 19:27:59 +00:00
di.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
error_details_base_url.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
error_handler.ts fix(core): Catch and report rejections in async function of PendingTasks.run (#60044) 2025-03-03 17:13:33 +00:00
errors.ts docs: Add NG0750 to errors list (#59265) 2025-01-06 16:13:36 +00:00
event_delegation_utils.ts fix(core): prevents event replay from being called on comment nodes (#60130) 2025-02-28 16:30:27 +00:00
event_emitter.ts refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
image_performance_warning.ts refactor(core): drop platform check in ImagePerformanceWarning (#59809) 2025-02-20 12:32:22 -05:00
linker.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
metadata.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
pending_tasks.ts fix(core): Catch and report rejections in async function of PendingTasks.run (#60044) 2025-03-03 17:13:33 +00:00
profiler.ts refactor(platform-server): Add an ssr benchmark setup. (#57647) 2024-10-04 10:45:22 -07:00
r3_symbols.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
render.ts feat(core): add event listener options to renderer (#59092) 2024-12-10 13:39:47 -08:00
transfer_state.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
version.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
zone.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00