Skip to content

Commit

Permalink
lex: deprecate getRecord commit param (#2349)
Browse files Browse the repository at this point in the history
* lexicons: mark getRecord commit param as deprecated

* codgen lex description tweak
  • Loading branch information
bnewbold authored Mar 20, 2024
1 parent c8a5fb4 commit f8dffa2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lexicons/com/atproto/sync/getRecord.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"commit": {
"type": "string",
"format": "cid",
"description": "An optional past commit CID."
"description": "DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,8 @@ export const schemaDict = {
commit: {
type: 'string',
format: 'cid',
description: 'An optional past commit CID.',
description:
'DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface QueryParams {
collection: string
/** Record Key */
rkey: string
/** An optional past commit CID. */
/** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
commit?: string
}

Expand Down
3 changes: 2 additions & 1 deletion packages/ozone/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,8 @@ export const schemaDict = {
commit: {
type: 'string',
format: 'cid',
description: 'An optional past commit CID.',
description:
'DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface QueryParams {
collection: string
/** Record Key */
rkey: string
/** An optional past commit CID. */
/** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
commit?: string
}

Expand Down
3 changes: 2 additions & 1 deletion packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,8 @@ export const schemaDict = {
commit: {
type: 'string',
format: 'cid',
description: 'An optional past commit CID.',
description:
'DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface QueryParams {
collection: string
/** Record Key */
rkey: string
/** An optional past commit CID. */
/** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
commit?: string
}

Expand Down

0 comments on commit f8dffa2

Please sign in to comment.