diff --git a/.travis.yml b/.travis.yml index bfe7eb8..32d8cde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ deploy: on: repo: mozilla/voicefill tags: true - branch: 1.4.5 + branch: 1.4.7 notifications: slack: on_success: always diff --git a/CHANGELOG.md b/CHANGELOG.md index 74fd165..352e3dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Voice Fill Changelog +## [1.4.7] - 2021-01-27 +- EOL for VoiceFill. Thanks to all our users! + ## [1.4.5] - 2020-05-19 ### Added - Permission settings to allow Mozilla to store the audio samples diff --git a/extension/background.js b/extension/background.js index f4e76a8..cbe5a52 100644 --- a/extension/background.js +++ b/extension/background.js @@ -9,9 +9,32 @@ const analytics = new TestPilotGA({ ds: 'addon', an: 'Voice Fill', aid: 'voicefill@mozilla.com', - av: '1.4.5' + av: '1.4.7' }); +// self-uninstall +let today = new Date(); +let uninstall_date = new Date(2021, 1, 19); + +const openDiscourse = () => { + browser.tabs.create({ + url: "https://discourse.mozilla.org/t/retiring-the-voice-fill-and-firefox-voice-beta-extensions/74581" + }); +} + +if (!localStorage.getItem("openDiscourse")) { + openDiscourse(); + localStorage.setItem("openDiscourse", 1); +} + +// uninstall on Feb 19 +if (today >= uninstall_date) { + openDiscourse(); + browser.management.uninstallSelf({ + showConfirmDialog: false + }); +} + browser.runtime.onMessage.addListener(event => { console.log('[metrics] Event successfully sent. Calling analytics.'); diff --git a/extension/manifest.json b/extension/manifest.json index 89a27db..3b2b2c0 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Voice Fill", - "version": "1.4.5", + "version": "1.4.7", "description": "Adds voice input to popular search pages in Firefox. Learn more about Voice Fill at https://testpilot.firefox.com", "developer": { "name": "Emerging Technologies Advanced Dev Team", diff --git a/package.json b/package.json index e466c86..e09bfab 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "voicefill", "id": "voicefill@mozilla.com", "description": "This is a simple WebExtension that adds support to use Speech To Text as an input method in web pages.", - "version": "1.4.5", + "version": "1.4.7", "author": { "name": "Andre Natal & Fabrice Desré", "url": "https://github.com/mozilla/voicefill" @@ -11,13 +11,13 @@ "url": "https://github.com/mozilla/voicefill/issues" }, "devDependencies": { - "eslint": "^5.7.0", - "eslint-plugin-mozilla": "^0.16.1", - "eslint-plugin-no-unsanitized": "^3.0.2", + "eslint": "^5.16.0", + "eslint-plugin-mozilla": "^0.16.3", + "eslint-plugin-no-unsanitized": "^3.1.4", "markdown": "^0.5.0", - "npm-run-all": "^4.1.3", - "prettier": "^1.14.3", - "web-ext": "^2.9.1" + "npm-run-all": "^4.1.5", + "prettier": "^1.19.1", + "web-ext": "^5.5.0" }, "dependencies": { "bodymovin": "^4.13.0", @@ -39,6 +39,7 @@ "lint:js": "eslint extension", "once": "web-ext run -s extension", "package": "npm run build && mv web-ext-artifacts/*.zip addon.xpi", - "postinstall": "bin/postinstall.sh" + "postinstall": "bin/postinstall.sh", + "start:firefox": "web-ext run --source-dir extension/" } }