Last Updated: 15th Mar 2017
WPTavern: WooCommerce 3.0.0 Scheduled for Release April 4th
Big changes are on the way for WooCommerce. Mike Jolley, lead developer of WooCommerce, announced that WooCommerce 2.7 will be versioned 3.0.0 with a scheduled release date of April 4th. During the 2.7 beta testing phase, the team discovered a significant bug in the way that timestamps are handled.
â€śEssentially, some developers need a way to reliably get UTC timestamps as well as dates according to the siteâ€™s timezone,â€ť Jolley said. â€śTo resolve this weâ€™re working on a solution which accepts either a UTC timestamp, or an ISO8601 datetime string, and returns aÂ DateTime objectÂ so timezone information can be retrieved if needed.Â This approach is not compatible with theÂ
get_date_xÂ getters found in 2.7 beta.â€ť
Beginning with WooCommerce 3.0.0, the project will use semantic versioning or SemVer. WooCommerce has incrementally versioned its releases similar to WordPress. For example, WooCommerce 2.5, 2.6, 2.7. Semantic versioning allows for three digit version numbers and should make it easier to discern major versions from maintenance and bug fix releases. The three digits stand for major, minor, and patch.
According to the SemVer site, each number is incremented when:
- MAJOR version for incompatible API changes.
- MINOR version when you add functionality in a backwards-compatible manner.
- PATCH version when you make backwards-compatible bug fixes.
Under this system, WooCommerce 3.0.0 is a major update with 3.1.0 being a minor update. The next major update will be 4.0.0. Developers should take note that in 3.0.0 RC1, the versioning and @since properties are relabeled to 3.0.0. â€śIf you have used version_compare statements in your code, they will still work since 3.0.0 is greater than 2.7.0, however, you can change these for clarity,â€ť Jolley said. Themes with template files versioned 2.7.0 may need to be updated to use 3.0.0 to prevent reports of outdated template files.
In addition to version changes and fixing major bugs, the team is allowing up to three weeks for 3.0.0 RC1 to be tested. The amount of time to test has been extended from one week to three based on feedback from extension developers.
â€śAn RC is really the first point in time when people can look at the code and feel confident itâ€™s probably not going to change a lot before the official release,â€ť Brent Shepherd, founder of Prospress Inc. said. â€śWith that in mind, having 3 months of beta testing, but only 1 week for the RC, doesnâ€™t make a lot of sense. It makes sense to give more time in that later stage after the RC.â€ť
Josh Kohlbach, a WooCommerce extension developer, also agreed with extending the RC testing time. â€śCurrently from our companyâ€™s perspective weâ€™ve had to put other priorities on hold in order to put WC2.7 changes ahead,â€ť Kohlbach said. â€śThe 2.7 changes we were holding off on doing until RC, which is what we normally do.â€ť
â€śHowever, when it was announced that there would be only one week between, we figured that wouldnâ€™t be enough time for proper testing and pushing updates on all of our products so weâ€™re compatible on day one,â€ť he said. â€śIt just isnâ€™t enough time so we, like many others by the sounds of it, started making our compatibility fixes around Beta 2 this time even though we knew there might be more changes coming down the pipe before RC gets here.â€ť
Extension developers are praising the team for changing to a semantic versioning system and extending the time to test Release Candidates. â€śIâ€™m very happy to see these changes,â€ť Shepherd said. â€śBig props for making the tough call late in the release cycle. Hopefully it will help ensure a smoother release for all WC users of this version.â€ť
â€śI think this is a really positive move forward for WooCommerce,â€ť Kohlback said. â€śI for one want to thank you on behalf of all the third-party developers for being so open and taking on board all of our various points, really makes us happy to be part of the community!â€ť
If all goes well, you can expect to see an update for WooCommerce in your WordPress dashboard on April 4th.