validator.js
validator.js copied to clipboard
build(devDeps): Update rollup and babel to latest packages
I've updated the devDependencies in package.json to the latest version, where possible.
This also made some changes necessary in the browser-build.js, as a few of the options have been renamed since v0.48
https://gist.github.com/Rich-Harris/d472c50732dab03efeb37472b08a3f32
I skipped updating eslint, as they are dropping Node 6 support since v5, while this project seems to still want to have support for Node 6, so for now we are stuck with eslint v4.
Fixes #2123
Checklist
- [x] PR contains only changes related; no stray files, etc.
- ~~[ ] README updated (where applicable)~~
- ~~[ ] Tests written (where applicable)~~
looks like I overlooked, that rollup later also switched to to requiring a more modern Node installation, which is why all these tests are failing :-(
What might be a better approach is to build in Node 18 (latest LTS), upload the resulting artifact and download that to be used in the other Node versions. That way we can use new code/dependencies internally.
I'm not that sure if maintainers will merge this or that they'll prefer work on #1869
Lets follow this up on https://github.com/validatorjs/validator.js/pull/2401 as it also has eslint changes
I'll close this PR for now