diff --git a/CHANGELOG.md b/CHANGELOG.md index fffc2b8489..baaa38387a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ This is the log of notable changes to Expo CLI and related packages. ### 🛠 Breaking changes +- [xdl] Deleted deprecated `Web` module [#2588](https://github.com/expo/expo-cli/pull/2588) + ### 🎉 New features - [expo-cli][config] Generate Android icons on eject and apply [#2087](https://github.com/expo/expo-cli/pull/2087) diff --git a/packages/xdl/src/Web.ts b/packages/xdl/src/Web.ts deleted file mode 100644 index 89a8c9d51f..0000000000 --- a/packages/xdl/src/Web.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { getConfig } from '@expo/config'; - -import * as Webpack from './Webpack'; -import * as WebpackEnvironment from './webpack-utils/WebpackEnvironment'; -/** - * @deprecated this is not publicly exposed anymore. - */ -export const isDebugModeEnabled = WebpackEnvironment.isDebugModeEnabled; - -/** - * @deprecated this is not publicly exposed anymore. - */ -export const isInfoEnabled = WebpackEnvironment.isInfoEnabled; - -/** - * @deprecated this is not publicly exposed anymore. - */ -export const shouldWebpackClearLogs = WebpackEnvironment.shouldWebpackClearLogs; - -/** - * @deprecated use Webpack.invokeWebpackConfigAsync() instead - */ -export const invokeWebpackConfigAsync = Webpack.invokeWebpackConfigAsync; - -/** - * @deprecated use Webpack.openProjectAsync() instead - */ -export const openProjectAsync = Webpack.openProjectAsync; - -/** - * @deprecated use Webpack.onlySupportsWebAsync() instead - */ -export const onlySupportsWebAsync = (projectRoot: string): boolean => { - const { exp } = getConfig(projectRoot, { - skipSDKVersionRequirement: true, - }); - if (Array.isArray(exp.platforms) && exp.platforms.length === 1) { - return exp.platforms[0] === 'web'; - } - return false; -}; diff --git a/packages/xdl/src/xdl.ts b/packages/xdl/src/xdl.ts index f2e2df08ab..e069df757f 100644 --- a/packages/xdl/src/xdl.ts +++ b/packages/xdl/src/xdl.ts @@ -25,7 +25,6 @@ import UserManager, { RegistrationData, User } from './User'; import UserSettings from './UserSettings'; import * as Utils from './Utils'; import * as Versions from './Versions'; -import * as Web from './Web'; import * as Webpack from './Webpack'; import XDLError from './XDLError'; import * as AndroidCredentials from './credentials/AndroidCredentials'; @@ -111,6 +110,5 @@ export { UserManager, User, RegistrationData }; export { UserSettings }; export { Utils }; export { Versions }; -export { Web }; export { Webpack }; export { XDLError };