Skip to content

Commit

Permalink
Merge pull request #63 from nextcloud/enhancement/20-deprecations-II
Browse files Browse the repository at this point in the history
Add more 20 deprecations
  • Loading branch information
GretaD committed Oct 6, 2020
2 parents 8bc577e + e105e6e commit c62aaee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/rules/no-deprecations.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const global = {
Clipboard: '18.0.0',
ClipboardJs: '18.0.0',
DOMPurify: '18.0.0',
escapeHTML: '16.0.0',
formatDate: '16.0.0',
getURLParameter: '16.0.0',
Handlebars: '18.0.0',
Expand Down Expand Up @@ -46,6 +45,7 @@ const oc = {
filePath: '19.0.0',
generateUrl: '19.0.0',
get: '19.0.0',
getCanonicalLocale: '20.0.0',
getCurrentUser: '19.0.0',
getHost: '17.0.0',
getHostName: '17.0.0',
Expand Down Expand Up @@ -73,6 +73,7 @@ const ocp = {
const oc_sub = {
Util: {
formatDate: '20.0.0',
humanFileSize: '20.0.0',
relativeModifiedDate: '20.0.0',
}
};
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/rules/no-deprecations.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ ruleTester.run("no-deprecations", rule, {

invalid: [
{
code: "var sanitized = escapeHTML('hello')",
code: "var date = relative_modified_date(123)",
errors: [{
message: "The global property or function escapeHTML was deprecated in Nextcloud 16.0.0",
message: "The global property or function relative_modified_date was deprecated in Nextcloud 16.0.0",
type: "Identifier"
}]
},
Expand Down

0 comments on commit c62aaee

Please sign in to comment.