This release contains more changes to unpoly-migrate.js to help upgrading from Unpoly 2 to 3:
Deprecation warnings for renamed attributes now always mention the actual attribute name instead of the parsed render option.
For example, the deprecation warning for [up-reveal] used to say:
Option { reveal: true } has been renamed to { scroll: "target" }
This wasn't very helpful for tracking down affected code. The warning has been changed to this:
Attribute [up-reveal] was renamed to [up-scroll="target"].
up.element.toggleClass() now logs a deprecation warning.up.$compiler() now logs a deprecation warning.up.$macro() now logs a deprecation warning.up.$on() now logs a deprecation warning.up.$off() now logs a deprecation warning.up.scroll() now logs a deprecation warning.up.form.config.groupSelectors now also removes the suffix :has(&) in addition to :has(:origin).up.log.config.format = false Unpoly no longer prints structured objects to the console. This makes it easier to detected use of undeprecated APIs with automated tests.There's also a small change to a utility function:
up.util.last() also returns the last character of a string.
If you're upgrading from an older Unpoly version you should load unpoly-migrate.js
to polyfill deprecated APIs.
Changes handled by unpoly-migrate.js are not considered breaking changes.
See our upgrading guide for details.