Skip to content

Commit

Permalink
[jquery][sizzle] Add detailed deprecation notices and `jQuery.nodeNam…
Browse files Browse the repository at this point in the history
…e()`, `jQuery.expr`, and `jQuery.easing`. (DefinitelyTyped#29503)

* [jquery] Add detailed deprecation notices.

* [jquery] Add `jQuery.nodeName()`.

* [sizzle] Add named interfaces for `Selectors` properties.

* [jquery] Add `jQuery.expr`.

* [jquery] Add `jQuery.easing`.

* [jquery] Improve formatting of `@deprecated` tags.

WebStorm will not add padding between the description and deprecated text. To improve readability, a zero-width space and space is added to deprecated text to force padding.

VS Code will collapse white space causing detailed deprecation notices to start adjacent to the `@deprecated` tag if there is no header. A minimal header is added where necessary.

WebStorm renders line breaks in JSDoc. This may cause unintentional wrapping of text for `@deprecated` tags. To avoid this, line breaks are not used in deprecated text unless it's intended to render a line break there.

This also fixes broken non-http `@link` tags and ensures that they render consistently.
  • Loading branch information
leonard-thieu authored and johnnyreilly committed Oct 6, 2018
1 parent 4464cbb commit 1c988f1
Show file tree
Hide file tree
Showing 3 changed files with 681 additions and 240 deletions.
Loading

0 comments on commit 1c988f1

Please sign in to comment.