-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(engine): clean up error messages (#1193)
* refactor(engine): tweak error messages for attributes.ts * refactor(engine): tweak error messages for restrictions.ts * chore: review feedback * refactor: remove incorrect error 1) This code was dead code because globalHTMLProperty.reflective is either `true` or `undefined`. 2) The error was incorrect. If a property is not reflective, we shouldn't be using getAttribute to read its value. * refactor: remove error and add reflective to global style attr * chore: tweaks * refactor: remove error logs for experimental properties * chore: remove readonly error in getter and update wording * chore: check that the global attr matches the attr being set * chore: review feedback * chore: review feedback * chore: redefine getGlobalHTMLPropertiesInfo as an object * refactor: remove logWarning * chore: adjustments * refactor: relax url validation for href attribute * chore: remove errors * chore: convert straggling logWarning to logError * chore: remove logged error from base-bridge-element.ts Assigning a non-reactive value ${newValue} to member property ${key} of ${vm} is not common because mutations on that value cannot be observed. * chore: remove logged error from base-bridge-element.ts If property ${key} decorated with @api in ${vm} is used in the template, the value ${newValue} set manually may be overridden by the template, consider binding the property only in the template. * chore: remove logged error from template.ts The template rendered by ${vm} references this.${propName}, which is not declared. Check for a typo in the template. * chore: remove logged error from restrictions.ts Invalid attribute access for ${name}. Don't use DOM APIs to mutate elements created by a template. Use the template to update the attribute instead. * test: update tests to reflect error message changes * chore: add back validation for unknown props in the template * fix: ignore default slot content when validating slot names
- Loading branch information
Showing
32 changed files
with
256 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.