Unpoly 2 ships with many new features and API improvements, unlocking many use cases that were not possible with Unpoly 1.
For an in-depth guide to all changes, see our Unpoly 2 presentation (150 slides).
If you're upgrading from an older Unpoly version you should load unpoly-migrate.js to enable deprecated APIs. Also see below for an overview of breaking changes.
Change overview
Less need for boilerplate configuration
New Layer API
Subinteractions
Navigation intent
Accessibility
Reworked Bootstrap integration
Quality of live improvements
Extended server protocol
The optional server protocol has been extended with additional headers that the server may use to interact with the frontend. For example:
See up.protocol for a full list of features.
If you are using Ruby on Rails, the new protocol is already implemented by the unpoly-rails gem.
If you are using Elixir / Phoenix, the new protocol is already implemented by the ex_unpoly package.
Overview of breaking changes
Please use unpoly-migrate.js for a very smooth upgrade process from Unpoly 0.x or 1.x to Unpoly 2.0.
By loading unpoly-migrate.js, calls to most old APIs will be forwarded to the new version. A deprecation notice will be logged to your browser console. This way you can upgrade Unpoly, revive your application with a few changes, then replace deprecated API calls under green tests.
There's a short list of changes that we cannot fix with aliases.
Overlays (modals, popups) have different HTML
But it's similar. E.g. <div class="modal"> becomes <up-modal>.
Unpoly only sees the current layer
You can target other layers with { layer: 'any' }.
Async functions no longer wait for animations
You might or might not notice. In cases where you absolutely do need to wait, an { onFinished } callback can be used.
Tooltips are no longer built-in
But there are a million better libraries.
Unpoly 1 maintenance
With the release of Unpoly we're ending maintenance of Unpoly 1. Expect little to no changes to Unpoly 1 in the future. GitHub issues that have been fixed in Unpoly 2 will be closed.
The legacy documentation for Unpoly 1.x has been archived to https://v1.unpoly.com.
Best regards
Henning
On 18 Jun 2021, at 5:39 am, adam.me...@gmail.com <adam.me...@gmail.com> wrote:
This is fantastic. Thanks for the many months of hard work Henning!
--
You received this message because you are subscribed to the Google Groups "unpoly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unpoly+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unpoly/9c48ac60-e779-4584-8ace-3e2da85a62f7n%40googlegroups.com.