From d643b5bb13e98275a7319bffdc9e89ac0e6a9c00 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 23 Feb 2024 14:59:47 -0800 Subject: [PATCH] lex: tweak deprecation note (#2222) * lex: tweak deprecation note The motivation with this is that the docs site hides deprecated endpoint, and the behavior was updated to only do this when "deprecation" is the first word of the description (to avoid hiding some endpoints which just talk about deprecation). * make codegen --- lexicons/com/atproto/temp/fetchLabels.json | 2 +- packages/api/src/client/lexicons.ts | 2 +- packages/bsky/src/lexicon/lexicons.ts | 2 +- packages/ozone/src/lexicon/lexicons.ts | 2 +- packages/pds/src/lexicon/lexicons.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lexicons/com/atproto/temp/fetchLabels.json b/lexicons/com/atproto/temp/fetchLabels.json index d76041ac296..57c3f732cdb 100644 --- a/lexicons/com/atproto/temp/fetchLabels.json +++ b/lexicons/com/atproto/temp/fetchLabels.json @@ -4,7 +4,7 @@ "defs": { "main": { "type": "query", - "description": "Fetch all labels from a labeler created after a certain date. DEPRECATED: use queryLabels or subscribeLabels instead", + "description": "DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.", "parameters": { "type": "params", "properties": { diff --git a/packages/api/src/client/lexicons.ts b/packages/api/src/client/lexicons.ts index d546b70b987..14e4c1cb81e 100644 --- a/packages/api/src/client/lexicons.ts +++ b/packages/api/src/client/lexicons.ts @@ -4867,7 +4867,7 @@ export const schemaDict = { main: { type: 'query', description: - 'Fetch all labels from a labeler created after a certain date. DEPRECATED: use queryLabels or subscribeLabels instead', + 'DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.', parameters: { type: 'params', properties: { diff --git a/packages/bsky/src/lexicon/lexicons.ts b/packages/bsky/src/lexicon/lexicons.ts index d546b70b987..14e4c1cb81e 100644 --- a/packages/bsky/src/lexicon/lexicons.ts +++ b/packages/bsky/src/lexicon/lexicons.ts @@ -4867,7 +4867,7 @@ export const schemaDict = { main: { type: 'query', description: - 'Fetch all labels from a labeler created after a certain date. DEPRECATED: use queryLabels or subscribeLabels instead', + 'DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.', parameters: { type: 'params', properties: { diff --git a/packages/ozone/src/lexicon/lexicons.ts b/packages/ozone/src/lexicon/lexicons.ts index d546b70b987..14e4c1cb81e 100644 --- a/packages/ozone/src/lexicon/lexicons.ts +++ b/packages/ozone/src/lexicon/lexicons.ts @@ -4867,7 +4867,7 @@ export const schemaDict = { main: { type: 'query', description: - 'Fetch all labels from a labeler created after a certain date. DEPRECATED: use queryLabels or subscribeLabels instead', + 'DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.', parameters: { type: 'params', properties: { diff --git a/packages/pds/src/lexicon/lexicons.ts b/packages/pds/src/lexicon/lexicons.ts index d546b70b987..14e4c1cb81e 100644 --- a/packages/pds/src/lexicon/lexicons.ts +++ b/packages/pds/src/lexicon/lexicons.ts @@ -4867,7 +4867,7 @@ export const schemaDict = { main: { type: 'query', description: - 'Fetch all labels from a labeler created after a certain date. DEPRECATED: use queryLabels or subscribeLabels instead', + 'DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.', parameters: { type: 'params', properties: {