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

Release v2.2.1 #563

Merged
merged 35 commits into from
Dec 24, 2024
Merged

Release v2.2.1 #563

merged 35 commits into from
Dec 24, 2024

Conversation

wuda-io
Copy link
Member

@wuda-io wuda-io commented Dec 24, 2024

Proposed changes

Sorry, forgot to extra check the dist files in the npm repo. They were not there and could not be added after the release, so here is the patch.
Cya

gselderslaghs and others added 30 commits December 18, 2024 20:00
…ot removable when not initialized by init function
…ns of no options are defined, fixes no empty object type #506
…orts and for specific parameter type validation #506
@wuda-io wuda-io merged commit b526fa5 into main Dec 24, 2024
3 checks passed
Copy link
Member

@gselderslaghs gselderslaghs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Referencing to #560, I notice that in this commit we changed the M_ from object orientated to array based
This introduces backwards compatibility issues on v2.2.1 for applications depending on the object orientated approach

For now, my suggestion would be to revert changing the M_ from object orientated to array based back to object orientated approach and change @typescript-eslint/no-explicit-any to warning instead of error in eslint to let the build pass

In meanwhile, we can look for alternative object type declaration to suppress the warnings in one of the next releases

As of v2.2.1 upgrading from v2.1.1 to v2.2.1 is not working or would introduce a major upgrade in existing codebases, which makes it more of a major upgrade instead of minor and would require to introduce additional documentation for the upgrading process to end-users

For the maintainability and scalability regarding Materialize I know it's important to end-users to upgrade with less effort as possible without having to fix broken components, propose to revert, WDYT?

@@ -112,7 +113,7 @@ export class Autocomplete extends Component<AutocompleteOptions> {

constructor(el: HTMLInputElement, options: Partial<AutocompleteOptions>) {
super(el, options, Autocomplete);
(this.el as any).M_Autocomplete = this;
this.el['M_Autocomplete'] = this;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

Comment on lines -160 to +167
return (el as any).M_Autocomplete;
return el['M_Autocomplete'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

Comment on lines -166 to +173
(this.el as any).M_Autocomplete = undefined;
this.el['M_Autocomplete'] = undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

Comment on lines -46 to +49
(this.el as any).M_FloatingActionButton = this;
this.el['M_FloatingActionButton'] = this;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

Comment on lines -99 to +107
return (el as any).M_FloatingActionButton;
return el['M_FloatingActionButton'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

return (el as any).M_Toast;
return el['M_Toast'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

const toast: Toast = (toastElem as any).M_Toast;
const toast: Toast = toastElem['M_Toast'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

(this.el as any).M_Tooltip = this;
this.el['M_Tooltip'] = this;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

Comment on lines -135 to +138
return (el as any).M_Tooltip;
return el['M_Tooltip'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

Comment on lines -141 to +144
(this.el as any).M_Tooltip = undefined;
this.el['M_Tooltip'] = undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to revert this, since it introduces backwards compatibility issues with applications using the previous object orientated approach, propose to just set it to warnings until we can declare the correct type definition

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.

2 participants