fix(deps): update dependency @atproto/api to ^0.13.0 #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.6.4
->^0.13.0
Release Notes
bluesky-social/atproto (@atproto/api)
v0.13.20
Compare Source
Patch Changes
#3222
207728d2b
Thanks @gaearon! - Add optional reasons param to listNotificationsUpdated dependencies [
9fd65ba0f
]:v0.13.19
Compare Source
Patch Changes
ed2236220
Thanks @foysalit! - Allow moderators to optionally acknowledge all open subjects of an account when acknowledging account level reportsv0.13.18
Compare Source
Patch Changes
a3ce23c4c
Thanks @gaearon! - Add hotness as a thread sorting optionv0.13.17
Compare Source
Patch Changes
#2978
a4b528e5f
Thanks @rafaelbsky! - Add searchStarterPacks and searchStarterPacksSkeleton#3056
2e7aa211d
Thanks @rafaelbsky! - Add com.atproto.temp.addReservedHandle lexiconv0.13.16
Compare Source
Patch Changes
#2988
48d08a469
Thanks @foysalit! - Make durationInHours optional for mute reporter event#2911
bac9be2d3
Thanks @matthieusieben! - Export the generated lexiconsschemas
definitions#2953
561431fe4
Thanks @rafaelbsky! - Add convoView.opened to lexicon definitionUpdated dependencies [
bac9be2d3
,bac9be2d3
]:v0.13.15
Compare Source
Patch Changes
#2661
d6f33b474
Thanks @foysalit! - Add mod events and status filter for account and record hosting status#2957
b6eeb81c6
Thanks @gaearon! - Detect facets in parallel#2917
839202a3d
Thanks @matthieusieben! - Allow instantiating an API Agent with a string or URL#2933
e680d55ca
Thanks @mozzius! - Fix handling of invalid facets in RichText#2905
c4b5e5395
Thanks @foysalit! - Add user specific and instance-wide settings api for ozonev0.13.14
Compare Source
Patch Changes
#2918
209238769
Thanks @devinivy! - add app.bsky.unspecced.getConfig endpoint#2931
73f40e63a
Thanks @dholms! - Add threatSignatures to ozone repo viewsv0.13.13
Compare Source
Patch Changes
19e36afb2
Thanks @foysalit! - Add collections and subjectType filters to ozone's queryEvents and queryStatuses endpointsv0.13.12
Compare Source
Patch Changes
22d039a22
Thanks @foysalit! - Sets api to manage lists of strings on ozone, mostly aimed for automod configurationv0.13.11
Compare Source
Patch Changes
a0531ce42
Thanks @estrattonbailey! - Adds support for muting words within link cards attached toRecordWithMedia
embeds.v0.13.10
Compare Source
Patch Changes
df14df522
Thanks @dholms! - Add tools.ozone.signature lexiconsv0.13.9
Compare Source
Patch Changes
a2bad977a
Thanks @foysalit! - Add getRepos and getRecords endpoints for bulk fetchingv0.13.8
Compare Source
Patch Changes
#2771
2676206e4
Thanks @mozzius! - Add pinned posts to profile record and getAuthorFeedUpdated dependencies [
a07b21151
,a07b21151
,a07b21151
,eb20ff64a
,87a1f2426
]:v0.13.7
Compare Source
Patch Changes
#2807
e6bd5aecc
Thanks @foysalit! - Introduce a acknowledgeAccountSubjects flag on takedown event to ack all subjects from the author that need review#2810
33aa0c722
Thanks @estrattonbailey! - Add NUX APIUpdated dependencies [
98711a147
]:v0.13.6
Compare Source
Patch Changes
e4d41d66f
Thanks @foysalit! - Add language property to communication templatesv0.13.5
Compare Source
Patch Changes
80ada8f47
Thanks @devinivy! - Lexicons and support for video embeds within bsky posts.v0.13.4
Compare Source
Patch Changes
#2714
d9ffa3c46
Thanks @matthieusieben! - Drop use ofAtpBaseClient
class#2714
d9ffa3c46
Thanks @matthieusieben! - Expose theCredentialSession
class that can be used to instantiate bothAgent
andXrpcClient
, while internally managing credential based (username/password) sessions.bbca17bc5
Thanks @matthieusieben! - Deprecate Agent.accountDid in favor of Agent.assertDid#2737
a8e1f9000
Thanks @estrattonbailey! - Addthreadgate: ThreadgateView
to response fromgetPostThread
#2714
d9ffa3c46
Thanks @matthieusieben! -Agent
is no longer an abstract class. Instead it can be instantiated using object implementing a newSessionManager
interface. If your project extendsAgent
and overrides the constructor or any method implementations, consider that you may want to call them fromsuper
.Updated dependencies [
d9ffa3c46
,d9ffa3c46
,d9ffa3c46
]:v0.13.3
Compare Source
Patch Changes
4ab248354
Thanks @haileyok! - addquoteCount
to embed viewv0.13.2
Compare Source
Patch Changes
#3222
207728d2b
Thanks @gaearon! - Add optional reasons param to listNotificationsUpdated dependencies [
9fd65ba0f
]:v0.13.1
Compare Source
Patch Changes
ed2236220
Thanks @foysalit! - Allow moderators to optionally acknowledge all open subjects of an account when acknowledging account level reportsv0.13.0
Compare Source
Minor Changes
b934b396b
Thanks @matthieusieben!Motivation
The motivation for these changes is the need to make the
@atproto/api
packagecompatible with OAuth session management. We don't have OAuth client support
"launched" and documented quite yet, so you can keep using the current app
password authentication system. When we do "launch" OAuth support and begin
encouraging its usage in the near future (see the OAuth
Roadmap), these
changes will make it easier to migrate.
In addition, the redesigned session management system fixes a bug that could
cause the session data to become invalid when Agent clones are created (e.g.
using
agent.withProxy()
).New Features
We've restructured the
XrpcClient
HTTP fetch handler to be specified duringthe instantiation of the XRPC client, through the constructor, instead of using
a default implementation (which was statically defined).
With this refactor, the XRPC client is now more modular and reusable. Session
management, retries, cryptographic signing, and other request-specific logic can
be implemented in the fetch handler itself rather than by the calling code.
A new abstract class named
Agent
, has been added to@atproto/api
. This classwill be the base class for all Bluesky agents classes in the
@atproto
ecosystem. It is meant to be extended by implementations that provide session
management and fetch handling.
As you adapt your code to these changes, make sure to use the
Agent
typewherever you expect to receive an agent, and use the
AtpAgent
type (class)only to instantiate your client. The reason for this is to be forward compatible
with the OAuth agent implementation that will also extend
Agent
, and notAtpAgent
.Breaking changes
Most of the changes introduced in this version are backward-compatible. However,
there are a couple of breaking changes you should be aware of:
fetch
: The ability to customize thefetch: FetchHandler
property of
@atproto/xrpc
'sClient
and@atproto/api
'sAtpAgent
classeshas been removed. Previously, the
fetch
property could be set to a functionthat would be used as the fetch handler for that instance, and was initialized
to a default fetch handler. That property is still accessible in a read-only
fashion through the
fetchHandler
property and can only be set during theinstance creation. Attempting to set/get the
fetch
property will now resultin an error.
fetch()
method, as well as WhatWG compliantRequest
andHeaders
constructors, must be globally available in your environment. Use a polyfill
if necessary.
AtpBaseClient
has been removed. TheAtpServiceClient
has been renamedAtpBaseClient
. Any code using either of these classes will need to beupdated.
XrpcClient
in itsxrpc
property, theAtpBaseClient
(formerlyAtpServiceClient
) class - created throughlex-cli
- now extends theXrpcClient
class. This means that a clientinstance now passes the
instanceof XrpcClient
check. Thexrpc
property nowreturns the instance itself and has been deprecated.
setSessionPersistHandler
is no longer available on theAtpAgent
orBskyAgent
classes. The session handler can only be set though thepersistSession
options of theAtpAgent
constructor.BskyAgent
extendsAtpAgent
: but add no functionality (hence itsdeprecation).
AtpAgent
extendsAgent
: adds password based session management.Agent
extendsAtpBaseClient
: this abstract class that adds syntactic sugarmethods
app.bsky
lexicons. It also adds abstract session managementmethods and adds atproto specific utilities
(
labelers
&proxy
headers, cloning capability)AtpBaseClient
extendsXrpcClient
: automatically code that adds fullytyped lexicon defined namespaces (
instance.app.bsky.feed.getPosts()
) tothe
XrpcClient
.XrpcClient
is the base class.Non-breaking changes
com.*
andapp.*
namespaces have been made directly available to everyAgent
instances.Deprecations
@atproto/xrpc
package has been deprecated. Usenamed exports instead.
Client
andServiceClient
classes are now deprecated. They are replaced by a singleXrpcClient
class.@atproto/api
package has been deprecated. Usenamed exports instead.
BskyAgent
has been deprecated. Use theAtpAgent
class instead.xrpc
property of theAtpClient
instances has been deprecated. Theinstance itself should be used as the XRPC client.
api
property of theAtpAgent
andBskyAgent
instances has beendeprecated. Use the instance itself instead.
Migration
The
@atproto/api
packageIf you were relying on the
AtpBaseClient
solely to perform validation, usethis:
If you are extending the
BskyAgent
to perform customsession
manipulation, define your ownAgent
subclass instead:If you are monkey patching the
xrpc
service client to perform client-side rate limiting, you can now do this in theFetchHandler
function:If you configure a static
fetch
handler on theBskyAgent
class - for exampleto modify the headers of every request - you can now do this by providing your
own
fetch
function:The
@atproto/xrpc
packageThe
Client
andServiceClient
classes are now deprecated. If you need alexicon based client, you should update the code to use the
XrpcClient
classinstead.
The deprecated
ServiceClient
class now extends the newXrpcClient
class.Because of this, the
fetch
FetchHandler
can no longer be configured on theClient
instances (including the default export of the package). If you are notrelying on the
fetch
FetchHandler
, the new changes should have no impact onyour code. Beware that the deprecated classes will eventually be removed in a
future version.
Since its use has completely changed, the
FetchHandler
type has alsocompletely changed. The new
FetchHandler
type is now a function that receivesa
url
pathname and aRequestInit
object and returns aPromise<Response>
.This function is responsible for making the actual request to the server.
A noticeable change that has been introduced is that the
uri
field of theServiceClient
class has not been ported to the newXrpcClient
class. It isnow the responsibility of the
FetchHandler
to determine the full URL to makethe request to. The same goes for the
headers
, which should now be set throughthe
FetchHandler
function.If you do rely on the legacy
Client.fetch
property to perform custom logicupon request, you will need to migrate your code to use the new
XrpcClient
class. The
XrpcClient
class has a similar API to the oldServiceClient
class, but with a few differences:
The
Client
+ServiceClient
duality was removed in favor of a singleXrpcClient
class. This means that:lexicon registry, you can maintain one yourself using a
new Lexicons
(from@atproto/lexicon
).FetchHandler
is no longer a statically defined property of theClient
class. Instead, it is passed as an argument to theXrpcClient
constructor.
The
XrpcClient
constructor now requires aFetchHandler
function as thefirst argument, and an optional
Lexicon
instance as the second argument.The
setHeader
andunsetHeader
methods were not ported to the newXrpcClient
class. If you need to set or unset headers, you should do so inthe
FetchHandler
function provided in the constructor arg.If your fetch handler does not require any "custom logic", and all you need is
an
XrpcClient
that makes its HTTP requests towards a static service URL, theprevious example can be simplified to:
If you need to add static headers to all requests, you can instead instantiate
the
XrpcClient
as follows:If you need the headers or service url to be dynamic, you can define them using
functions:
b934b396b
Thanks @matthieusieben! - Add the ability to usefetch()
compatibleBodyInit
body when making XRPC calls.Patch Changes
b934b396b
,2bdf75d7a
,b934b396b
,b934b396b
]:v0.12.29
Compare Source
Patch Changes
dc471da26
Thanks @dholms! - Add lxm and exp parameters to com.atproto.server.getServiceAuthv0.12.28
Compare Source
Patch Changes
951a3df15
Thanks @estrattonbailey! - Removeapp.bsky.feed.detach
record, to be replaced byapp.bsky.feed.postgate
record in a future release.v0.12.27
Compare Source
Patch Changes
ff803fd2b
Thanks @estrattonbailey! - Addsapp.bsky.feed.detach
record lexicons.v0.12.26
Compare Source
Patch Changes
77c5306d2
Thanks @estrattonbailey! - Updates muted words lexicons to include new attributesid
,actorTarget
, andexpiresAt
. Adds and updates methods in API SDK for better management of muted words.v0.12.25
Compare Source
Patch Changes
#2570
12dcdb668
Thanks @sugyan! - FixhasMutedWord
for facets with multiple features#2648
76c91f832
Thanks @dholms! - Support for priority notificationsv0.12.24
Compare Source
Patch Changes
#2613
ed5810179
Thanks @haileyok! - Support for starter packs in record embed views.#2554
0529bec99
Thanks @sugyan! - Add missinggetPreferences
union return typesv0.12.23
Compare Source
Patch Changes
bc861a2c2
Thanks @pfrazee! - Added bsky app state preference and improved protections against race conditions in preferences sdkv0.12.22
Compare Source
Patch Changes
af7d3912a
Thanks @devinivy! - Support for starter packs (app.bsky.graph.starterpack)v0.12.21
Compare Source
Patch Changes
3ad051996
Thanks @foysalit! - Add DB backed team member management for ozonev0.12.20
Compare Source
Patch Changes
ea0f10b5d
Thanks @pfrazee! - Remove client-side enforcement of labeler limitsv0.12.19
Compare Source
Patch Changes
7c1973841
Thanks @dholms! - Add thread mute routes and viewer statev0.12.18
Compare Source
Patch Changes
58abcbd8b
Thanks @estrattonbailey! - Adds "social proof":knowFollowers
toViewerState
forProfileViewDetailed
views and
app.bsky.graph.getKnownFollowers
method for listing known followersof a given user.
v0.12.17
Compare Source
Patch Changes
2b21b5be2
Thanks @foysalit! - Add com.atproto.admin.searchAccounts lexicon to allow searching for accounts using email addressv0.12.16
Compare Source
Patch Changes
9495af23b
Thanks @dholms! - Allow updating deactivation state through admin.updateSubjectStatusv0.12.15
Compare Source
Patch Changes
255d5ea1f
Thanks @dholms! - Account deactivation. Current hosting status returned on session routes.v0.12.14
Compare Source
Patch Changes
c4af6a409
Thanks @devinivy! - Support for post embeds in chat lexiconsv0.12.13
Compare Source
Patch Changes
1d4ab5d04
Thanks @dholms! - Add privileged flag to app password routesv0.12.12
Compare Source
Patch Changes
1f560f021
Thanks @foysalit! - Add com.atproto.label.queryLabels endpoint on appview and allow viewing external labels through ozonev0.12.11
Compare Source
Patch Changes
06d2328ee
Thanks @devinivy! - Misc tweaks and fixes to chat lexiconsv0.12.10
Compare Source
Patch Changes
d32f7215f
Thanks @devinivy! - Add lexicons for chat.bsky namespacev0.12.9
Compare Source
Patch Changes
f83b4c8ca
Thanks @haileyok! - Modify label-handling on user's own content to still apply blurringv0.12.8
Compare Source
Patch Changes
58f719cc1
Thanks @devinivy! - Add grandparent author to feed item reply refv0.12.7
Compare Source
Patch Changes
58551bbe0
Thanks @foysalit! - Allow muting reports from accounts via#modEventMuteReporter
eventv0.12.6
Compare Source
Patch Changes
b9b7c5821
Thanks @estrattonbailey! - Introduces V2 of saved feeds preferences. V2 and v1 prefs are incompatible. v1methods and preference objects are retained for backwards compatability, but are
considered deprecated. Developers should immediately migrate to v2 interfaces.
v0.12.5
Compare Source
Patch Changes
3424a1770
Thanks @pfrazee! - Add authFactorToken to session objectsv0.12.4
Compare Source
Patch Changes
93a4a4df9
Thanks @devinivy! - Support for email auth factor lexiconsv0.12.3
Compare Source
Patch Changes
#2383
0edef0ec0
Thanks @dholms! - Added feed generator interaction lexicons#2409
c6d758b8b
Thanks @devinivy! - Support for upcoming post search paramsv0.12.2
Compare Source
Patch Changes
dc471da26
Thanks @dholms! - Add lxm and exp parameters to com.atproto.server.getServiceAuthv0.12.1
Compare Source
Patch Changes
7c1973841
Thanks @dholms! - Add thread mute routes and viewer statev0.12.0
Compare Source
Minor Changes
f689bd51a
Thanks @matthieusieben! - Build system rework, stop bundling dependencies.Patch Changes
#2338
36f2e966c
Thanks @pfrazee! - Fix: correctly detected blocked quote-posts when moderating postsUpdated dependencies [
f689bd51a
]:v0.11.2
Compare Source
Patch Changes
7dd9941b7
Thanks @estrattonbailey! - Remove unecessary escapes from regex, which was causing a minification error when bundled in React Native.v0.11.1
Compare Source
Patch Changes
219480764
Thanks @pfrazee! - Fixed an issue that would cause agent clones to drop the PDS URI config.v0.11.0
Compare Source
Minor Changes
4eaadc0ac
Thanks @dholms! - - Breaking changesmoderate*
APIs which now output aModerationUI
object.agent.getPreferences()
output objectBskyPreferences
has been modified.com.atproto.admin
totools.ozone
namespace.Agent.configure()
andagent.configureLabelerHeader()
.agent.addLabeler()
andagent.removeLabeler()
preference methods.moderate*
APIs.agent.getLabelers()
andagent.getLabelDefinitions()
.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.