Commit graph

301 commits

Author SHA1 Message Date
Artur Paikin
6ab486ea0e we need tape for acceptance tests for now 2017-09-20 17:11:11 -04:00
Artur Paikin
7838f19a32 Release 0.19.0 2017-09-16 00:08:25 -04:00
Artur Paikin
a4668d4f96 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/core/Core.js
#	src/plugins/Dashboard/index.js
2017-09-15 23:56:18 -04:00
Artur Paikin
9e81166e11 remove tap-spec, update package-lock 2017-09-15 23:51:02 -04:00
Renée Kooi
dadfa9c0ce Merge pull request #334 from goto-bus-stop/chore/update-tus
deps: Update tus-js-client
2017-09-11 15:49:51 +02:00
Renée Kooi
51fb7f5c49
deps: Update tus-js-client
`tus-js-client` v1.4.4 and up will resume an upload when you reuse the
`tus.Upload` instance, where previously it wouldn't.
2017-09-11 14:21:00 +02:00
Renée Kooi
76e1d0e600
website: Use minified bundle for disc 2017-09-11 11:02:19 +02:00
Renée Kooi
383aa85025 Merge pull request #323 from goto-bus-stop/rm-upload-complete
core: Remove `core:upload-complete` event.
2017-09-11 09:59:30 +02:00
Artur Paikin
5d30474c43 Merge pull request #310 from richardwillars/jest-tests
Jest tests
2017-09-09 19:14:18 -04:00
Renée Kooi
d4e5daa630
xhrupload,tus: Use promise-settle 2017-09-09 14:08:41 +02:00
Rich Willars
540c02b6b0 Add jest tests
Adds tests for src/core/Utils

Ports translator tests to jest

Adds tests for core/index

Added code coverage report

Adds tests for core/UppySocket

Adds tests to src/core and cleanup of test directory

Switched from import to require as the project supports node v4

Runs tests using Babel for backwards compatibilty

Adds src/core state tests

Adds src/core reset & close tests

Updates stagnant snapshot

Adds tests for preprocessors and postprocessors in src/core/Core.js

Adds tests for uploaders and metadata in src/core/Core

Adds tests for adding and removing files in src/core/Core

Adds test for getFile
2017-09-08 17:18:58 +01:00
Renée Kooi
2d1848b7c1
Release 0.18.1 2017-09-04 19:59:09 +02:00
Renée Kooi
a77d3d405d
Update namespace-emitter 2017-08-18 16:26:43 +02:00
Artur Paikin
bf26c24aac Release 0.18.0 2017-08-16 01:24:36 +03:00
Artur Paikin
e608785499 don’t auto-generate docs for now 2017-08-16 00:59:26 +03:00
Artur Paikin
46dcffb172 refactor web:generated-docs 2017-08-16 00:26:05 +03:00
Artur Paikin
4001ab700b Merge branch 'master' into feature/restore-files 2017-08-15 21:20:13 +03:00
Artur Paikin
9aa0326d42 more docs, restructure them, hide guide for now 2017-08-04 18:45:26 +02:00
Renée Kooi
2ae8e3f5e4
Keep track of ongoing uploads in state; allow restoring uploads
Each upload() now generates a unique ID and stores the relevant file IDs
in state. It now also keeps track of which `step` in the 'pipeline' the
upload is at.

Since uploads are now stored in state, I added two methods to manage
them:

 - `createUpload(fileIDs)` to create a new upload. It returns the unique
 ID for the upload.
 - `removeUpload(uploadID)` to remove an upload, because it was
 completed or canceled.

I split off the 'pipeline' logic from the `upload()` method, into a new
private method `runUpload(uploadID)`, and added a `restore(uploadID)`
method that can be used to continue a preexisting upload. `runUpload()`
continues at the `step` stored in state.

The Golden Retriever loops through the existing uploads from the
restored state and `restore(uploadID)`s each of them.
2017-07-24 16:21:52 +02:00
Gavin Boulton
1c4b245f9c Update licence in package.json to match LICENSE file (MIT) 2017-07-21 10:56:54 +01:00
Artur Paikin
9d3c913cb9 Release 0.17.0 2017-07-02 23:37:59 -04:00
Artur Paikin
d271ba30eb merge master into feature/restrictions 2017-07-02 05:11:33 -04:00
Artur Paikin
36568cd9c8 added mime-match, restrictions is object, onBeforeFileAdded and onBeforeUpload callbacks 2017-06-30 13:14:51 -04:00
Artur Paikin
047e51b77b add get-form-data, move things around 2017-06-29 19:06:04 -04:00
Artur Paikin
18d9331e03 Merge pull request #228 from transloadit/doc-example
docs: non bundled example
2017-06-26 17:16:11 -04:00
Artur Paikin
075d99d54a aliasify, package-lock.json 2017-06-26 16:40:52 -04:00
Ifedapo Olarewaju
c264d390f6 docs: non bundled example 2017-06-20 17:05:14 +01:00
Artur Paikin
b5193a866f add aliasify again? 2017-06-19 19:57:47 -04:00
Artur Paikin
8a6f88d9af add npm run dev shortcut to work on Uppy, same as watch:example, but shorter and easier to memorize
//cc @ifedapoolarewaju @goto-bus-stop
2017-06-02 15:21:59 -04:00
Artur Paikin
1f276c1f8c Release 0.16.2 2017-05-31 16:21:12 -04:00
Artur Paikin
f80d4cf064 add package-lock.json 2017-05-31 16:18:51 -04:00
Renée Kooi
4f14342417
Use nanoraf
This speeds up the UI a ton by not reconciling every time if state
is updated frequently. For example, when adding 20 files at once,
previously the UI would reconcile after adding each file, which took
a few ms each time. Especially on a not-supercomputer that could
easily hang the UI for a second or more.

This way the UI reconciliation is sort of detached from the state
updates, and only reconciles up to 60 times per second. In the bulk file
adding case, it only reconciles once after all files have been added.
2017-05-29 13:30:40 +02:00
Artur Paikin
1ad844f609 update prettier-bytes to fix the IE support issue 2017-05-15 13:38:22 -04:00
Artur Paikin
dc8419f2e4 Release 0.16.1 2017-05-13 18:01:48 -04:00
Artur Paikin
6292b969fb downgrade yo-yoify, until https://github.com/shama/yo-yoify/pull/45 is resolved 2017-05-13 17:18:18 -04:00
Artur Paikin
c11c485e6e Release 0.16.0 2017-05-13 02:03:42 -04:00
Artur Paikin
79cca3ca37 selenium-webdriver was removed by accident 2017-05-13 01:02:40 -04:00
Artur Paikin
d1312b08c8 Revert "update uppy-server version"
This reverts commit 7035408adc.
2017-05-13 00:54:06 -04:00
Artur Paikin
7035408adc update uppy-server version 2017-05-12 23:36:13 -04:00
Artur Paikin
f033a3eef3 update babel-plugin-yo-yoify 2017-05-12 23:19:32 -04:00
Artur Paikin
bee20334e9 downgrade es6-promise 2017-05-12 15:54:52 -04:00
Artur Paikin
eaf0ba0ef9 update babel-plugin-es6-promise too 2017-05-12 15:21:09 -04:00
Renée Kooi
5098c2f821
upgrade runtime dependencies 2017-05-12 11:47:26 +02:00
Renée Kooi
20d535634d
Upgrade socket.io-client
This patch upgrades socket.io-client to v2. There's no breaking changes for us.

socket.io-client@2.x is still massive, but a bit smaller than v1:

```bash
> npm install socket.io-client@1
> echo 'require("socket.io-client")' | browserify - | uglifyjs -cm | gzip | wc -c | pretty-bytes
23.3 kB
```

```bash
> npm install socket.io-client@2
> echo 'require("socket.io-client")' | browserify - | uglifyjs -cm | gzip | wc -c | pretty-bytes
19.2 kB
```
2017-05-11 12:21:20 +02:00
Kevin van Zonneveld
fec1dc3dcd Release 0.15.5 2017-05-03 15:28:11 +02:00
Kevin van Zonneveld
b0b350fad0 Release 0.15.4 2017-05-03 12:10:04 +02:00
Artur Paikin
03a269435b Release 0.15.3 2017-05-02 15:16:21 -04:00
Artur Paikin
e41142d1d1 Release 0.15.2 2017-05-02 11:10:56 -04:00
Kevin van Zonneveld
358454bee0 Release 0.15.1 2017-04-28 13:09:36 +02:00
Renée Kooi
bc7f703916 Transloadit plugin, closes #173 (#177)
* transloadit: Add barebones base plugin.

* tus: Add `uninstall` method.

* transloadit: Implement creating assemblies and hacky tus-uploading.

* transloadit: Add test file (Just checking options errors for now)

* transloadit: Link to templates overview page in `templateId` error.

* transloadit: Use dynamic tus endpoint from assembly result.

* core: Implement uploader pre- and postprocessors and async flow.

* tus: Merge in tus options from `file` objects.

This will allow preprocessor plugins to configure tus uploads.

* transloadit: Implement as a `preprocessor` handler.

* transloadit: Add status socket connection.Add `wait` option to wait for assembly to finish before resolving.

* dashboard: Log errors to console if the upload fails at any point.

* transloadit: Add `waitForEncoding`, `waitForMetadata` options instead of just `wait`.

* transloadit: Merge in params from `params` option when creating an assembly.

* transloadit: Docc why we set the `file.meta` property.

* transloadit: Support the API key being passed in via `params.auth.key`.

This way developers can dump a JSON payload for transloadit into the
`params` option. That'd be especially useful for `signature`s.

* transloadit: Only add `template_id` param to assembly if a `templateId` option is given.

* transloadit: Add a `signature` pass-thru option.

* transloadit: Remove `key` and `templateId` options--use `params` instead.

* Transloadit: Throw a useful error when `params` is an invalid JSON string.

* Transloadit: Check for existence of `params` before validity.

* Transloadit: Fix adding post-processor.

* Transloadit: No need to get assembly status after creating one.

* Transloadit: Add logs in a few places

* Transloadit: Get assembly status after upload is complete.

It's unused for now, but we should use eg. the results status to
provide feedback, especially if the assembly failed. Maybe the
`uploads` key in the result will also contain useful data if the
uploads fail?

* Transloadit: Add a pass-thru `fields` option…

This one should be runtime-configurable in some other way too.
Maybe by passing a <form /> element, or with the MetaData plugin…

* Transloadit: Always connect to the assembly status socket.

* Transloadit: Emit a `transloadit:result` event for assembly results.

But only when `waitForEncoding` is true!

* transloadit: Some doc comments for the main classes
2017-04-26 17:02:29 +02:00