File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed
Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1+ ## Version 0.1.4 (in development)
2+
3+ * In ` chartlets.js ` we no longer emit warnings an errors in common
4+ situations to avoid too much spam in the browser console.
5+
16## Version 0.1.3 (from 2025/01/28)
27
38* ** Chore:** Version bump to align CI process with GitHub release flow.
Original file line number Diff line number Diff line change @@ -44,12 +44,18 @@ export function getInputValue(
4444 } else if ( isHostChannel ( input ) && hostStore ) {
4545 inputValue = getInputValueFromHostStore ( hostStore , property ) ;
4646 } else {
47- console . warn ( `input with unknown data source:` , input ) ;
47+ // We no longer log, as the situation is quite common if a
48+ // component has not yet been rendered.
49+ // Enable logging for debugging only:
50+ // console.warn(`input with unknown data source:`, input);
4851 }
4952 if ( inputValue === undefined || inputValue === noValue ) {
5053 // We use null, because undefined is not JSON-serializable.
5154 inputValue = null ;
52- console . warn ( `value is undefined for input` , input ) ;
55+ // We no longer log, as the situation is quite common if a
56+ // component has not yet been rendered.
57+ // Enable logging for debugging only:
58+ // console.warn(`value is undefined for input`, input);
5359 }
5460 return inputValue ;
5561}
Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ export function Component(props: ComponentProps) {
1212 if ( typeof ActualComponent === "function" ) {
1313 return < ActualComponent { ...props } /> ;
1414 } else {
15- console . error (
16- `chartlets: invalid component type encountered: ${ componentType } ` ,
17- ) ;
15+ // We no longer log, as the situation is quite common
16+ // and users can not do anything against it.
17+ // Enable error logging for debugging only:
18+ // console.error(
19+ // `chartlets: invalid component type encountered: ${componentType}`,
20+ // );
1821 return null ;
1922 }
2023}
You can’t perform that action at this time.
0 commit comments