Commit graph

697 commits

Author SHA1 Message Date
Mikael Finstad
e966fa7540
meta: use load balancer for companion in e2e tests (#4228) 2023-02-02 11:25:50 +01:00
Antoine du Hamel
141eb248be
meta: upgrade to Vite 4 and ESBuild 0.16 (#4243) 2022-12-13 15:07:19 +01:00
Antoine du Hamel
a0eeb22458
meta: upgrade to Jest 29 (#4049) 2022-08-30 17:25:19 +02:00
Antoine du Hamel
f7d0d5b3cd
meta: upgrade to TypeScript 4.8 (#4048) 2022-08-30 11:46:45 +02:00
Antoine du Hamel
ea1c0760ff
@uppy/thumbnail-generator: fix exifr import (#4054)
Fixes: https://github.com/transloadit/uppy/issues/4052
2022-08-29 16:54:26 +02:00
Antoine du Hamel
51da2b5a79
e2e: add tests for AWS (#3665)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-08-23 18:43:46 +02:00
Artur Paikin
4108aa6aa3
build: Remove size-limit for now (#4003)
* Remove size-limit for now

* lock

* lock

* lock lock lock
2022-08-18 17:41:54 +01:00
Antoine du Hamel
5044230bf1
meta: upgrade all dev dependencies (#3903) 2022-08-16 22:39:28 +02:00
Merlijn Vos
9733e5a064
aws-s3-multipart: make headers part indexed too in prepareUploadParts (#3895)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-07-26 13:10:31 +02:00
Antoine du Hamel
aee4d3f371
@uppy/companion: upgrade redis to version 4.x (#3589)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-07-25 15:14:13 +02:00
Antoine du Hamel
7b0db7d3a0
meta: use node: protocol when using Node.js built-in core modules (#3871)
`node:` protocol is available as of Node.js 14.18.0 LTS. Since we are
dropping support for all Node.js versions below that, we can take
advantage of this prefix to help differentiate built-in modules from npm
modules.
2022-07-18 14:09:03 +02:00
Antoine du Hamel
91e08c191f
example: update Vue2 example (#3802) 2022-06-02 20:11:32 +02:00
Antoine du Hamel
9d178a0ce7
meta: do not test on EOL versions of Node.js (#3786) 2022-05-30 18:33:01 +02:00
Merlijn Vos
afe5d1b19b
Apply bin/update-yarn.sh (#3775) 2022-05-24 12:45:55 +02:00
Antoine du Hamel
b01a52e368
meta: remove vite-plugin-jsx-commonjs plugin on dev env (#3749)
Now that we removed all JSX and CJS from `.js` files,
there's no need to run Babel on every files, which speeds up greatly the
time it takes for Vite to get ready.
2022-05-23 16:50:45 +02:00
Artur Paikin
b0e01ff082
Fix Compressor docs, pass files array to compressor:complete event (#3682)
* Fix Compressor docs

* Remove unused test commands

* Add note that all options are passed

* Add event to types

* Update website/src/docs/compressor.md

Co-authored-by: Merlijn Vos <merlijn@soverin.net>

* Update packages/@uppy/compressor/types/index.d.ts

Co-authored-by: Merlijn Vos <merlijn@soverin.net>

* add files array as callback to compressor:complete

Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-05-18 19:29:08 +01:00
Antoine du Hamel
f325fb2163
e2e: run CI on PRs that modify the workflow file (#3740)
…and add the option to skip build when spawning e2e locally
2022-05-16 15:35:03 +02:00
Antoine du Hamel
52ec5b8c7f
locale-pack: refactor to use more parallel processing (#3630) 2022-04-25 16:56:29 +02:00
Antoine du Hamel
666f6acd88
@uppy/angular: update ng version (#3503)
* @uppy/angular: update ng version

* hack to allow the publish of the Angular package

* fix @types/webpack-dev-server resolution (the package is deprecated anyway)

* Add Storybook back

* Fix default value of Input

* Update README

* Apply suggestions from code review

* fix @types/react version conflict

* Update packages/@uppy/angular/.storybook/tsconfig.json
2022-03-02 11:20:38 +01:00
Mikael Finstad
5cfb9fe7a5
fix unpslash author meta, sanitize metadata to strings and improve companion tests (#3478)
* fix broken npm run test

* improve jest / companion

add `npm run test:companion:watch`

move env variables into code to make testing easier
this allows for watching (source is causing problems with npm scripts)
also now we can run `corepack yarn test:companion -t 'single test'`

* fix root project jest

make sure we don't run companion tests on npm run test:unit (as they don't work in a browser/jsdom environment)

* improve validation logic

previously incorrect options gives an Uploader object in an incorrect state

* rewrite uploader to make it more testable

* add test for xhr

* check that metadata values are strings

* fix nested meta

causing error #3477

* convert meta to strings instead

like the official FormData spec does

* fix broken companion dev #3473

* fix botched merge

* fix botched merge and remove --fix

* fix botchedf merge

* quick fix

* .

* remove eslint fix
2022-02-17 17:43:44 +00:00
Antoine du Hamel
f4f1b810b7
meta: use a single .env file for config (#3498)
Fixes: https://github.com/transloadit/uppy/issues/3473
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-17 15:47:15 +01:00
Antoine du Hamel
a6e36217ad
meta: add support for ESM sources in build script (#3468) 2022-02-15 17:46:14 +01:00
Antoine du Hamel
f08b71d48b
meta: consolidate ENV files and fix contributing guidelines (#3475)
And use `pull_request_target` event instead of `pull_request` to use secrets from forks.

Fixes: https://github.com/transloadit/uppy/issues/3473

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-14 15:13:38 +01:00
Merlijn Vos
6da874ed3a
meta: Make E2E Great Again (#3444)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-02-08 17:37:27 +01:00
Artur Paikin
18bd009771
Add PostCSS handling to Vite (#3467)
* Add postcss handling to Vite

* Update yarn.lock
2022-02-07 23:36:38 +00:00
Artur Paikin
a74ae35421
Upgrade size-limit to 7.0.5 (#3445)
* Upgrade size-limit to 7.0.5

* Update package.json

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-01-27 12:26:28 +00:00
Artur Paikin
ce950f3bf3
@uppy/thumbnail-generator: exifr: remove legacy IE support (#3382)
Co-authored-by: Artur Paikin <artur@arturpaikin.com>

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-01-24 23:26:29 +00:00
Antoine du Hamel
3c2d76f960
dev: fix Vite custom plugin (#3437) 2022-01-14 11:36:34 +01:00
Antoine du Hamel
848aa858e1
meta: replace browserify with esbuild (#3363)
* meta: build bundle using esbuild

* meta: don't use terser to build minified bundle

* website: use esbuild instead of browserify

* remove disc and disc.html

* Update lock file

* Simplify inject script

* nits

* fix `yarn start`
2022-01-13 15:22:01 +01:00
Antoine du Hamel
83d48f0c29 meta: fix release script
Refs: b0bf1a3eb4
2021-12-21 14:47:27 +01:00
Antoine du Hamel
007aad98fb
meta: use ESBuild to bundle in E2E test suite (#3375)
* use ESBuild to bundle E2E tests

* fix linter warnings

* Update create-react-app deps

* list test suites dynamically
2021-12-16 11:33:19 +01:00
Antoine du Hamel
b0bf1a3eb4
meta: move dev workspace to private/ (#3368)
* meta: move dev workspace to `private/`

* `DragDrop.html` -> `dragdrop.html`
2021-12-14 12:53:34 +01:00
Antoine du Hamel
0ab304cf19
meta: use Vite for examples/dev (#3361)
It's a bit hacky, but it works :)

We should be getting even more performance when we switch to ESM and
stop using JSX in `.js` files.
2021-12-13 14:54:28 +01:00
Antoine du Hamel
3f56f194a7
meta: update npm deps (#3352) 2021-12-09 18:12:34 +01:00
Mikael Finstad
bac107fc5f
@uppy/companion: fix Dockerfile and deploy automation (#3355)
* attempt at fixing dockerfile

that works with yarn workspaces and respects yarn.lock

* run corepack yarn

* update Dockerfile references

* remove unneccesary yarn plugin import

* Apply suggestions from code review

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-12-09 18:12:09 +01:00
Antoine du Hamel
12e2fab273
meta: drop stringify-object dependency to generate locales (#3344)
We can use `JSON.stringify` and rely on ESLint auto-fixing.
2021-12-08 13:25:24 +01:00
Antoine du Hamel
b8a466b6ad
meta: add release automations (#3304)
* meta: add release automations

* Add missing versions

* remove old scripts that are no longer useful

* add special casing for robodog

* skip fetching if HEAD is already available locally

* Publish to npm from GitHub actions

* fixes

* Update afterVersionBump script

* Fix getUpToDateRefsFromGitHub script

* Make sub-package specific changelogs

* fix git and PR opening process in GH Actions

* fix Release action

* don't fetch GH user names in changelog

* add support for commits that touch several packages

* add website as a valid commit message prefix

* Assign the PR to the releaser and fix other GH related bugs

* Remove release branch from CI

* Restore git history at the end of local release session

* skip CI if assignee has not approved the PR

* fix release commit message

* beautify commit message

* Special case for @uppy/robodog

* Failure is not an option

* Rename release CI

* Always rewind before crashing

* Improve logging

* fix changelog table

* fix linter

* Update CONTRIBUTING.md

* Remove unused package

* Disable Release workflow between two releases

* Fix git command and workaround deleted branch
2021-12-07 18:19:06 +01:00
Antoine du Hamel
78268d00fd
build: force use of @babel/plugin-proposal-optional-chaining (#3335) 2021-11-30 13:20:39 +01:00
Mikael Finstad
f60133b2d4
upgrade aws-sdk (#3334) 2021-11-29 18:51:26 +07:00
Antoine du Hamel
cd8af60bfb
examples: update angular-example to Angular v13 (#3325)
* examples: update angular-example to Angular v13

* meta: upgrade TS version accross the board

* meta: upgrade ESLint packages

* Fix angular-examples tests

* bump lock file

* fix type conflict

* Upgrade `ng-packagr`
2021-11-22 19:12:56 +01:00
Merlijn Vos
00094af525
Refactor locale scripts & generate types and docs (#3276)
Closes #3232 

### Summary

- Create `locale.js` for every plugin instead of `this.defaultLocale` in the class
- Complete refactor of locale scripts
  - No dynamic plugin class imports with hacks to mimic the environment in order to get the `defaultLocale`.
  - Separate tests and build in separate files
  - Add two modes for test file, `unused` (fails hard) and `warnings`
- Generate docs
  - Use remark to cleanly mutate the file
  - Rename some doc files to match the plugin name (such as `statusbar` --> `status-bar`)
  - Comments in `locale.js` are kept and are present in the docs as well.
- Generate types
2021-11-10 11:43:04 +01:00
Kevin van Zonneveld
bfe659820e
Upgrade linting to 2.0.0-0 (#3280)
* Upgrade linting to 2.0.0-0

* Adjust so we can pass without error

* Fix linting

* Update header-blacklist.js

* Update index.js

* Update Uppy.js

* Update Components.js

* Update StatusBar.js

* Update Assembly.js

* Upgrade to linting 2.0.0 (final release)
2021-11-09 11:19:05 +00:00
Antoine du Hamel
4cc89594e7 meta: upgrade Yarn to 3.1.0 (#3278) 2021-10-27 17:53:07 +02:00
Antoine du Hamel
70ada39c2f
meta: upgrade ESLint to v8.0.0 (#3251)
* meta: upgrade ESLint to v8.0.0

Forcing `@typescript-eslint/experimental-utils` resolution to `5.0.0` to work around the Angular linter bug. This can be removed when we move to Angular 13.

* Remove unnecessary entries from `.eslintignore`

- `private/remark-lint-uppy/index.js`: ESLiint v8 supports TLA
- `website/private_modules/hexo-renderer-uppyexamples/node_modules/**`:
  all `node_modules` folder are ignored anyway.
2021-10-25 15:53:46 +02:00
Antoine du Hamel
01d7ea13e9
meta: use Yarn v3 instead of npm (#3237)
* meta: use Yarn v3 instead of npm

* Update CONTRIBUTING.md to fix linter errors

* remove remaining npm commands

* Update deps
2021-10-20 15:16:59 +02:00
Antoine du Hamel
55e0ffd04a
Add retext to markdown linter (#3024)
* remark-lint-uppy: use `retext` to improve doc syntax and grammar

* WIP: start fixing fixing linter errors

* Remove `retext-passive` as I don't see what's wrong with passive voice

* Remove URL plugin, add emphasis/strong marker plugin

* Fix remark settings to avoid conflicts

* WIP: more auto-fixes

* remark-simplify: allow `option`

* zoom.md

* url.md

* vue.md

* tus.md

* webcam.md

* xhrupload.md

* writing-plugins

* thumbnail-generator

* svelte

* react-dragdrop

* stores

* do not over simplify

* statusbar

* robodog

* robodog-upload

* robodog-picker

* robodog-form

* robodog-dashboard

* redux

* privacy

* uppy.md

* transloadit.md

* react-native

* react-initializing

* react-fileinput

* providers

* progressbar

* plugins

* plugin-common-options

* onedrive

* locales

* instagram

* informer

* index

* google-drive

* golden-retriever

* form

* fileinput

* facebook

* dropbox

* drop-target

* dragdrop

* remark-lint-no-unneeded-full-reference-link

* Try to setup unified-message-control

* Upgrade deps

* Fix collapsed link references with inline code

* Revert "remark-lint-no-unneeded-full-reference-link"

This reverts commit ca375f463b771bc81d0868f4d84f5979823cfc0a.

* remark-lint-uppy: add missing `"main"` field

* Update package-lock.json

* add disable comments

* fixup! xhrupload.md

* writing-plugins

* unsplash

* tus

* stores

* migration-guide

* dashboard

* community-projects

* box

* integration_help

* blog posts

* companion

* aws-s3

* aws-s3-multipart

* remark-lint-uppy README

* website/inject

* BUNDLE-README

* READMEs

* architecture

* move Remark settings to the plugin

* add `listItemIndent` setting

* list indent fix

* fix ignored files

* revert changelog changes

* fixup! architecture

* Revert changes in ignored files

* Remove unnecessary HTML tags from READMEs
2021-10-14 16:10:45 +02:00
Artur Paikin
dbe3ed25b3
build: add stylelint (#3124)
* add stylelint with stylelint-config-standard

* autofix style issues

* fix more linting issues

* add stylelint-scss

* fix two more

* add stylelint-config-rational-order and autofix order

https://github.com/constverum/stylelint-config-rational-order
2021-08-24 01:37:57 +01:00
Antoine du Hamel
5b45684ed2
build: fix legacy bundle (#3112)
The legacy bundle was missing `regenerator-runtime` dependency and
was not defining `Uppy` global.
2021-08-17 20:14:05 +02:00
Antoine du Hamel
4bbd3b97b6 build: Add @babel/plugin-proposal-nullish-coalescing-operator babel plugin
Forces Babel to transplile `??` to ES6 syntax.
2021-08-02 16:12:14 +02:00
Antoine du Hamel
9b0d25068d
build: fix building on Node.js v14.x LTS (#3061) 2021-08-02 12:36:25 +01:00