Install
Works with Drupal: ^8.7.7 || ^9.0Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This new major version of views_timelinejs was created to fix issues that were caused by changes to the TimelineJS library that broke backward compatibility. Specifically, these were the two breaking changes:
- Version 3.7.0 removed the compiled files from the GitHub repository which was our recommended method of downloading the library to serve locally.
- Version 3.8.16 introduced dynamic loading of font CSS files. Although this is a positive change, it required changes to the options to work. Any site that used the CDN to serve the files would no longer have any non-default font CSS applied to their timeline.
In order to correct these problems, I've been forced to release version 4 of the module. If you've been using views_timelinejs for a while, then you may remember that version 3 was released to support TimelineJS 3. That was done with the idea that the module's major version would reflect the library's major version. But if serious API changes are going to be introduced into the library, then the module must do what it can to insulate its users from any issues that creates. That means the module's major version must increment any time a major change is made so users are aware of what has happened.
But I'm not stopping there. I'm doing even more to try and protect our users from library API changes. From now on using the latest version of the library from the CDN is not recommended (see the second bullet above). Additional library version options will be added to the settings form at admin/config/development/views-timelinejs, starting with version 3.8.18. These versions will be those that have been tested by the module maintainers for compatiblity. By using these versions instead of the latest version from the CDN, you will help protect your site from unexpected problems caused by API changes.
Finally, I intend to include the most recently-tested version number of the library in any future release notes for the module. In this case, the version I've been testing with is 3.8.18. If you serve the library locally, then you can download a ZIP file of version 3.8.18. By doing this, I hope that users can better avoid using incompatible versions.
Info for New Installations
If you're reading this and wondering whether you should use version 3 or 4 - I recommend version 4 even though this is a first alpha release. Very little about the module changed between 8.x-3.2 and this release. Furthermore, I don't expect the module's code to change much more before a full release is created. Finally, given the problems that the library caused, you'll probably have fewer issues.
Info for Upgrading...
...Sites that Use the CDN
Your upgrade should be straightforward. Just use Composer to download the new version with composer require drupal/views_timelinejs. I encourage you to switch to using version 3.8.18 of the library instead of the latest at admin/config/development/views-timelinejs. You should also test to make certain that your selected timeline font is working properly.
...Sites that Use Local Files
You need to download a new version of TimelineJS that's newer than 3.8.16. Older versions are not compatible. Download a ZIP file of version 3.8.18. The directory in which you must put the files has changed as well. Formerly, the directory had to be named libraries/TimelineJS3. This has been updated to libraries/timeline3, which is the default name the directory will have after you unzip the downloaded archive. The good news is that because of this name change you can get the new library set up before upgrading the module. That way there is no interruption of service. After that, require the new module version with composer require drupal/views_timelinejs.
Changes Since 4.0.0-alpha1
The only change since alpha1 was a minor formatting update to the composer.json file.
4.0.0 Release Plans
No bug reports have been posted for this new version. My plan is to create an official 4.0.0 release sometime soon so that I can drop support for the broken 8.x-3.x branch. The exact timing of that will depend on the adoption rate of the 4.x branch until we have some assurance that it's stable.
Final Thoughts
Please let me know if you encounter any problems with this new version. As always, you should test updates on a development environment before applying changes to your production site.