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

MediaWiki 1.42, online doc. URLs, and fixes #42

Merged
merged 17 commits into from
May 30, 2024

Commits on Apr 24, 2024

  1. 1.42 & doc fixes

    - add `$.cookie`, `$.removeCookie`, `mw.loader.addSource`, `mw.templates`, `mw.user.getFirstRegistration`, `mw.util.isInfinity`
    - `new mw.Api().loadMessagesIfMissing` now accepts a single `string` message key as argument
    - `mw.loader.impl`/`implement`/`register`/`state` are now annotated private
    - `mw.Map` is no longer annotated private
    - `body` argument of `new mw.Rest().post` is now optional
    - various small jsdoc fixes, either from 1.42 updates or oversights from previous PR
    Adrien LESÉNÉCHAL committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    b73665d View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Small fixes

    - synchronize `mw.cookie.get` TS type with JSdoc: only allow `string|null` as argument
    - fix `mw.notify` not targetting the mw implementation of `NotificationOptions`
    - add missing JSdoc to `mw.experiments` and `mw.Rest.Options.ajax`
    - add missing code block language annotations
    Adrien LESÉNÉCHAL committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    346d24c View commit details
    Browse the repository at this point in the history
  2. Make mw.libs & mw.widgets namespaces

    so library and widget types can be specified in this package (or other ones)
    Adrien LESÉNÉCHAL committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    df4cbcf View commit details
    Browse the repository at this point in the history
  3. Add pluralRuleParser & tempUserCreated types

    Adrien LESÉNÉCHAL committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    54a3764 View commit details
    Browse the repository at this point in the history
  4. Replace imports with globals

    missed some imports in the previous commits
    Adrien LESÉNÉCHAL committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    62df4e6 View commit details
    Browse the repository at this point in the history
  5. Update mw.template types

    Update JSdoc of `mw.template` based on MW 1.42.
    Some interface declarations for `TemplateCompiler` and `TemplateRenderer` were also added in JSdoc, so use these types.
    Adrien LESÉNÉCHAL committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    4d35db8 View commit details
    Browse the repository at this point in the history
  6. Update links

    - update types of `mw.template`, based on interfaces in MW 1.42 JSdoc
    - update `doc.wikimedia.org` urls to new format (with migration of source code from jsduck to jsdoc), almost all urls are currently broken
    - remove `doc.wikimedia.org` urls to private members (that linked to nothing, since jsdoc of private members is not generated)
    - add missing `doc.wikimedia.org` urls
    - add `doc.wikimedia.org` urls for specific `mw.hook` events, since their jsdoc is now generated
    - use `Special:MyLanguage` when possible with wiki urls
    - use `{@link some-url …}` consistently, instead of `[…](some-url)`, `<some-url>`, or plain `some-url`
    Adrien LESÉNÉCHAL committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    dbb4b8b View commit details
    Browse the repository at this point in the history
  7. Sort members

    consistency
    Adrien LESÉNÉCHAL committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    0680f01 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Fixes

    mistakes from previous commits
    Adrien LESÉNÉCHAL committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    61ae74e View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. Cleanup

    - fix remaining `NotificationOptions` issues
    - move remaining Options objects to their own interfaces, so descriptions in some code editors (like VSC) only show relenvant information about the the object itself, not all of its methods and properties. This includes `JQuery.textSelection`, `mw.requestIdleCallback`, and `mw.Title.newFromUserInput` options.
    - synchronize `TableSorterOptions` with online doc: change its name and make all its properties optional
    - remove redundant jsdoc in `mw.experiments` and empty `@see` annotation in `mw.hook`
    - fix some jsdoc link, indent & type inconsistencies
    Adrien LESÉNÉCHAL committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    8e15551 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Merge branch 'main' of https://github.com/wikimedia-gadgets/types-med…

    …iawiki into main-next
    Adrien LESÉNÉCHAL committed May 5, 2024
    Configuration menu
    Copy the full SHA
    d077b40 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Merge branch 'main' of https://github.com/wikimedia-gadgets/types-med…

    …iawiki into main-next
    Adrien LESÉNÉCHAL committed May 27, 2024
    Configuration menu
    Copy the full SHA
    3b52099 View commit details
    Browse the repository at this point in the history
  2. Fix confirmable options & update some URLs

    - fix `$().confirmable` not allowing omitting some option properties
    - update some jQuery plugin URLs, changed since 1.42 release
    Adrien LESÉNÉCHAL committed May 27, 2024
    Configuration menu
    Copy the full SHA
    83ced94 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Fix mw.util.parseImageUrl return type

    The `resizeUrl` method may be missing, in which case the method is specified and `null`
    Adrien LESÉNÉCHAL committed May 28, 2024
    Configuration menu
    Copy the full SHA
    21e20cc View commit details
    Browse the repository at this point in the history
  2. Sort members

    for consistency, missed small interfaces from previous commits wikimedia-gadgets@0680f01
    Also simplify `RequiredOrUndefined` type
    Adrien LESÉNÉCHAL committed May 28, 2024
    Configuration menu
    Copy the full SHA
    49ad52d View commit details
    Browse the repository at this point in the history
  3. Compatibility with 1.39 (LTS)

    - add various `@since`/`@deprecated` annotations for declarations added/modified/deprecated/removed with 1.40/1.41/1.42
    - add `isoDate`/`url` tablesorter parsers, removed since 1.40
    - add `jquery.tipsy` RL module, removed since 1.41
    - add `mw.language.commafy`, removed since 1.40
    - add missing `script` property of a RL module (not added recently, just an oversight)
    Adrien LESÉNÉCHAL committed May 28, 2024
    Configuration menu
    Copy the full SHA
    6712c9c View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. Bump version to 1.8.0

    Adrien LESÉNÉCHAL committed May 29, 2024
    Configuration menu
    Copy the full SHA
    4a6203c View commit details
    Browse the repository at this point in the history