diff --git a/CHANGELOG.md b/CHANGELOG.md index aac2a6694..c3b11cccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [10.12.4] +### Fixed +- Fix MetaMask internal error reporting (#14344) + +## [10.12.3] +### Changed +- This version was used to rollback from v10.12.0 to v10.11.3. + ## [10.12.2] ### Fixed - Fix error where unlock failed after update to v10.12.0 @@ -2849,7 +2857,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Uncategorized - Added the ability to restore accounts from seed words. -[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.12.2...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.12.4...HEAD +[10.12.4]: https://github.com/MetaMask/metamask-extension/compare/v10.12.3...v10.12.4 +[10.12.3]: https://github.com/MetaMask/metamask-extension/compare/v10.12.2...v10.12.3 [10.12.2]: https://github.com/MetaMask/metamask-extension/compare/v10.12.1...v10.12.2 [10.12.1]: https://github.com/MetaMask/metamask-extension/compare/v10.12.0...v10.12.1 [10.12.0]: https://github.com/MetaMask/metamask-extension/compare/v10.11.4...v10.12.0 diff --git a/app/scripts/lib/setupSentry.js b/app/scripts/lib/setupSentry.js index 052be66ce..7332041bb 100644 --- a/app/scripts/lib/setupSentry.js +++ b/app/scripts/lib/setupSentry.js @@ -68,9 +68,9 @@ export const SENTRY_STATE = { }; export default function setupSentry({ release, getState }) { - let sentryTarget; - - if (METAMASK_DEBUG) { + if (!release) { + throw new Error('Missing release'); + } else if (METAMASK_DEBUG) { return undefined; } @@ -79,6 +79,7 @@ export default function setupSentry({ release, getState }) { ? METAMASK_ENVIRONMENT : `${METAMASK_ENVIRONMENT}-${METAMASK_BUILD_TYPE}`; + let sentryTarget; if (METAMASK_ENVIRONMENT === 'production') { if (!process.env.SENTRY_DSN) { throw new Error( diff --git a/development/build/scripts.js b/development/build/scripts.js index 063fc5a7e..41a9cb6ca 100644 --- a/development/build/scripts.js +++ b/development/build/scripts.js @@ -269,6 +269,7 @@ function createScriptTasks({ testing, policyOnly, shouldLintFenceFiles, + version, }); } @@ -285,6 +286,7 @@ function createScriptTasks({ testing, policyOnly, shouldLintFenceFiles, + version, }); } @@ -301,6 +303,7 @@ function createScriptTasks({ testing, policyOnly, shouldLintFenceFiles, + version, }); } @@ -320,6 +323,7 @@ function createScriptTasks({ policyOnly, shouldLintFenceFiles, testing, + version, }), createNormalBundle({ buildType, @@ -332,6 +336,7 @@ function createScriptTasks({ policyOnly, shouldLintFenceFiles, testing, + version, }), ); } @@ -532,6 +537,7 @@ function createNormalBundle({ modulesToExpose, shouldLintFenceFiles, testing, + version, }) { return async function () { // create bundler setup and apply defaults @@ -543,7 +549,12 @@ function createNormalBundle({ const reloadOnChange = Boolean(devMode); const minify = Boolean(devMode) === false; - const envVars = getEnvironmentVariables({ buildType, devMode, testing }); + const envVars = getEnvironmentVariables({ + buildType, + devMode, + testing, + version, + }); setupBundlerDefaults(buildConfiguration, { buildType, devMode, diff --git a/package.json b/package.json index a30a0d52e..3b774b736 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-crx", - "version": "10.12.2", + "version": "10.12.4", "private": true, "repository": { "type": "git",