🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@gerritcodereview/typescript-api

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gerritcodereview/typescript-api

Gerrit Code Review - TypeScript API

npmnpm
Version
3.4.5
Version published
Weekly downloads
232
-14.71%
Maintainers
4
Weekly downloads
 
Created
Source

Gerrit TypeScript Plugin API

This package contains the types for developing browser plugins for the Gerrit Code Review web application. General documentation for plugin developers can be found at gerrit-review.googlesource.com.

The .ts files only contain types, interfaces and enums, and thus the compiled .js files only contain the enums. For JavaScript plugins this package is not really useful or necessary, but it also serves as the source of truth for what plugin APIs are actually supported.

Versioning of this API matches the MAJOR and MINOR versions of the general Gerrit releases, but the PATCH version is independent. When you are building a plugin for Gerrit x.y.z, then you should use the API package x.y.n, where n is the highest available patch version of the API. Patch versions will only contain additions and fixes, minor versions may include API removals.

All types in here should use the declare keyword to prevent bundlers from renaming fields, which would break communication across separately built bundles. enums are the exception, because their keys are not referenced across bundles, and values will not be renamed by bundlers as they are strings.

This API is also used by other apps embedding gr-diff and any breaking changes should be discussed with the Gerrit core team and properly versioned.

FAQs

Package last updated on 29 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts