diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index 075eb7e3..f7427ada 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -1834,6 +1834,7 @@ https://cdn.jsdelivr.net/npm/p2p-media-loader-hlsjs@0.6.2/build/p2p-media-loader https://cdn.jsdelivr.net/npm/plyr@3.7.2/dist/plyr.css https://cdn.jsdelivr.net/npm/plyr@3.7.2/dist/plyr.min.js https://cdn.jsdelivr.net/npm/raven-js@3.27.2/dist/raven.min.js +https://cdn.jsdelivr.net/npm/react-intl@6.0.5/react-intl.iife.min.js https://cdn.jsdelivr.net/npm/react-lifecycles-compat@3.0.4/react-lifecycles-compat.min.js https://cdn.jsdelivr.net/npm/search-insights@1.8.0/dist/search-insights.min.js https://cdn.jsdelivr.net/npm/search-insights@2.2.1/dist/search-insights.min.js diff --git a/audit/audit.sh b/audit/audit.sh index 78424d04..0014c9a0 100755 --- a/audit/audit.sh +++ b/audit/audit.sh @@ -716,6 +716,8 @@ function create_url() { url="$CREATEJS/$version/createjs.min.js" elif [ "$folder" = "moment.js" ] && [ "$version" = "2.5.1" ];then url="$CLOUDFLARE/$folder/$version/moment-with-langs.min.js" + elif [ "$folder" = "react-intl" ]; then + url="$JSDELIVR/npm/react-intl@$version/react-intl.iife.min.js" # -------------------------------------------------------------------------- else if [ "$subfile" = "$jfile" ]; then diff --git a/core/mappings.js b/core/mappings.js index 6835ad78..10d83ed4 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -644,6 +644,7 @@ mappings.cdn = { 'purecss@{version}/build/': resources.pureCSS, 'redux@{version}/dist/redux.': resources.redux, 'react-dom@{version}/umd/react-dom.production.min.js': resources.reactDOM, + 'react-intl@{version}/react-intl.iife.': resources.reactIntl, 'react@{version}/umd/react.production.min.js': resources.react, 'search-insights@{version}/dist/search-insights.': resources.searchInsights, 'select2@{version}/': resources.select2, diff --git a/core/resources.js b/core/resources.js index 3b27d24f..430ac1b9 100644 --- a/core/resources.js +++ b/core/resources.js @@ -889,6 +889,10 @@ var resources = { 'reactDOM': { 'path': 'resources/react-dom/{version}/umd/react-dom.production.min.jsm' }, + // react-intl + 'reactIntl': { + 'path': 'resources/react-intl/{version}/react-intl.iife.min.jsm' + }, // react-lifecycles-compat 'reactLifecyclesCompat': { 'path': 'resources/react-lifecycles-compat/{version}/react-lifecycles-compat.min.jsm' diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 27394365..3614bc78 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -373,6 +373,8 @@ targets.setLastVersion = function (type, version) { if (type.startsWith('/react-dom/16.')) return '16.14.0'; if (type.startsWith('/react-dom/17.')) return '17.0.2'; if (type.startsWith('/react-dom/18.')) return '18.2.0'; + if (type.startsWith('/react-intl/5.')) return '6.0.5'; + if (type.startsWith('/react-intl/6.')) return '6.0.5'; if (type.startsWith('/react-redux/7.')) return '7.2.8'; if (type.startsWith('/react-redux/8.')) return '8.0.2'; if (type.startsWith('/react-router/5.')) return '5.3.3'; @@ -470,6 +472,7 @@ targets.determineResourceName = function (filename) { }; const ListOfFiles = { + 'react-intl.iife.min.jsm': 'react-intl', 'lunr.min.jsm': 'lunr.js', 'jquery.scrollTo.min.jsm': 'jQuery.scrollTo', 'twix.min.jsm': 'twix.js', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 1bdc2e44..922f3dec 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -32,6 +32,7 @@
Added