Closed samdark closed 3 years ago
@samdark I'll crosscheck today and will give the ok afterwards
Should be ok to go with 1.0.0
@bizley would you please do extra read before tagging it?
Docs should be up to date for certain.
>=7.0
is discussable, php 5.4
, 5.5
, 5.6
is imho outdatedI'm all for using newest PHP versions but it's Yii 2 and people still using it on 5.x.
ok, but I think nearby all of them are using bs3. Compared to yii2-bootstrap4 statistics there are just some 5.6
er:
If this is valid argument we would get rid of 5.x support in Yii 2, wouldn't we? ;)
I would agree immediately ๐๐. But I know what you mean. We need a decision here. @samdark ?
3.6% total. That means there are alive Yii 2 projects on v5.
Means make the repository 5.4+ compatible?
I've meant that regarding framework package itself. Having different constraints for this package is alright since majority of new projects are started with at least PHP 7.
Ok, so only guide needs some updates.
ok, I downgraded the code so it works with php >=7.0 and updated the docs (the languages I understand)
I think now we could release 1.0.0
? @samdark , @bizley ?
To be updated yet:
BTW looks we miss the chance to support 5.1.0 from the very beginning. Or maybe?
Thanks for your feedback. I updated docs. What do you mean with miss the chance to support 5.1? I think there are not widget related changes. The biggest one imho is the Offcanvas in Navbar, and that's possible after last commit:
NavBar::begin([
'brandLabel' => 'Offcanvas navbar',
'brandUrl' => ['/'],
'options' => [
'class' => ['navbar', 'navbar-light', 'bg-light', 'fixed-top']
],
'innerContainerOptions' => [
'class' => ['container-fluid']
],
'collapseOptions' => false,
'offcanvasOptions' => [
'title' => 'Offcanvas',
'placement' => Offcanvas::PLACEMENT_END
]
]);
echo Nav::widget([
'options' => [
'class' => ['navbar-nav']
],
'items' => [
['label' => 'Home', 'url' => '#'],
['label' => 'Link', 'url' => '#'],
['label' => 'Dropdown', 'items' => [
['label' => 'Action', 'url' => '#'],
['label' => 'Another action', 'url' => '#'],
'-',
['label' => 'Something else here', 'url' => '#'],
]]
]
]);
NavBar::end();
Great. So just updating version in the docs and we are good to go.
ok, docs are ready
Green light @samdark
Done. Thanks for preparing it!
FYI, composer does not work this way
https://github.com/yiisoft/yii2-bootstrap5/blob/5c642f8811dafcafc88d15cfb4ceb2a3ec1df5c7/composer.json#L4 (tagged as 2.0.0
)
The common practice is omitting version
altogether to rely on VCS markers instead.
(yii2-bootstrap5/composer.json at 2.0.0 ยท yiisoft/yii2-bootstrap5)
(version - The composer.json schema - Composer)
Could we, please, get a new release sometime soon?
Sure.
Done.
@simialbi I've added a package to packagist. Is it ready to be tagged 1.0.0?