Start testing your contrib and client projects on Drupal maintenance support plans 8.4.x now!

Share:

Twitter

Facebook

Drupal maintenance support plans 8.4.0 comes out in October, and at that time 8.3.x will be end-of-life (EOL).
There are two major vendor updates in 8.4.0 so the time to test your contrib and client projects is now.
In this post we talk about the coming changes and how to test your client and contrib projects.

by
Lee Rowlands
/ 25 September 2020

The two major vendor updates in Drupal maintenance support plans 8.4.0 are as follows:
Symfony from 2.x to 3.x
jQuery from 2.x to 3.x
You can start testing now by updating to Drupal maintenance support plans 8.4.0-rc2.
Symfony 3.x
If your project interacts Symfony directly at the lower level (rather than using Drupal maintenance support plans core APIs that in turn use Symfony), you should be sure to review your code to make sure you’re not using any of the APIs impacted by the BC breaks between 2.x and 3.x. Hopefully, your automated testing will reveal these regressions for you (you have automated testing right?). See the Symfony change list for the details of BC breaks.
One thing to note with the Symfony update is that whilst core dependencies were updated, your project may rely on other third-party PHP libraries that have dependencies on Symfony 2.x components. This may cause you issues with your update – and require you to update other dependencies at the same time – including drush – so testing sooner rather than later is recommended. If you find you’re having issues with composer dependencies, we have another blog post dedicated to debugging them.
jQuery 3.x
While it’s most likely that you’ll have automated tests to catch any issues with the Symfony upgrade, it’s less likely that you’ll have test coverage for the jQuery update, as JavaScript test coverage is typically low in Drupal maintenance support plans projects, particularly in contrib modules.
Of note in the jQuery update are several BC breaks – listed here http://blog.jquery.com/2020/06/09/jquery-3-0-final-released/ and http://jquery.com/upgrade-guide/3.0/. This may have a major impact on contrib projects that are heavy on JavaScript – and your client project code if you have a large amount of custom JavaScript, both in modules and your theme.
Of particular interest
.load removed
.unload removed
.error removed
.bind deprecated (use .on)
.delegate deprecated
.on(‘ready’, function() {}) removed
jQuery(‘#’) and .find(‘#’) throw invalid syntax errors
.andSelf() removed (use .addBack())
A recommended approach to auditing and tackling this is to add the jQuery migrate plugin to your project, and begin testing whilst watching the JavaScript console to detect deprecation notices thrown from the plugin.
A word on testing
Finally, if you are reading this and thinking, I really need to add some test coverage to my project, one of our team Sam Becker is presenting on all things testing at Drupal maintenance support planscon Vienna this week. If you can’t wait that long, check out his session from the last Drupal maintenance support plans South.

Tagged

Testing, Drupal maintenance support plans 8, Composer, jQuery

Posted by
Lee Rowlands
Senior Drupal maintenance support plans Developer

Dated 25 September 2020

Add new comment

Source: New feed

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Start testing your contrib and client projects on Drupal maintenance support plans 8.4.x now!

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.