`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
* @uppy/companion: fix deploy
When running from the Dockerfile, Corepack cannot pick up the
information from the parent package.json and tries to run with an
older version of Yarn.
* Update update-yarn.sh
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
* move transloadit2 test into transloadit, remove the former
* Update endtoend-build-tests
* Revert "move transloadit2 test into transloadit, remove the former"
This reverts commit ff25d4b8cd.
* Revert "Update endtoend-build-tests"
This reverts commit 723f48fc03.
* rename transloadit2 to transloadit-assembly-options
* timeout option is nested now https://webdriver.io/docs/api/element/waitForExist/