IE11 is long dead, Uppy doesn't use any web API that is not already supported by every major browsers, maintaining the legacy bundle is more work than it's worth, let's get rid of it!
`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.
* meta: disable ESM to CJS transorm in dist files
This commit removes all the hacks that needed to happen in order to ship
working CJS code. Onwards, we plan to distribute Uppy packages as ESM.
* No mocking with Jest and ESM
Rewrite all `export … from …` to `module.exports = require(…)`, and
`export default …` to `module.exports = …` when transpiling ESM to CJS.
It also transform `.jsx` imports into `.js` as we are not shipping JSX to npm.
* Fix COMPANION_PATH
make sure it serves everything served behind that path
fixes#3514
* add tests for subpath
* chmod +x companion.sh
* remove process.exit
as it's considered harmful in this case
an error thrown will also be printed to stderr
* add backward compatible redirect
* Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* fix oops
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
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>
* 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