diff --git a/BREAKING.md b/BREAKING.md index 2f39c08d165..c8c6ff691e7 100644 --- a/BREAKING.md +++ b/BREAKING.md @@ -52,7 +52,7 @@ This section details the desktop browser, JavaScript framework, and mobile platf | --------------- | ----------------- | | Chrome | 79+ | | Safari | 14+ | -| Firefox | 63+ | +| Firefox | 70+ | | Edge | 79+ | **Minimum JavaScript Framework Versions** diff --git a/core/package.json b/core/package.json index 3788bab7d54..84007617ad1 100644 --- a/core/package.json +++ b/core/package.json @@ -71,12 +71,11 @@ "typescript": "^4.0.5" }, "scripts": { - "build": "npm run clean && npm run build.css && stencil build --es5 --docs-json dist/docs.json && npm run cdnloader", + "build": "npm run clean && npm run build.css && stencil build --es5 --docs-json dist/docs.json", "build.css": "npm run css.sass && npm run css.minify", "build.debug": "npm run clean && stencil build --debug", "build.docs.json": "stencil build --docs-json dist/docs.json", "clean": "node scripts/clean.js", - "cdnloader": "node scripts/copy-cdn-loader.js", "css.minify": "cleancss -O2 -o ./css/ionic.bundle.css ./css/ionic.bundle.css", "css.sass": "sass --embed-sources src/css:./css", "eslint": "eslint src", diff --git a/core/scripts/cdn-loader.js b/core/scripts/cdn-loader.js deleted file mode 100644 index d02280a4625..00000000000 --- a/core/scripts/cdn-loader.js +++ /dev/null @@ -1,30 +0,0 @@ - -exports.applyPolyfills = function() { return Promise.resolve() }; - -exports.defineCustomElements = function(_, opts) { - return new Promise(function(resolve, reject) { - if (typeof document !== 'undefined') { - opts = opts || {}; - var mod = document.createElement('script'); - mod.setAttribute('type', 'module'); - mod['data-opts'] = opts; - mod.src = '__CDN_LOADER_URL__/dist/ionic/ionic.esm.js'; - - var legacy = document.createElement('script'); - legacy.setAttribute('nomodule', ''); - legacy['data-opts'] = opts; - legacy.src = '__CDN_LOADER_URL__/dist/ionic/ionic.js'; - - mod.onload = resolve; - mod.onerror = reject; - - legacy.onload = resolve; - legacy.onerror = reject; - - document.head.appendChild(mod); - document.head.appendChild(legacy); - } else { - resolve(); - } - }); -} diff --git a/core/scripts/copy-cdn-loader.js b/core/scripts/copy-cdn-loader.js deleted file mode 100644 index 2f0cbe9d06d..00000000000 --- a/core/scripts/copy-cdn-loader.js +++ /dev/null @@ -1,28 +0,0 @@ - -// the unpkg link cannot use "latest" in the url -// so this script is to keep the link updated -// with the latest - -const fs = require('fs'); -const path = require('path'); - -let version = process.argv[2]; - -if (version) { - version = '@' + version; -} else { - version = ''; -} - -const srcPath = path.join(__dirname, 'cdn-loader.js'); -let scriptContent = fs.readFileSync(srcPath, 'utf-8'); - -// https://unpkg.com/@ionic/core@latest/dist/ionic.js - -scriptContent = scriptContent.replace( - /__CDN_LOADER_URL__/g, - 'https://cdn.jsdelivr.net/npm/@ionic/core' + version -); - -fs.writeFileSync(path.join(__dirname, '..', 'loader', 'cdn.js'), scriptContent); -fs.writeFileSync(path.join(__dirname, '..', 'loader', 'index.cjs.js'), scriptContent); diff --git a/core/src/components/item/test/fill/item.e2e.ts-snapshots/item-fill-diff-ios-rtl-Mobile-Safari-linux.png b/core/src/components/item/test/fill/item.e2e.ts-snapshots/item-fill-diff-ios-rtl-Mobile-Safari-linux.png index 01c2c91a272..d6ded40acd0 100644 Binary files a/core/src/components/item/test/fill/item.e2e.ts-snapshots/item-fill-diff-ios-rtl-Mobile-Safari-linux.png and b/core/src/components/item/test/fill/item.e2e.ts-snapshots/item-fill-diff-ios-rtl-Mobile-Safari-linux.png differ diff --git a/core/stencil.config.ts b/core/stencil.config.ts index c7245686d91..30cc57a1e44 100644 --- a/core/stencil.config.ts +++ b/core/stencil.config.ts @@ -201,11 +201,6 @@ export const config: Config = { }), ], buildEs5: 'prod', - extras: { - dynamicImportShim: true, - initializeNextTick: true, - scriptDataOpts: true - }, testing: { moduleNameMapper: { "@utils/test": ["/src/utils/test/utils"],