mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 14:47:30 +00:00
98a2ab0686
This PR changes v0.0.7 of the extension API to v0.1.0. We had a false-start in releasing v0.0.7, which has since been yanked, so we need a new version number. We'll publish v0.1.0 to crates.io once the Preview build is out tomorrow. We're incrementing the minor version so that we have some leeway in putting out patch releases of the crate within a given extension API release. Release Notes: - N/A
13 lines
594 B
Text
13 lines
594 B
Text
interface nodejs {
|
|
/// Returns the path to the Node binary used by Zed.
|
|
node-binary-path: func() -> result<string, string>;
|
|
|
|
/// Returns the latest version of the given NPM package.
|
|
npm-package-latest-version: func(package-name: string) -> result<string, string>;
|
|
|
|
/// Returns the installed version of the given NPM package, if it exists.
|
|
npm-package-installed-version: func(package-name: string) -> result<option<string>, string>;
|
|
|
|
/// Installs the specified NPM package.
|
|
npm-install-package: func(package-name: string, version: string) -> result<_, string>;
|
|
}
|