Hello! The 0.19
release is about internal fixes, optimizations and
refactoring, as well as some work on PRs that we’ll hopefully tell you about
soon!
Jest tests
Thanks to our contributer, @richardwillars, and following the example set by Uppy Server, we’ve switched to Jest for Uppy’s unit tests, and added a bunch of new tests as well. And even more are being added as we speak!
We're also happy to report that more tests have been added for Uppy Server.
Dashboard APIs
We’ve exposed show/hide/isOpen
APIs for the Dashboard UI plugin. Now you can
open and close the modal dialog programmatically:
const modal = uppy.getPlugin('Dashboard');
modal.show();
// ...
button.addEventListener('click', () => {
if (modal.isOpen()) {
modal.hide();
} else {
modal.show();
}
});
Check out the docs.
Transloadit
- Possibility to upload to S3, then import into an assembly;
- New
alwaysRunAssembly
option has beed added to run assemblies when no files are uploaded.
Informer details
Informer supports “explanations”, a questionmark (?) button that shows more info on hover / click.
Misc good stuff
- Uppy instance ID, useful for GoldenRetriver, check out example using multiple Uppy instances;
- Custom error messages from upload endpoints are now supported (#305);
- Fixed
calculateTotalProgress
andrestrictions
; improvedgenerateFileID
andisOnline
; - Removed some unused css styles from the bundle;
- Allow multiple
trigger
elements for the Dashboard, via using the sameclass
attribute; - Image previews are now resized gradually for better performance and quality;
- Metadata edits in the Dashboard are now saved when pressing enter key;
Full Changelog
Here is the full list of changes for version 0.19
(and patch 0.18.1
):
- core: gradually resize image previews (#275 / @goto-bus-stop)
- informer: support “explanations”, a (?) button that shows more info on hover / click (#292 / @arturi)
- fix webcam video recording (@goto-bus-stop)
- bundle: add missing plugins (s3, statusbar, restorefiles) to unpkg bundle (#301 / @goto-bus-stop)
- xhrupload: Use error messages from the endpoint (#305 / @goto-bus-stop)
- dashboard: prevent submitting outer form when pressing enter key while editing metadata (#306 / @goto-bus-stop)
- dashboard: save metadata edits when pressing enter key (#308 / @arturi)
- transloadit: upload to S3, then import into :tl: assembly using
/add_file?s3url=${url}
(#280 / @goto-bus-stop) - transloadit: add
alwaysRunAssembly
option to run assemblies when no files are uploaded (#290 / @goto-bus-stop) - core: use
iteratePlugins
insideupdateAll
(#312 / @richardwillars) - core: improve error when plugin does not have ID (#309 / @richardwillars)
- tus: Clear stored
uploadUrl
onuppy.resetProgress()
call (#314 / @goto-bus-stop) - website: simplify examples and code samples, prevent sidebar subheading links anywhere but in docs (@arturi)
- website: group plugin docs together in the sidebar (@arturi)
- goldenretriever: allow passing options to
IndexedDbStore
(#339 / sunil-shrestha) - core: add Uppy instance ID option, namespace serviceWorker action types, add example using multiple Uppy instances with GoldenRetriever (#333 / @goto-bus-stop)
- core: fix
calculateTotalProgress
- NaN (#342 / @arturi) - core: fix and refactor
restrictions
(#345 / @arturi) - core: Better
generateFileID
(#330 / @arturi) - core: improve
isOnline()
(#319 / @richardwillars) - core: remove unused bootstrap styles (#329 / @arturi)
- core: experiment with yo-yo --> preact and picodom (#297 / @arturi)
- dashboard: fix FileItem source icon position and copy (@arturi)
- dashboard: expose and document the
show/hide/isOpen
API (@arturi) - dashboard: allow multiple
trigger
of the same class.open-uppy
(#328 / @arturi) - plugins: add
aria-hidden
to all SVG icons for accessibility (#4e808ca3d26f06499c58bb77abbf1c3c2b510b4d / @arturi) - core: Handle sync returns and throws in possibly-async function options (#315 / @goto-bus-stop)
- core: switch to Jest tests, add more tests for Core and Utils (#310 / @richardwillars)
- website: Minify bundle for
disc
(#332 / @goto-bus-stop) - transloadit: remove
this.state
getter (#331 / @goto-bus-stop) - server: option to define valid upload urls (@ifedapoolarewaju)
- server: more automated tests (@ifedapoolarewaju)
The Uppy Team