mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
refactor(docs): use @experimental
instead of @tags unstable
(#23884)
This commit is contained in:
parent
fabd9a214b
commit
7ab7a14db7
5 changed files with 336 additions and 332 deletions
366
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
366
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
File diff suppressed because it is too large
Load diff
280
cli/tsc/dts/lib.deno_webgpu.d.ts
vendored
280
cli/tsc/dts/lib.deno_webgpu.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
@ -7,7 +7,7 @@
|
|||
|
||||
/**
|
||||
* @category Messaging
|
||||
* @tags unstable
|
||||
* @experimental
|
||||
*/
|
||||
declare interface BroadcastChannelEventMap {
|
||||
"message": MessageEvent;
|
||||
|
@ -16,7 +16,7 @@ declare interface BroadcastChannelEventMap {
|
|||
|
||||
/**
|
||||
* @category Messaging
|
||||
* @tags unstable
|
||||
* @experimental
|
||||
*/
|
||||
declare interface BroadcastChannel extends EventTarget {
|
||||
/**
|
||||
|
@ -59,7 +59,7 @@ declare interface BroadcastChannel extends EventTarget {
|
|||
|
||||
/**
|
||||
* @category Messaging
|
||||
* @tags unstable
|
||||
* @experimental
|
||||
*/
|
||||
declare var BroadcastChannel: {
|
||||
readonly prototype: BroadcastChannel;
|
||||
|
|
|
@ -1463,7 +1463,7 @@ fn lsp_hover_asset() {
|
|||
"value": "interface Date",
|
||||
},
|
||||
"Enables basic storage and retrieval of dates and times.",
|
||||
"\n\n*@category* - Temporal \n\n*@tags* - unstable"
|
||||
"\n\n*@category* - Temporal \n\n*@experimental*"
|
||||
],
|
||||
"range": {
|
||||
"start": { "line": 111, "character": 10, },
|
||||
|
@ -2039,7 +2039,7 @@ fn lsp_hover_unstable_always_enabled() {
|
|||
"value":"interface Deno.ForeignLibraryInterface"
|
||||
},
|
||||
"**UNSTABLE**: New API, yet to be vetted.\n\nA foreign library interface descriptor.",
|
||||
"\n\n*@category* - FFI \n\n*@tags* - unstable",
|
||||
"\n\n*@category* - FFI \n\n*@experimental*",
|
||||
],
|
||||
"range":{
|
||||
"start":{ "line":0, "character":14 },
|
||||
|
@ -2084,7 +2084,7 @@ fn lsp_hover_unstable_enabled() {
|
|||
"value":"interface Deno.ForeignLibraryInterface"
|
||||
},
|
||||
"**UNSTABLE**: New API, yet to be vetted.\n\nA foreign library interface descriptor.",
|
||||
"\n\n*@category* - FFI \n\n*@tags* - unstable",
|
||||
"\n\n*@category* - FFI \n\n*@experimental*",
|
||||
],
|
||||
"range":{
|
||||
"start":{ "line":0, "character":14 },
|
||||
|
|
|
@ -70,14 +70,8 @@ for (const file of project.getSourceFiles()) {
|
|||
}
|
||||
|
||||
if (unstableFiles.includes(file)) {
|
||||
const tagsTag = tags.find((tag) => tag.getTagName() === "tags");
|
||||
if (
|
||||
!(tagsTag?.getComment() &&
|
||||
tagsTag.getCommentText().includes("unstable"))
|
||||
) {
|
||||
errors.push(
|
||||
getErrorPrefix(node) + "JSDoc @tags tag with value 'unstable'",
|
||||
);
|
||||
if (!tags.find((tag) => tag.getTagName() === "experimental")) {
|
||||
errors.push(getErrorPrefix(node) + "JSDoc @experimental tag");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue