Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Detect deprecations in ManagedObject metadata #349

Merged
merged 33 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift click to select a range
86a207b
test: Add test cases
d3xter666 Oct 7, 2024
9cde1b8
feat: Add more test cases
d3xter666 Oct 7, 2024
ce4760e
feat: Add scrap deprecations info from api.json
d3xter666 Oct 9, 2024
ffd75cd
feat: Lint deprecations in ManagedObject's metadata
d3xter666 Oct 9, 2024
e96ccd7
fix: Add also "fields" into the deprecations
d3xter666 Oct 9, 2024
856e32c
fix: Types & code
d3xter666 Oct 9, 2024
021d4bb
fix: Add api-deprecations data to the tests
d3xter666 Oct 9, 2024
4bd2a02
test: Update snapshots
d3xter666 Oct 9, 2024
d7ff23d
refactor: Limit types for the different cases
d3xter666 Oct 9, 2024
d81a045
refactor: Add deprecation text since
d3xter666 Oct 9, 2024
055a79a
fix: Update details texts
d3xter666 Oct 9, 2024
441f023
feat: Add details info
d3xter666 Oct 9, 2024
1a23683
test: Update snapshots
d3xter666 Oct 9, 2024
1eeb6ac
fix: Resolve merge conflicts
d3xter666 Oct 10, 2024
0516899
refactor: Add specific messages
d3xter666 Oct 10, 2024
3b7515e
fix: Update snapshots
d3xter666 Oct 10, 2024
487bb77
fix: Determine real ancestors of ManagedObject
d3xter666 Oct 10, 2024
1386580
fix: Class extend transpilation detection
d3xter666 Oct 10, 2024
36a2384
test: Update texts
d3xter666 Oct 10, 2024
d480b97
fix: Add missing perf indicator
d3xter666 Oct 11, 2024
a96e9a8
refactor: Merge api-extract.json api-deprecations.json
d3xter666 Oct 11, 2024
eeb12ee
refactor: Reuse api-extract.json
d3xter666 Oct 11, 2024
fd857c2
test: Add case to inherit directly from ManagedObject
d3xter666 Oct 11, 2024
a313eed
feat: Analyze ManagedObject's metadata with own node visitor (#360)
d3xter666 Oct 15, 2024
7320975
fix: Test snapshots
d3xter666 Oct 15, 2024
0bce4c1
refactor: Remove redundant check
d3xter666 Oct 15, 2024
859a255
refactor: Strip complex type definitions
d3xter666 Oct 15, 2024
13854c5
docs: Update comments
d3xter666 Oct 15, 2024
2e51fd2
docs: Update comments
d3xter666 Oct 15, 2024
abaaacd
refactor: Remove redundant code update test snapshots
d3xter666 Oct 15, 2024
e11d4f7
test: Add array param
d3xter666 Oct 15, 2024
eedc8b6
fix: Test formats
d3xter666 Oct 15, 2024
7d5dffb
test: Add var assignment return
d3xter666 Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Class extend transpilation detection
  • Loading branch information
d3xter666 committed Oct 16, 2024
commit 13865809110fc2f05decae34db4d4e333681c24e
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 2,7 @@ sap.ui.define(["sap/ui/core/Control", "sap/m/library", "mycustom/lib/FancyMultiP
function (Control, library, FancyMultiPage) {
var DateTimeInputType = library.DateTimeInputType;
var FrameType = library.FrameType;
var FancyText = Control.extend("sap.fancy.Text", {
return Control.extend("sap.fancy.Text", {
metadata: {
// sap.ui.commons.FormattedTextViewControl: deprecated
interfaces: ["sap.ui.commons.FormattedTextViewControl"],
Expand Down
10 changes: 1 addition & 9 deletions test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 455,7 @@ Generated by [AVA](https://avajs.dev).
[
{
coverageInfo: [],
errorCount: 18,
errorCount: 17,
fatalErrorCount: 0,
filePath: 'ManagedObject.js',
messages: [
Expand Down Expand Up @@ -595,14 595,6 @@ Generated by [AVA](https://avajs.dev).
ruleId: 'no-deprecated-api',
severity: 2,
},
{
column: 30,
line: 73,
message: 'Use of deprecated class \'sap.f.IllustratedMessage\'',
messageDetails: 'Deprecated since 1.98. Use the sap.m.IllustratedMessage (https://ui5.sap.com/1.120/#/api/sap.m.IllustratedMessage) instead.',
ruleId: 'no-deprecated-api',
severity: 2,
},
],
warningCount: 0,
},
Expand Down
Binary file modified test/lib/linter/rules/snapshots/NoDeprecatedApi.ts.snap
Binary file not shown.