@atproto/pds 0.4.1 → 0.4.2
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 +13 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +2 -2
- package/package.json +12 -12
- package/src/lexicon/lexicons.ts +1 -1
- package/tests/_util.ts +3 -3
- package/tests/proxied/__snapshots__/feedgen.test.ts.snap +6 -6
- package/tests/proxied/__snapshots__/views.test.ts.snap +82 -240
- package/tests/proxied/admin.test.ts +3 -2
- package/tests/proxied/feedgen.test.ts +1 -2
- package/tests/proxied/procedures.test.ts +7 -3
- package/tests/proxied/read-after-write.test.ts +1 -1
- package/tests/proxied/views.test.ts +5 -5
- package/tests/seeds/basic.ts +20 -20
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`0c815b964`](https://github.com/bluesky-social/atproto/commit/0c815b964c030aa0f277c40bf9786f130dc320f4), [`61b3d2525`](https://github.com/bluesky-social/atproto/commit/61b3d25253353db2da1336004f94e7dc5adb0410), [`43531905c`](https://github.com/bluesky-social/atproto/commit/43531905ce1aec6d36d9be5943782811ecca6e6d), [`61b3d2525`](https://github.com/bluesky-social/atproto/commit/61b3d25253353db2da1336004f94e7dc5adb0410)]:
|
8
|
+
- @atproto/syntax@0.2.0
|
9
|
+
- @atproto/api@0.10.2
|
10
|
+
- @atproto/lexicon@0.3.2
|
11
|
+
- @atproto/repo@0.3.8
|
12
|
+
- @atproto/xrpc@0.4.2
|
13
|
+
- @atproto/xrpc-server@0.4.3
|
14
|
+
- @atproto/aws@0.1.8
|
15
|
+
|
3
16
|
## 0.4.1
|
4
17
|
|
5
18
|
### Patch Changes
|
package/dist/index.js
CHANGED
@@ -202482,7 +202482,7 @@ var ensureValidRecordKey = (rkey) => {
|
|
202482
202482
|
if (rkey.length > 512 || rkey.length < 1) {
|
202483
202483
|
throw new InvalidRecordKeyError("record key must be 1 to 512 characters");
|
202484
202484
|
}
|
202485
|
-
if (!/^[a-zA-Z0-9_
|
202485
|
+
if (!/^[a-zA-Z0-9_~.:-]{1,512}$/.test(rkey)) {
|
202486
202486
|
throw new InvalidRecordKeyError("record key syntax not valid (regex)");
|
202487
202487
|
}
|
202488
202488
|
if (rkey == "." || rkey == "..")
|
@@ -217566,7 +217566,7 @@ var schemaDict = {
|
|
217566
217566
|
defs: {
|
217567
217567
|
main: {
|
217568
217568
|
type: "query",
|
217569
|
-
description: "Fetch all labels from a labeler created after a certain date.
|
217569
|
+
description: "DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.",
|
217570
217570
|
parameters: {
|
217571
217571
|
type: "params",
|
217572
217572
|
properties: {
|
@@ -235743,6 +235743,9 @@ var getKey = (doc) => {
|
|
235743
235743
|
const key = getSigningKey(doc);
|
235744
235744
|
if (!key)
|
235745
235745
|
return void 0;
|
235746
|
+
return getDidKeyFromMultibase(key);
|
235747
|
+
};
|
235748
|
+
var getDidKeyFromMultibase = (key) => {
|
235746
235749
|
const keyBytes = multibaseToBytes(key.publicKeyMultibase);
|
235747
235750
|
let didKey = void 0;
|
235748
235751
|
if (key.type === "EcdsaSecp256r1VerificationKey2019") {
|
@@ -244050,7 +244053,7 @@ var schemaDict2 = {
|
|
244050
244053
|
defs: {
|
244051
244054
|
main: {
|
244052
244055
|
type: "query",
|
244053
|
-
description: "Fetch all labels from a labeler created after a certain date.
|
244056
|
+
description: "DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.",
|
244054
244057
|
parameters: {
|
244055
244058
|
type: "params",
|
244056
244059
|
properties: {
|