diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11583515..15d33941 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV - name: Create Release id: create_release - uses: ncipollo/release-action@v1.12.0 + uses: ncipollo/release-action@v1.13.0 with: tag: v${{ env.PACKAGE_VERSION }} name: v${{ env.PACKAGE_VERSION }} diff --git a/CHANGELOG.md b/CHANGELOG.md index a3754173..7b366570 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.17.0 (27-01-2024) + +- [UI5 Linter](https://github.com/iljapostnovs/ui5plugin-linter) updated to v1.15.0 +- `WrongOverrideLinter` now checks if member is deprecated ([#398](https://github.com/iljapostnovs/VSCodeUI5Plugin/issues/398)) +- Fix: `UnusedClassLinter` doesn't show error if any member is used outside the class ([#387](https://github.com/iljapostnovs/VSCodeUI5Plugin/issues/387)) + ## 1.16.6 (25-01-2024) - [UI5 Parser](https://github.com/iljapostnovs/ui5plugin-parser) updated to v1.7.7 diff --git a/package-lock.json b/package-lock.json index 35bc4b44..2d7ff2b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ui5plugin", - "version": "1.16.6", + "version": "1.17.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ui5plugin", - "version": "1.16.6", + "version": "1.17.0", "funding": [ { "type": "paypal", @@ -23,7 +23,7 @@ ], "license": "Apache-2.0", "dependencies": { - "ui5plugin-linter": "^1.14.5", + "ui5plugin-linter": "^1.15.0", "ui5plugin-parser": "^1.7.7" }, "devDependencies": { @@ -3821,9 +3821,9 @@ } }, "node_modules/ui5plugin-linter": { - "version": "1.14.5", - "resolved": "https://registry.npmjs.org/ui5plugin-linter/-/ui5plugin-linter-1.14.5.tgz", - "integrity": "sha512-Fhfvi6R+odgr3iELTbFEdW2P06G7pghTEl58y3KuM8xn02GnzkXXB9FA29DPZTDB75jhU2VKdxTaPsz7Ab5q2A==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/ui5plugin-linter/-/ui5plugin-linter-1.15.0.tgz", + "integrity": "sha512-g1ZuDFNNxte9mpOZCsQvdO9L23QM1ieJfpM82ODn67pLWsVcNItZaFVoXyxBOkYOO6GNv0dmpgVNFcX6RiRjHw==", "funding": [ { "type": "paypal", diff --git a/package.json b/package.json index c39e4450..334852b3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ui5plugin", "displayName": "SAPUI5 Extension", "description": "Extension for working with UI5 projects", - "version": "1.16.6", + "version": "1.17.0", "publisher": "iljapostnovs", "license": "Apache-2.0", "author": "Ilja Postnovs ", @@ -540,7 +540,7 @@ "webpack-cli": "^5.1.4" }, "dependencies": { - "ui5plugin-linter": "^1.14.5", + "ui5plugin-linter": "^1.15.0", "ui5plugin-parser": "^1.7.7" }, "__metadata": { diff --git a/src/test/js/project/.ui5pluginrc b/src/test/js/project/.ui5pluginrc new file mode 100644 index 00000000..704f6c07 --- /dev/null +++ b/src/test/js/project/.ui5pluginrc @@ -0,0 +1,7 @@ +{ + "ui5": { + "ui5parser": { + "ui5version": "1.84.41" + } + } +} \ No newline at end of file diff --git a/src/test/js/project/src/controller/ExtendMaster.controller.js b/src/test/js/project/src/controller/ExtendMaster.controller.js index 32a96b22..9b7e5048 100644 --- a/src/test/js/project/src/controller/ExtendMaster.controller.js +++ b/src/test/js/project/src/controller/ExtendMaster.controller.js @@ -8,6 +8,8 @@ sap.ui.define([ return MasterController.extend("com.test.controller.ExtendMaster", { onInit: function() { - } + }, + + deprecatedTest() {} }); }); \ No newline at end of file diff --git a/src/test/js/project/src/controller/Master.controller.js b/src/test/js/project/src/controller/Master.controller.js index 70397748..5c3faf03 100644 --- a/src/test/js/project/src/controller/Master.controller.js +++ b/src/test/js/project/src/controller/Master.controller.js @@ -28,6 +28,13 @@ sap.ui.define([ this._vRegexTest = /asd/; }, + /** + * @deprecated + */ + deprecatedTest() { + + }, + _testMyModel: function() { this.getView().getModel("MyModel").testMethod(); }, diff --git a/src/test/js/suite/data/TestData.json b/src/test/js/suite/data/TestData.json index ccf52d71..6951cd4e 100644 --- a/src/test/js/suite/data/TestData.json +++ b/src/test/js/suite/data/TestData.json @@ -819,23 +819,31 @@ ] }, { - "className": "com.test.util.TypeDefTest", + "className": "com.test.controller.ExtendMaster", "timeLimit": 100, "errors": [ { - "text": "No references found for \"com.test.util.TypeDefTest\" class" + "text": "Member \"deprecatedTest\" is deprecated" + }, + { + "text": "No references found for \"com.test.controller.ExtendMaster\" class" } ] }, { - "className": "com.test.statictest.StaticClass", + "className": "com.test.util.TypeDefTest", "timeLimit": 100, "errors": [ { - "text": "No references found for \"com.test.statictest.StaticClass\" class" + "text": "No references found for \"com.test.util.TypeDefTest\" class" } ] }, + { + "className": "com.test.statictest.StaticClass", + "timeLimit": 100, + "errors": [] + }, { "className": "com.test.controller.LargeFile", "timeLimit": 1400, diff --git a/src/test/js/suite/data/completionitems/JSCompletionItems.json b/src/test/js/suite/data/completionitems/JSCompletionItems.json index 7918e621..f2b2f3ec 100644 --- a/src/test/js/suite/data/completionitems/JSCompletionItems.json +++ b/src/test/js/suite/data/completionitems/JSCompletionItems.json @@ -31,6 +31,8 @@ "className": "com.extend.fragmenttest.controller.MasterExtend", "textToFind": "\"com/extend/", "items": [ + "\"sap/ui/core/date/CalendarUtils\"", + "\"sap/ui/core/date/CalendarWeekNumbering\"", "\"sap\"", "\"sap/apf\"", "\"sap/apf/abap\"",