angular/packages
arturovt a27600c463 fix(zone.js): do not mutate event listener options (may be readonly) (#55796)
Prior to this commit, event listener options were mutated directly, for example,
`options.signal = undefined` or `options.once = false`.

This issue arises in apps using third-party libraries where the responsibility lies
with the library provider. Some libraries, like WalletConnect, pass an abort controller
as `addEventListener` options. Because the abort controller has the `signal` property,
this is a valid case. Thus, mutating options would throw an error since `signal`
is a readonly property.

Even though zone.js is being deprecated as Angular moves towards zoneless change detection,
this fix is necessary for apps that still use zone.js and cannot migrate to zoneless change
detection because they rely on third-party libraries and are not responsible for the code
used in them.

Closes #54142

PR Close #55796
2024-05-22 16:20:34 -07:00
..
animations refactor(core): Ensure animations are flushed before running render hooks (#55564) 2024-04-30 15:39:57 -07:00
bazel refactor(core): Replay events from the event contract using the dispatcher. (#55467) 2024-04-23 16:08:36 -07:00
benchpress refactor: migrate bazel, benchpress, elements and misc to prettier formatting (#53995) 2024-01-22 09:07:15 +01:00
common docs(common): fix FormatWidth.Short description (#55821) 2024-05-20 23:39:24 -07:00
compiler fix(compiler): allow comments between connected blocks (#55966) 2024-05-21 10:37:58 -07:00
compiler-cli fix(compiler-cli): dom property binding check in signal extended diagnostic (#54324) 2024-05-20 23:37:57 -07:00
core refactor(core): remove unused preventDefault on listener (#55879) 2024-05-22 16:08:40 -07:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor: migrate bazel, benchpress, elements and misc to prettier formatting (#53995) 2024-01-22 09:07:15 +01:00
examples refactor: migrate docs, examples, private, service worker and upgrade to prettier formatting (#54163) 2024-01-30 20:08:40 +00:00
forms refactor(forms): remove deprecated symbols (#55723) 2024-05-17 10:12:08 -07:00
language-service fix(language-service): use type-only import in plugin factory (#55996) 2024-05-22 09:52:33 -07:00
localize refactor(compiler): add handler attribute to XMB output (#54865) 2024-04-29 11:56:32 -07:00
misc/angular-in-memory-web-api fix(http): resolve withRequestsMadeViaParent behavior with withFetch (#55652) 2024-05-06 12:29:53 -07:00
platform-browser docs: declare provideAnimationsAsync() function stable (#55871) 2024-05-20 23:38:19 -07:00
platform-browser-dynamic refactor: migrate platform-* to prettier formatting (#55423) 2024-04-19 13:49:24 -07:00
platform-server refactor(core): Add a test case for content projection. (#55801) 2024-05-15 08:57:48 -07:00
private/testing refactor(core): properly type withBody and withHead testing helpers (#54801) 2024-03-11 08:59:55 -07:00
router refactor(router): resolve view transition promise in a timeout when unsupported (#55327) 2024-05-06 16:01:01 -07:00
service-worker fix(service-worker): remove controllerchange listener when app is destroyed (#55365) 2024-05-21 14:04:22 -07:00
upgrade fix(core): Remove deprecated Testability methods (#53768) 2024-04-12 14:49:23 -07:00
zone.js fix(zone.js): do not mutate event listener options (may be readonly) (#55796) 2024-05-22 16:20:34 -07:00
BUILD.bazel docs(docs-infra): Add missing API entries to ADEV (#54530) 2024-02-21 16:41:33 +00:00
circular-deps-test.conf.js ci: complete migration to prettier formatting (#55580) 2024-04-29 14:00:17 -07:00
empty.ts
goog.d.ts
license-banner.txt build: update licence date. (#55129) 2024-04-08 11:31:12 -07:00
README.md
system.d.ts
tsconfig-build.json build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
tsconfig-legacy-saucelabs.json refactor(compiler): drop obsolete NgFactory and NgSummary config options (#48268) 2023-02-21 13:03:59 -08:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json refactor(router): Update integration tests to cover navigation and history API (#53799) 2024-01-30 15:04:02 +00:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT