Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency angular-html-parser to v4 #3925

Merged
merged 1 commit into from
Jan 21, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 5, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
angular-html-parser (source) ~3.0.0 -> ~4.0.0 age adoption passing confidence

Release Notes

prettier/angular-html-parser

v4.0.0

Compare Source

Blog post "Angular v14 is now available".

Breaking Changes

animations
  • The AnimationDriver.getParentElement method has become required, so any
    implementors of this interface are now required to provide an implementation
    for this method. This breakage is unlikely to affect application developers,
    as AnimationDriver is not expected to be implemented in user code.
common
  • Adds new required class member that any implementors of the LocationStrategy will need to satisfy.
    Location does not depend on PlatformLocation anymore.
compiler
  • Keyframes names are now prefixed with the component's "scope name".
    For example, the following keyframes rule in a component definition,
    whose "scope name" is host-my-cmp:

    @​keyframes foo { ... }

    will become:

    @​keyframes host-my-cmp_foo { ... }

    Any TypeScript/JavaScript code which relied on the names of keyframes rules
    will no longer match.

    The recommended solutions in this case are to either:

    • change the component's view encapsulation to the None or ShadowDom
    • define keyframes rules in global stylesheets (e.g styles.css)
    • define keyframes rules programmatically in code.
core
  • Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.

  • TypeScript versions older than 4.6 are no longer supported.

  • Forms [email] input coercion

    Forms [email] input value will be considered as true if it is defined with any value rather
    than false and 'false'.

  • Since Ivy, TestBed doesn't use AOT summaries. The aotSummaries fields in TestBed APIs were present, but unused. The fields were deprecated in previous major version and in v14 those fields are removed. The aotSummaries fields were completely unused, so you can just drop them from the TestBed APIs usage.

forms
  • Forms classes accept a generic.

    Forms model classes now accept a generic type parameter. Untyped versions of these classes are available to opt-out of the new, stricter behavior.

  • objects with a length key set to zero will no longer validate as empty.

    This is technically a breaking change, since objects with a key length and value 0 will no longer validate as empty. This is a very minor change, and any reliance on this behavior is probably a bug anyway.

http
  • Queries including + will now actually query for + instead of space.
    Most workarounds involving custom codecs will be unaffected.
    Possible server-side workarounds will need to be undone.

  • JSONP will throw an error when headers are set on a reques

    JSONP does not support headers being set on requests. Before when
    a request was sent to a JSONP backend that had headers set the headers
    were ignored. The JSONP backend will now throw an error if it
    receives a request that has any headers set. Any uses of JSONP
    on requests with headers set will need to remove the headers
    to avoid the error.

platform-browser
  • This change may cause a breaking change in unit tests that are implicitly depending on a specific
    number and sequence of change detections in order for their assertions to pass.

  • This may break invalid calls to TransferState methods.

    This tightens parameter types of TransferState usage, and is a minor breaking change which may reveal existing problematic calls.

router
  • The type of Route.pathMatch is now stricter. Places that use
    pathMatch will likely need to be updated to have an explicit
    Route/Routes type so that TypeScript does not infer the type as
    string.
  • When returning a Promise from the
    LoadChildrenCallback, the possible type is now restricted to
    Type<any>|NgModuleFactory<any> rather than any.
  • initialNavigation: 'enabled' was deprecated in v11 and is replaced by
    initialNavigation: 'enabledBlocking'.
  • The type of component on ActivatedRoute and ActivatedRouteSnapshot
    includes string. In reality, this is not the case. The component
    cannot be anything other than a component class.
    • The type of initialUrl is set to string|UrlTree but in reality,
      the Router only sets it to a value that will always be UrlTree
    • initialUrl is documented as "The target URL passed into the
      Router#navigateByUrl() call before navigation" but the value
      actually gets set to something completely different. It's set to the
      current internal UrlTree of the Router at the time navigation
      occurs.
      With this change, there is no exact replacement for the old value of
      initialUrl because it was never intended to be exposed.
      Router.url is likely the best replacement for this.
      In more specific use-cases, tracking the finalUrl between successful
      navigations can also be used as a replacement.
  • Lazy loaded configs are now also validated once loaded like the
    initial set of routes are. Lazy loaded modules which have invalid Route
    configs will now error. Note that this is only done in dev mode so
    there is no production impact of this change.
  • When a guard returns a UrlTree, the router would previously schedule
    the redirect navigation within a setTimeout. This timeout is now removed,
    which can result in test failures due to incorrectly written tests.
    Tests which perform navigations should ensure that all timeouts are
    flushed before making assertions. Tests should ensure they are capable
    of handling all redirects from the original navigation.
  • Previously, resolvers were waiting to be completed
    before proceeding with the navigation and the Router would take the last
    value emitted from the resolver.
    The router now takes only the first emitted value by the resolvers
    and then proceeds with navigation. This is now consistent with Observables
    returned by other guards: only the first value is used.
zone.js
  • in TaskTrackingZoneSpec track a periodic task until it is cancelled

    The breaking change is scoped only to the plugin
    zone.js/plugins/task-tracking. If you used TaskTrackingZoneSpec and
    checked the pending macroTasks e.g. using (this.ngZone as any)._inner ._parent._properties.TaskTrackingZone.getTasksFor('macroTask'), then
    its behavior slightly changed for periodic macrotasks. For example,
    previously the setInterval macrotask was no longer tracked after its
    callback was executed for the first time. Now it's tracked until
    the task is explicitly cancelled, e.g with clearInterval(id).

Deprecations

common
  • The ngModuleFactory input of the NgComponentOutlet directive is deprecated in favor of a newly added ngModule input. The ngModule input accepts references to the NgModule class directly, without the need to resolve module factory first.
forms
  • The initialValueIsDefault option has been deprecated and replaced with the otherwise-identical nonNullable option, for the sake of naming consistency.
  • It is now deprecated to provide both AbstractControlOptions and an async validators argument to a FormControl. Previously, the async validators would just be silently dropped, resulting in a probably buggy forms. Now, the constructor call is deprecated, and Angular will print a warning in devmode.
router
  • The resolver argument of the RouterOutletContract.activateWith function and the resolver field of the OutletContext class are deprecated. Passing component factory resolvers are no longer needed. The ComponentFactoryResolver-related symbols were deprecated in @angular/core package since v13.
animations
Commit Type Description
a6fa37bc6e feat make validateStyleProperty check dev-mode only (#​45570)
79d334b138 feat provide warnings for non-animatable CSS properties (#​45212)
f8dc660605 fix allow animations with unsupported CSS properties (#​44729)
2a75754ee8 fix apply default params when resolved value is null or undefined (#​45339)
e46b379204 fix implement missing transition delay (#​44799)
5c7c56bc85 perf improve algorithm to balance animation namespaces (#​45057)
4c778cdb28 perf made errors in the animations package tree shakeable (#​45004)
7a81481fb2 perf Remove generic objects in favor of Maps (#​44482)
6642e3c8fd perf remove no longer needed CssKeyframes classes (#​44903)
59559fdbac refactor make AnimationDriver.getParentElement required (#​45114)
common
Commit Type Description
31d7c3bd71 feat add getState method to LocationStrategy interface (#​45648)
c89cf63059 feat support NgModule as an input to the NgComponentOutlet (#​44815)
38c03a2035 feat support years greater than 9999 (#​43622)
bedb257afc fix cleanup URL change listeners when the root view is removed (#​44901)
10691c626b fix properly cast http param values to strings (#​42643)
05d50b849b perf make NgLocalization token tree-shakable (#​45118)
compiler
Commit Type Description
bb8d7091c6 fix exclude empty styles from emitted metadata (#​45459)
4d6a1d6722 fix scope css keyframes in emulated view encapsulation (#​42608)
f03e313f24 fix scope css keyframes in emulated view encapsulation (#​42608)
compiler-cli
Commit Type Description
9cf14ff03d feat exclude abstract classes from strictInjectionParameters requirement (#​44615)
0072eb48ba feat initial implementation of standalone components (#​44812)
2142ffd295 feat propagate standalone flag to runtime (#​44973)
6f653e05f9 feat standalone types imported into NgModule scopes (#​44973)
752ddbc165 feat Support template binding to protected component members (#​45823)
3d13343975 fix better error messages for NgModule structural issues (#​44973)
046dad1a8d fix fix issue with incremental tracking of APIs for pipes (#​45672)
27b4af7240 fix full side-effectful registration of NgModules with ids (#​45024)
32c625d027 fix handle forwardRef in imports of standalone component (#​45869)
06050ac2b4 fix handle inline type-check blocks in nullish coalescing extended check (#​45454)
a524a50361 fix handle standalone components with cycles (#​46029)
724e88e042 fix preserve forwardRef for component scopes (#​46139)
9cfea3d522 fix report invalid imports in standalone components during resolve phase (#​45827)
c0778b4dfc fix Support resolve animation name from the DTS (#​45107)
f2e5234e07 fix update unknown tag error for aot standalone components (#​45919)
35f20afcac fix use existing imports for standalone dependencies (#​46029)
8155428ba6 perf ignore the module.id anti-pattern for NgModule ids (#​45024)
core
Commit Type Description
174ce7dd13 feat add ApplicationRef.destroy method (#​45624)
5771b18a98 feat add the bootstrapApplication function (#​45674)
69018c9f42 feat allow for injector to be specified when creating an embedded view (#​45156)
94c949a60a feat allow for injector to be specified when creating an embedded view (#​45156)
e702cafcf2 feat allow to throw on unknown elements in tests (#​45479)
6662a97c61 feat allow to throw on unknown elements in tests (#​45479)
a6675925b0 feat allow to throw on unknown properties in tests (#​45853)
6eaaefd22e feat drop support for Node.js 12 (#​45286)
c9d566ce4b feat drop support for TypeScript 4.4 and 4.5 (#​45394)
b568a5e708 feat implement importProvidersFrom function (#​45626)
d5a6cd1111 feat implement EnvironmentInjector with adapter to NgModuleRef (#​45626)
5a10fc4f82 feat implement standalone directives, components, and pipes (#​45687)
e461f716d4 feat move ANIMATION_MODULE_TYPE injection token into core (#​44970)
94bba76a4a feat support TypeScript 4.6 (#​45190)
29039fcdbc feat support TypeScript 4.7 (#​45749)
225e4f2dbe feat triggerEventHandler accept optional eventObj (#​45279)
401dec46eb feat update TestBed to recognize Standalone Components (#​45809)
35653ce337 fix add more details to the MISSING_INJECTION_CONTEXT error (#​46166)
d36fa111eb fix avoid Closure Compiler error in restoreView (#​45445)
0bc77f4cab fix better error message when unknown property is present (#​46147)
f3eb7d9ecb fix Ensure the StandaloneService is retained after closure minification (#​45783)
701405fa71 fix handle AOT-compiled standalone components in TestBed correctly (#​46052)
ddce357d1d fix improve TestBed declarations standalone error message (#​45999)
ba9f30c9a6 fix include component name into unknown element/property error message (#​46160)
9fa6f5a552 fix incorrectly inserting elements inside <template> element (#​43429)
d5719c2e0f fix input coercion (#​42803)
be161bef79 fix memory leak in event listeners inside embedded views (#​43075)
fa755b2a54 fix prevent BrowserModule providers from being loaded twice (#​45826)
3172b4cc99 fix produce proper error message for unknown props on <ng-template>s (#​46068)
4f1a813596 fix restore NgModule state correctly after TestBed overrides (#​46049)
3f7ecec59b fix set correct context for inject() for component ctors (#​45991)
4e413d9240 fix support nested arrays of providers in EnvironmentInjector (#​45789)
fde4942cdf fix throw if standalone components are present in @NgModule.bootstrap (#​45825)
560188bf12 fix update unknown property error to account for standalone components in AOT (#​46159)
df339d8abf fix update unknown tag error for jit standalone components (#​45920)
aafac7228f fix verify standalone component imports in JiT (#​45777)
e9317aee71 perf allow checkNoChanges mode to be tree-shaken in production (#​45913)
071c8af8ba perf avoid storing LView in __ngContext__ (#​45051)
a96c4827c4 perf make Compiler, ApplicationRef and ApplicationInitStatus tree-shakable (#​45102)
45d98e7ca5 perf make IterableDiffers and KeyValueDiffers tree-shakable (#​45094)
1e60fe0a3e perf make LOCALE_ID and other tokens from ApplicationModule tree-shakable (#​45102)
88f1168506 perf only track LViews that are referenced in __ngContext__ (#​45172)
9add714b13 refactor remove deprecated aotSummaries fields in TestBed config (#​45487)
devtools tabs
Commit Type Description
6c284ef32e fix stop scroll occuring at tabs level
forms
Commit Type Description
2dbdebc646 feat Add FormBuilder.nonNullable. (#​45852)
e0a2248b32 feat Add a FormRecord type. (#​45607)
7ee121f595 feat Add untyped versions of the model classes for use in migration. (#​45205)
89d299105a feat Implement strict types for the Angular Forms package. (#​43834)
f490c2de4e feat support negative indices in FormArray methods. (#​44848)
39be06037d fix Add a nonNullable option to FormControl for consistency.
4332897baa fix Add UntypedFormBuilder (#​45268)
5d13e58aed fix Allow NonNullableFormBuilder to be injected. (#​45904)
8dd3f82f94 fix Correct empty validator to handle objects with a property length: 0. (#​33729)
ff3f5a8d12 fix Fix a typing bug in FormBuilder. (#​45684)
fe0e42a996 fix Make UntypedFormBuilder assignable to FormBuilder, and vice versa. (#​45421)
b36dec6b5b fix not picking up disabled state if group is swapped out and disabled (#​43499)
9f6fa5b746 fix Prevent FormBuilder from distributing unions to control types. (#​45942)
aa7b857be8 fix Property renaming safe code (#​45271)
cae1e44608 fix Update the typed forms migration to use FormArray<T> instead of FormArray<T[]>. (#​44933)
d336ba96d9 fix Update the typed forms migration. (#​45281)
018550ed50 fix Value and RawValue should be part of the public API. (#​45978)
2e96cede3e fix Warn on FormControls that are constructed with both options and asyncValidators.
http
Commit Type Description
76a9a24cdc fix encode + signs in query params as %2B (angular#​11058) (#​45111)
d43c0e973f fix Throw error when headers are supplied in JSONP request (#​45210)
language-service
Commit Type Description
9d4af65e34 feat Provide plugin to delegate rename requests to Angular (#​44696)
3ae133c69e fix Fix detection of Angular for v14+ projects (#​45998)
localize
Commit Type Description
a50e2da64a fix ensure transitively loaded compiler code is tree-shakable (#​45405)
migrations
Commit Type Description
d56a537196 feat Add migration to add explicit Route/Routes type (#​45084)
ngcc
Commit Type Description
74a2e2e2ec fix cope with packages following APF v14+ (#​45833)
platform-browser
Commit Type Description
a01bcb8e7e fix do not run change detection when loading Hammer (#​44921)
b32647dc68 fix Make transfer state key typesafe. (#​23020)
c7bf75dd5e fix remove obsolete shim for Map comparison in Jasmine (#​45521)
23c4c9601e perf avoid including Testability by default in bootstrapApplication (#​45885)
platform-server
Commit Type Description
dff5586d52 feat implement renderApplication function (#​45785)
22c71be94c fix update renderApplication to move appId to options (#​45844)
router
Commit Type Description
f4fd1a8262 feat Add EnvironmentInjector to RouterOutlet.activateWith (#​45597)
910de8bc33 feat Add Route.title with a configurable TitleStrategy (#​43307)
4e0957a4e1 feat Add ability to specify providers on a Route (#​45673)
dea8c86cd5 feat add ariaCurrentWhenActive input to RouterLinkActive directive (#​45167)
41e2a68e30 feat add type properties to all router events (#​44189)
4962a4a332 feat Allow loadChildren to return a Route array (#​45700)
791bd31424 feat set stricter type for Route.title (#​44939)
50004c143b feat Support lazy loading standalone components with loadComponent (#​45705)
7fd416d060 fix Fix type of Route.pathMatch to be more accurate (#​45176)
1c11a57155 fix merge interited resolved data and static data (#​45276)
f8f3ab377b fix Remove any from LoadChildrenCallback type (#​45524)
d4fc12fa19 fix Remove deprecated initialNavigation option (#​45729)
989e840cce fix Remove unused string type for ActivatedRoute.component (#​45625)
64f837d2c0 fix Update Navigation#initialUrl to match documentation and reality (#​43863)
96fd29c6d2 fix validate lazy loaded configs (#​45526)
f13295f3a3 perf cancel the navigation instantly if at least one resolver doesn't emit any value (#​45621)
1d2f5c1101 refactor deprecate no longer needed resolver fields (#​45597)
7b367d9d90 refactor Remove unnecessary setTimeout in UrlTree redirects (#​45735)
c9679760b2 refactor take only the first emitted value of every resolver to make it consistent with guards (#​44573)
service-worker
Commit Type Description
ec0a0e0669 feat add cacheOpaqueResponses option for data-groups (#​44723)
bd04fbc05b feat emit a notification when the service worker is already up-to-date after check (#​45216)

Special Thanks

Adrian Kunz, Alan Agius, AleksanderBodurri, Alex Rickabaugh, AlirezaEbrahimkhani, Amir Rustamzadeh, Andrew Kushnir, Andrew Scott, Chabbey François, Charles Lyding, Cédric Exbrayat, Daan De Smedt, David Schmidt, Derek Cormier, Dmitrij Kuba, Doug Parker, Dylan Hunn, Emma Twersky, George Kalpakas, George Looshch, Jan Kuehle, Jessica Janiuk, JiaLiPassion, JimMorrison723, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kristiyan Kostadinov, Krzysztof Platis, Leosvel Pérez Espinosa, Maddie Klein, Mark Whitfeld, Martin Sikora, Michael-Doner, Michal Materowski, Minko Gechev, Paul Gschwendtner, Pawel Kozlowski, Payam Shahidi, Pusztai Tibor, Ricardo Mattiazzi Baumgartner, Roy Dorombozi, Ruslan Lekhman, Samuel Littley, Sergej Grilborzer, Sumit Arora, Tobias Speicher, Virginia Dooley, Zack Elliott, alirezaghey, ananyahs96, arturovt, cexbrayat, dario-piotrowicz, ivanwonder, kamikopi, markostanimirovic, markwhitfeld, mgechev, renovate[bot], twerske and zverbeta


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@nicojs nicojs merged commit f62c645 into master Jan 21, 2023
@nicojs nicojs deleted the renovate/angular-html-parser-4.x branch January 21, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant