contributte / forms-bootstrap

👾 Bootstrap 4 + 5 forms for Nette framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for nette/forms 3.1.14

matoni555 opened this issue · comments

Can you please add support for current release of nette/forms (3.1.15)?

Thank you

@dakorpar Please, unlock for all 3.1.x, it does not make any sense to update every two weeks.

@f3l1x that will lead to MANY sites crashed after composer update. Nette/forms has BC every now and then and this library is also using internal functions that can change at any time. I did that mistake in beggining, won't do it again.
Plus v3.1.14 adds new controls which I actually need to support here.
image

I'll update in next few days.

Hmm, this is a bit tricky now... We already have Date and Datetime control in. Now if I switch to nette one it's breaking change and if I introduce a new different function for nette native controls interface won't be almost the same with nette forms anymore... I'll have to investigate more...
@matoni555 feel free to send PR, this will probably be on hold for few more days if it's waiting for me. just changing composer.json IS NOT an option.

Hi, any idea how to solve this problem?

@dakorpar I´d say using the Nette ones is the right way, Dfferent way can just add more problems. Declare new version with breaking change. If Nette/Forms can do BCs and it does not matter that sites crash after composer update, there is no point going around with component that expands on NetteForms. And no one should be running composer update on production...

I'm a bit buisy, if someone prepares a PR I'll take a look and modify if needed in day or two then, but to buisy to actually focus on that ATM.

So you are going to rename those methods that are in conflict with the ones in nette/forms?

@H0w4rd I don't have much room there... I have to stay compatible with nette forms, which means compatibility with nette/forms 3.1.14 will include BCs...
I've added new date/datetime/time/color controls now and had to rename current addDate and addDateTime to addBootstrapDate and addBootstrapDateTime... That's only thing I can do since my container basically "inherits" nette container and all calls need to be compatible... I'll do some testing tomorrow...
you can all also try it out with including:
"contributte/forms-bootstrap": "v0.7",

compatibility with 3.1.15 done and released. 3.2.0 is also ready and will be released probably tomorrow.
closing this