From 33f54c9f53a17e30b507c963ca6430eaad726ac7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 25 Oct 2020 08:02:35 +0000 Subject: [PATCH] chore(release): 1.4.0 [skip ci] --- CHANGELOG.md | 7 +++++++ dist/main.js | 2 +- dist/main.js.map | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a278258..5e8550d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.4.0](https://github.com/atom-ide-community/atom-ide-javascript/compare/v1.3.1...v1.4.0) (2020-10-25) + + +### Features + +* support source.flow ([f21c711](https://github.com/atom-ide-community/atom-ide-javascript/commit/f21c71137f879725d5ce1ca8d741d773c09d8e79)) + ## [1.3.1](https://github.com/atom-ide-community/atom-ide-javascript/compare/v1.3.0...v1.3.1) (2020-10-12) diff --git a/dist/main.js b/dist/main.js index 4d02260..2de9f8c 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,2 +1,2 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("atom");let e;exports.activate=function(a){e=new t.CompositeDisposable,async function(){const t=["atom-ide-base","atom-typescript","linter-eslint","autocomplete-paths","javascript-drag-import"];t.some(t=>!atom.packages.isPackageLoaded(t))&&await Promise.resolve().then((function(){return require("./index-9cdbafb6.js")})).then((function(t){return t.index})).then(e=>{e.install("atom-ide-javascript",!1),t.filter(t=>!atom.packages.isPackageLoaded(t)).forEach(t=>{atom.notifications.addInfo(`Enabling package ${t} that is needed for atom-ide-javascript`),atom.packages.enablePackage(t)})})}().then(()=>{!function(){atom.config.set("atom-typescript.allowJS",!0),atom.config.set("atom-typescript.checkAllFilesOnSave",!1),atom.commands.dispatch(atom.workspace.getElement(),"typescript:activate");const t=Array.from(new Set(atom.config.get("atom-typescript.ignoredDiagnosticCodes").concat(["8002","8003","8004","8006","8008","8010"])));atom.config.set("atom-typescript.ignoredDiagnosticCodes",t)}()}).catch(t=>{atom.notifications.addError("atom-ide-javascript failed in installing its dependencies.")})},exports.deactivate=function(){e&&e.dispose(),e=null}; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("atom");let e;exports.activate=function(a){e=new t.CompositeDisposable,async function(){const t=["atom-ide-base","atom-typescript","linter-eslint","autocomplete-paths","javascript-drag-import"];t.some(t=>!atom.packages.isPackageLoaded(t))&&await Promise.resolve().then((function(){return require("./index-9cdbafb6.js")})).then((function(t){return t.index})).then(e=>{e.install("atom-ide-javascript",!1),t.filter(t=>!atom.packages.isPackageLoaded(t)).forEach(t=>{atom.notifications.addInfo(`Enabling package ${t} that is needed for atom-ide-javascript`),atom.packages.enablePackage(t)})})}().then(()=>{!function(){atom.config.set("atom-typescript.allowJS",!0),atom.config.set("atom-typescript.checkAllFilesOnSave",!1),atom.commands.dispatch(atom.workspace.getElement(),"typescript:activate");const t=Array.from(new Set(atom.config.get("atom-typescript.ignoredDiagnosticCodes").concat(["8002","8003","8004","8006","8008","8010"])));atom.config.set("atom-typescript.ignoredDiagnosticCodes",t);const e=Array.from(new Set(atom.config.get("atom-typescript.jsSyntaxScopes").concat(["source.flow"])));atom.config.set("atom-typescript.jsSyntaxScopes",e)}()}).catch(t=>{atom.notifications.addError("atom-ide-javascript failed in installing its dependencies.")})},exports.deactivate=function(){e&&e.dispose(),e=null}; //# sourceMappingURL=main.js.map diff --git a/dist/main.js.map b/dist/main.js.map index 945a912..8a31eee 100644 --- a/dist/main.js.map +++ b/dist/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sources":["../src/main.js","../src/typescript.js"],"sourcesContent":["import { CompositeDisposable } from \"atom\"\nimport { setupTypeScript } from \"./typescript.js\"\n\nlet subscriptions\n\n/**\n * called by Atom when activating an extension\n * @param {any} state the current state of atom\n */\nexport function activate(state) {\n // Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable\n subscriptions = new CompositeDisposable()\n\n package_deps()\n .then(() => {\n setupTypeScript()\n })\n .catch((e) => {\n atom.notifications.addError(\"atom-ide-javascript failed in installing its dependencies.\")\n })\n}\n\n/**\n * install Atom package dependencies if not already loaded\n */\nasync function package_deps() {\n // Add entries from package-deps here manually\n // (to prevent loading atom-package-deps and package.json when the deps are already loaded)\n const deps = [\"atom-ide-base\", \"atom-typescript\", \"linter-eslint\", \"autocomplete-paths\", \"javascript-drag-import\"]\n if (deps.some((p) => !atom.packages.isPackageLoaded(p))) {\n await import(\"atom-package-deps\").then((atom_package_deps) => {\n // install if not installed\n atom_package_deps.install(\"atom-ide-javascript\", false)\n // enable if disabled\n deps\n .filter((p) => !atom.packages.isPackageLoaded(p))\n .forEach((p) => {\n atom.notifications.addInfo(`Enabling package ${p} that is needed for atom-ide-javascript`)\n atom.packages.enablePackage(p)\n })\n })\n }\n}\n\n/**\n * called by Atom when deactivating an extension\n */\nexport function deactivate() {\n if (subscriptions) {\n subscriptions.dispose()\n }\n subscriptions = null\n}\n","// This configures atom-typescript\nexport function setupTypeScript() {\n // use atom-typescript for javascript\n atom.config.set(\"atom-typescript.allowJS\", true)\n // disable check files which slows down Atom\n atom.config.set(\"atom-typescript.checkAllFilesOnSave\", false)\n // activate atom-typescript\n atom.commands.dispatch(atom.workspace.getElement(), \"typescript:activate\")\n // support flow in JavaScript files\n const ignoredDiagnosticCodes = Array.from(\n new Set(\n atom.config.get(\"atom-typescript.ignoredDiagnosticCodes\").concat([\"8002\", \"8003\", \"8004\", \"8006\", \"8008\", \"8010\"])\n )\n )\n atom.config.set(\"atom-typescript.ignoredDiagnosticCodes\", ignoredDiagnosticCodes)\n}\n\n/*\n\"'import ... =' can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8002\n},\n\"'export =' can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8003\n},\n\"Type parameter declarations can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8004\n},\n\"'implements' clauses can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8005\n},\n\"'{0}' declarations can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8006\n},\n\"Type aliases can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8008\n},\n\"The '{0}' modifier can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8009\n},\n\"Type annotations can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8010\n},\n\"Type arguments can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8011\n},\n\"Parameter modifiers can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8012\n},\n\"Non-null assertions can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8013\n},\n\"Type assertion expressions can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8016\n},\n*/\n"],"names":["subscriptions","state","CompositeDisposable","async","deps","some","p","atom","packages","isPackageLoaded","Promise","then","atom_package_deps","install","filter","forEach","notifications","addInfo","enablePackage","package_deps","config","set","commands","dispatch","workspace","getElement","ignoredDiagnosticCodes","Array","from","Set","get","concat","setupTypeScript","catch","e","addError","dispose"],"mappings":"0FAGA,IAAIA,mBAMG,SAAkBC,GAEvBD,EAAgB,IAAIE,sBActBC,uBAGQC,EAAO,CAAC,gBAAiB,kBAAmB,gBAAiB,qBAAsB,0BACrFA,EAAKC,KAAMC,IAAOC,KAAKC,SAASC,gBAAgBH,WAC5CI,kDAAO,8DAAqBC,KAAMC,IAEtCA,EAAkBC,QAAQ,uBAAuB,GAEjDT,EACGU,OAAQR,IAAOC,KAAKC,SAASC,gBAAgBH,IAC7CS,QAAST,IACRC,KAAKS,cAAcC,QAAS,oBAAmBX,4CAC/CC,KAAKC,SAASU,cAAcZ,OAzBpCa,GACGR,KAAK,MCbH,WAELJ,KAAKa,OAAOC,IAAI,2BAA2B,GAE3Cd,KAAKa,OAAOC,IAAI,uCAAuC,GAEvDd,KAAKe,SAASC,SAAShB,KAAKiB,UAAUC,aAAc,6BAE9CC,EAAyBC,MAAMC,KACnC,IAAIC,IACFtB,KAAKa,OAAOU,IAAI,0CAA0CC,OAAO,CAAC,OAAQ,OAAQ,OAAQ,OAAQ,OAAQ,WAG9GxB,KAAKa,OAAOC,IAAI,yCAA0CK,GDCtDM,KAEDC,MAAOC,IACN3B,KAAKS,cAAcmB,SAAS,oFA6B3B,WACDnC,GACFA,EAAcoC,UAEhBpC,EAAgB"} \ No newline at end of file +{"version":3,"file":"main.js","sources":["../src/main.js","../src/typescript.js"],"sourcesContent":["import { CompositeDisposable } from \"atom\"\nimport { setupTypeScript } from \"./typescript.js\"\n\nlet subscriptions\n\n/**\n * called by Atom when activating an extension\n * @param {any} state the current state of atom\n */\nexport function activate(state) {\n // Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable\n subscriptions = new CompositeDisposable()\n\n package_deps()\n .then(() => {\n setupTypeScript()\n })\n .catch((e) => {\n atom.notifications.addError(\"atom-ide-javascript failed in installing its dependencies.\")\n })\n}\n\n/**\n * install Atom package dependencies if not already loaded\n */\nasync function package_deps() {\n // Add entries from package-deps here manually\n // (to prevent loading atom-package-deps and package.json when the deps are already loaded)\n const deps = [\"atom-ide-base\", \"atom-typescript\", \"linter-eslint\", \"autocomplete-paths\", \"javascript-drag-import\"]\n if (deps.some((p) => !atom.packages.isPackageLoaded(p))) {\n await import(\"atom-package-deps\").then((atom_package_deps) => {\n // install if not installed\n atom_package_deps.install(\"atom-ide-javascript\", false)\n // enable if disabled\n deps\n .filter((p) => !atom.packages.isPackageLoaded(p))\n .forEach((p) => {\n atom.notifications.addInfo(`Enabling package ${p} that is needed for atom-ide-javascript`)\n atom.packages.enablePackage(p)\n })\n })\n }\n}\n\n/**\n * called by Atom when deactivating an extension\n */\nexport function deactivate() {\n if (subscriptions) {\n subscriptions.dispose()\n }\n subscriptions = null\n}\n","// This configures atom-typescript\nexport function setupTypeScript() {\n // use atom-typescript for javascript\n atom.config.set(\"atom-typescript.allowJS\", true)\n // disable check files which slows down Atom\n atom.config.set(\"atom-typescript.checkAllFilesOnSave\", false)\n // activate atom-typescript\n atom.commands.dispatch(atom.workspace.getElement(), \"typescript:activate\")\n // support flow in JavaScript files\n const ignoredDiagnosticCodes = Array.from(\n new Set(\n atom.config.get(\"atom-typescript.ignoredDiagnosticCodes\").concat([\"8002\", \"8003\", \"8004\", \"8006\", \"8008\", \"8010\"])\n )\n )\n atom.config.set(\"atom-typescript.ignoredDiagnosticCodes\", ignoredDiagnosticCodes)\n\n const jsSyntaxScopes = Array.from(new Set(atom.config.get(\"atom-typescript.jsSyntaxScopes\").concat([\"source.flow\"])))\n atom.config.set(\"atom-typescript.jsSyntaxScopes\", jsSyntaxScopes)\n}\n\n/*\n\"'import ... =' can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8002\n},\n\"'export =' can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8003\n},\n\"Type parameter declarations can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8004\n},\n\"'implements' clauses can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8005\n},\n\"'{0}' declarations can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8006\n},\n\"Type aliases can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8008\n},\n\"The '{0}' modifier can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8009\n},\n\"Type annotations can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8010\n},\n\"Type arguments can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8011\n},\n\"Parameter modifiers can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8012\n},\n\"Non-null assertions can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8013\n},\n\"Type assertion expressions can only be used in TypeScript files.\": {\n \"category\": \"Error\",\n \"code\": 8016\n},\n*/\n"],"names":["subscriptions","state","CompositeDisposable","async","deps","some","p","atom","packages","isPackageLoaded","Promise","then","atom_package_deps","install","filter","forEach","notifications","addInfo","enablePackage","package_deps","config","set","commands","dispatch","workspace","getElement","ignoredDiagnosticCodes","Array","from","Set","get","concat","jsSyntaxScopes","setupTypeScript","catch","e","addError","dispose"],"mappings":"0FAGA,IAAIA,mBAMG,SAAkBC,GAEvBD,EAAgB,IAAIE,sBActBC,uBAGQC,EAAO,CAAC,gBAAiB,kBAAmB,gBAAiB,qBAAsB,0BACrFA,EAAKC,KAAMC,IAAOC,KAAKC,SAASC,gBAAgBH,WAC5CI,kDAAO,8DAAqBC,KAAMC,IAEtCA,EAAkBC,QAAQ,uBAAuB,GAEjDT,EACGU,OAAQR,IAAOC,KAAKC,SAASC,gBAAgBH,IAC7CS,QAAST,IACRC,KAAKS,cAAcC,QAAS,oBAAmBX,4CAC/CC,KAAKC,SAASU,cAAcZ,OAzBpCa,GACGR,KAAK,MCbH,WAELJ,KAAKa,OAAOC,IAAI,2BAA2B,GAE3Cd,KAAKa,OAAOC,IAAI,uCAAuC,GAEvDd,KAAKe,SAASC,SAAShB,KAAKiB,UAAUC,aAAc,6BAE9CC,EAAyBC,MAAMC,KACnC,IAAIC,IACFtB,KAAKa,OAAOU,IAAI,0CAA0CC,OAAO,CAAC,OAAQ,OAAQ,OAAQ,OAAQ,OAAQ,WAG9GxB,KAAKa,OAAOC,IAAI,yCAA0CK,SAEpDM,EAAiBL,MAAMC,KAAK,IAAIC,IAAItB,KAAKa,OAAOU,IAAI,kCAAkCC,OAAO,CAAC,kBACpGxB,KAAKa,OAAOC,IAAI,iCAAkCW,GDF9CC,KAEDC,MAAOC,IACN5B,KAAKS,cAAcoB,SAAS,oFA6B3B,WACDpC,GACFA,EAAcqC,UAEhBrC,EAAgB"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3a41fab..dd93669 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "atom-ide-javascript", - "version": "1.3.1", + "version": "1.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b2a0308..30bfef8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "atom-ide-javascript", "main": "dist/main.js", - "version": "1.3.1", + "version": "1.4.0", "author": "Amin Yahyaabadi", "description": " ", "keywords": [