@atproto/bsky 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.js +10 -6
- package/dist/index.js.map +2 -2
- package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +1 -1
- package/package.json +6 -6
- package/src/api/app/bsky/feed/getAuthorFeed.ts +7 -0
- package/src/lexicon/lexicons.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +1 -0
- package/tests/seeds/author-feed.ts +95 -0
- package/tests/views/__snapshots__/author-feed.test.ts.snap +10 -10
- package/tests/views/author-feed.test.ts +20 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atproto/bsky
|
|
2
2
|
|
|
3
|
+
## 0.0.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1776](https://github.com/bluesky-social/atproto/pull/1776) [`ffe39aae`](https://github.com/bluesky-social/atproto/commit/ffe39aae8394394f73bbfaa9047a8b5818aa053a) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Integrate `posts_and_author_threads` filter into `getAuthorFeed` implementation.
|
|
8
|
+
|
|
9
|
+
- [#1776](https://github.com/bluesky-social/atproto/pull/1776) [`ffe39aae`](https://github.com/bluesky-social/atproto/commit/ffe39aae8394394f73bbfaa9047a8b5818aa053a) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Add `posts_and_author_threads` filter to `getAuthorFeed`
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`ffe39aae`](https://github.com/bluesky-social/atproto/commit/ffe39aae8394394f73bbfaa9047a8b5818aa053a)]:
|
|
12
|
+
- @atproto/api@0.7.2
|
|
13
|
+
|
|
3
14
|
## 0.0.18
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -119021,6 +119021,8 @@ var skeleton2 = async (params2, ctx) => {
|
|
|
119021
119021
|
feedItemsQb = feedItemsQb.where("type", "=", "post").whereExists((qb) => qb.selectFrom("post_embed_image").select("post_embed_image.postUri").whereRef("post_embed_image.postUri", "=", "feed_item.postUri"));
|
|
119022
119022
|
} else if (filter === "posts_no_replies") {
|
|
119023
119023
|
feedItemsQb = feedItemsQb.where((qb) => qb.where("post.replyParent", "is", null).orWhere("type", "=", "repost"));
|
|
119024
|
+
} else if (filter === "posts_and_author_threads") {
|
|
119025
|
+
feedItemsQb = feedItemsQb.where((qb) => qb.where("type", "=", "repost").orWhere("post.replyParent", "is", null).orWhere("post.replyRoot", "like", `at://${actorDid}/%`));
|
|
119024
119026
|
}
|
|
119025
119027
|
const keyset = new FeedKeyset(ref("feed_item.sortAt"), ref("feed_item.cid"));
|
|
119026
119028
|
feedItemsQb = paginate(feedItemsQb, {
|
|
@@ -124569,7 +124571,8 @@ var schemaDict = {
|
|
|
124569
124571
|
knownValues: [
|
|
124570
124572
|
"posts_with_replies",
|
|
124571
124573
|
"posts_no_replies",
|
|
124572
|
-
"posts_with_media"
|
|
124574
|
+
"posts_with_media",
|
|
124575
|
+
"posts_and_author_threads"
|
|
124573
124576
|
],
|
|
124574
124577
|
default: "posts_with_replies"
|
|
124575
124578
|
}
|
|
@@ -129238,20 +129241,20 @@ var LABELS = {
|
|
|
129238
129241
|
strings: {
|
|
129239
129242
|
settings: {
|
|
129240
129243
|
en: {
|
|
129241
|
-
name: "
|
|
129242
|
-
description: "This user has requested that their
|
|
129244
|
+
name: "Sign-in Required",
|
|
129245
|
+
description: "This user has requested that their account only be shown to signed-in users."
|
|
129243
129246
|
}
|
|
129244
129247
|
},
|
|
129245
129248
|
account: {
|
|
129246
129249
|
en: {
|
|
129247
129250
|
name: "Sign-in Required",
|
|
129248
|
-
description: "This user has requested that their
|
|
129251
|
+
description: "This user has requested that their account only be shown to signed-in users."
|
|
129249
129252
|
}
|
|
129250
129253
|
},
|
|
129251
129254
|
content: {
|
|
129252
129255
|
en: {
|
|
129253
129256
|
name: "Sign-in Required",
|
|
129254
|
-
description: "This user has requested that their content only be shown to
|
|
129257
|
+
description: "This user has requested that their content only be shown to signed-in users."
|
|
129255
129258
|
}
|
|
129256
129259
|
}
|
|
129257
129260
|
}
|
|
@@ -135997,7 +136000,8 @@ var schemaDict2 = {
|
|
|
135997
136000
|
knownValues: [
|
|
135998
136001
|
"posts_with_replies",
|
|
135999
136002
|
"posts_no_replies",
|
|
136000
|
-
"posts_with_media"
|
|
136003
|
+
"posts_with_media",
|
|
136004
|
+
"posts_and_author_threads"
|
|
136001
136005
|
],
|
|
136002
136006
|
default: "posts_with_replies"
|
|
136003
136007
|
}
|