Merge pull request #4030 from tchak/upgrade-javascript-dependencies

Upgrade javascript dependencies
This commit is contained in:
Paul Chavard 2019-07-03 11:57:17 +02:00 committed by GitHub
commit 0ad14283c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 970 additions and 548 deletions

View file

@ -1,7 +1,7 @@
import '../shared/polyfills'; import '../shared/polyfills';
import Turbolinks from 'turbolinks'; import Turbolinks from 'turbolinks';
import Rails from 'rails-ujs'; import Rails from '@rails/ujs';
import * as ActiveStorage from 'activestorage'; import * as ActiveStorage from '@rails/activestorage';
import jQuery from 'jquery'; import jQuery from 'jquery';
import '../shared/activestorage/ujs'; import '../shared/activestorage/ujs';

View file

@ -1,7 +1,8 @@
import '../shared/polyfills'; import '../shared/polyfills';
import Turbolinks from 'turbolinks'; import Turbolinks from 'turbolinks';
import Rails from 'rails-ujs'; import Rails from '@rails/ujs';
import * as ActiveStorage from 'activestorage'; import * as ActiveStorage from '@rails/activestorage';
import '@rails/actiontext';
import Chartkick from 'chartkick'; import Chartkick from 'chartkick';
import Highcharts from 'highcharts'; import Highcharts from 'highcharts';

View file

@ -1,4 +1,4 @@
import { DirectUpload } from 'activestorage'; import { DirectUpload } from '@rails/activestorage';
import ProgressBar from './progress-bar'; import ProgressBar from './progress-bar';
/** /**

View file

@ -1,4 +1,4 @@
import Rails from 'rails-ujs'; import Rails from '@rails/ujs';
import jQuery from 'jquery'; import jQuery from 'jquery';
import { delegate } from '@utils'; import { delegate } from '@utils';

View file

@ -1,4 +1,4 @@
import Rails from 'rails-ujs'; import Rails from '@rails/ujs';
import $ from 'jquery'; import $ from 'jquery';
import debounce from 'debounce'; import debounce from 'debounce';

View file

@ -30,6 +30,7 @@ module.exports = function(api) {
{ {
forceAllTransforms: true, forceAllTransforms: true,
useBuiltIns: 'entry', useBuiltIns: 'entry',
corejs: 2,
modules: false, modules: false,
exclude: ['transform-typeof-symbol'] exclude: ['transform-typeof-symbol']
} }

View file

@ -1,26 +1,28 @@
{ {
"dependencies": { "dependencies": {
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"@fortawesome/fontawesome-svg-core": "^1.2.18", "@fortawesome/fontawesome-svg-core": "^1.2.19",
"@fortawesome/free-solid-svg-icons": "^5.8.2", "@fortawesome/free-solid-svg-icons": "^5.9.0",
"@fortawesome/react-fontawesome": "^0.1.4", "@fortawesome/react-fontawesome": "^0.1.4",
"@rails/webpacker": "4.0.2", "@rails/actiontext": "^6.0.0-alpha",
"@sentry/browser": "^5.2.1", "@rails/activestorage": "^6.0.0-alpha",
"@rails/ujs": "^6.0.0-alpha",
"@rails/webpacker": "4.0.7",
"@sentry/browser": "^5.4.3",
"@turf/area": "^6.0.1", "@turf/area": "^6.0.1",
"activestorage": "^5.2.3",
"autocomplete.js": "^0.36.0", "autocomplete.js": "^0.36.0",
"babel-plugin-macros": "^2.5.1", "babel-plugin-macros": "^2.6.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"chartkick": "^3.0.2", "chartkick": "^3.0.2",
"core-js": "^2.0.0",
"debounce": "^1.2.0", "debounce": "^1.2.0",
"dom4": "^2.1.4", "dom4": "^2.1.5",
"highcharts": "^6.1.2", "highcharts": "^6.1.2",
"intersection-observer": "^0.7.0", "intersection-observer": "^0.7.0",
"jquery": "^3.4.1", "jquery": "^3.4.1",
"leaflet": "^1.4.0", "leaflet": "^1.4.0",
"leaflet-freedraw": "^2.10.0", "leaflet-freedraw": "^2.10.0",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"rails-ujs": "^5.2.3",
"ramda": "=0.24.1", "ramda": "=0.24.1",
"react": "^16.8.6", "react": "^16.8.6",
"react-dom": "^16.8.6", "react-dom": "^16.8.6",
@ -32,15 +34,15 @@
"turbolinks": "^5.2.0" "turbolinks": "^5.2.0"
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.2",
"eclint": "^2.8.1", "eclint": "^2.8.1",
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-config-prettier": "^4.2.0", "eslint-config-prettier": "^4.2.0",
"eslint-plugin-prettier": "^3.1.0", "eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.13.0", "eslint-plugin-react": "^7.14.2",
"eslint-plugin-react-hooks": "^1.6.0", "eslint-plugin-react-hooks": "^1.6.1",
"prettier": "^1.17.1", "prettier": "^1.18.2",
"webpack-dev-server": "^3.3.1" "webpack-dev-server": "^3.7.2"
}, },
"scripts": { "scripts": {
"lint:ec": "eclint check $({ git ls-files ; find vendor -type f ; echo 'db/schema.rb' ; } | sort | uniq -u)", "lint:ec": "eclint check $({ git ls-files ; find vendor -type f ; echo 'db/schema.rb' ; } | sort | uniq -u)",

1474
yarn.lock

File diff suppressed because it is too large Load diff