This release contains more changes to
unpoly-migrate.js
Show archive.org snapshot
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"].
Using the deprecated
up.element.toggleClass()
Show archive.org snapshot
now logs a deprecation warning.
Using the deprecated
up.$compiler()
Show archive.org snapshot
now logs a deprecation warning.
Using the deprecated
up.$macro()
Show archive.org snapshot
now logs a deprecation warning.
Using the deprecated
up.$on()
Show archive.org snapshot
now logs a deprecation warning.
Using the deprecated up.$off()
now logs a deprecation warning.
Using the deprecated
up.scroll()
Show archive.org snapshot
now logs a deprecation warning.
up.form.config.groupSelectors
Show archive.org snapshot
now also removes the suffix :has(&)
in addition to :has(:origin)
.
When disabling log formatting with 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
Show archive.org snapshot
.
There's also a small change to a utility function:
up.util.last()
Show archive.org snapshot
also returns the last character of a string.