[MGNLFE-138] FEHelpers should not emit deprecation messages unless customer is using deprecated methods. Created: 25/Oct/21  Updated: 27/Oct/21  Resolved: 27/Oct/21

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: None
Affects Version/s: 1.1.1
Fix Version/s: 1.1.2

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Robert Šiška
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLFE-109 Support navigation to other pages in ... Closed
relation
is related to MGNLFE-131 Broken preview. Support navigation to... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: Headless p13n
Sprint: HL & LD 40

 Description   

FEHelpers angular-editor and vue-editor: are emmiting many warnings to the browser console even though the project/customer code are not using these methods.

{{EditorContextHelper#isRenderingAnnotation is deprecated since 1.1.0. Use inEditorAsync instead.}}AND:
EditorContextHelper#inEditor is deprecated since 1.1.0. Use inEditorAsync instead.

The libraries 

{{}}

The libraries should only emit these warnings if the project/customer code uses the methods. Not sure of solution. If libs use the deprecated methods, then those calls should be updated. 

Otherwise I guess the warnings should be disabled for now and re-enabled when possible.

 


Generated at Mon Feb 12 05:44:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.