@hypercerts-org/sdk-core 0.5.0-beta.0 → 0.7.0-beta.0
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/README.md +130 -8
- package/dist/index.cjs +93 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +64 -1
- package/dist/index.mjs +93 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -5
- package/.turbo/turbo-build.log +0 -40
- package/.turbo/turbo-test.log +0 -119
- package/CHANGELOG.md +0 -62
- package/eslint.config.mjs +0 -22
- package/rollup.config.js +0 -75
- package/src/auth/OAuthClient.ts +0 -497
- package/src/core/SDK.ts +0 -410
- package/src/core/config.ts +0 -243
- package/src/core/errors.ts +0 -257
- package/src/core/interfaces.ts +0 -324
- package/src/core/types.ts +0 -282
- package/src/errors.ts +0 -57
- package/src/index.ts +0 -107
- package/src/lexicons.ts +0 -64
- package/src/repository/BlobOperationsImpl.ts +0 -199
- package/src/repository/CollaboratorOperationsImpl.ts +0 -442
- package/src/repository/HypercertOperationsImpl.ts +0 -1146
- package/src/repository/LexiconRegistry.ts +0 -332
- package/src/repository/OrganizationOperationsImpl.ts +0 -282
- package/src/repository/ProfileOperationsImpl.ts +0 -281
- package/src/repository/RecordOperationsImpl.ts +0 -340
- package/src/repository/Repository.ts +0 -482
- package/src/repository/interfaces.ts +0 -909
- package/src/repository/types.ts +0 -111
- package/src/services/hypercerts/types.ts +0 -87
- package/src/storage/InMemorySessionStore.ts +0 -127
- package/src/storage/InMemoryStateStore.ts +0 -146
- package/src/storage.ts +0 -63
- package/src/testing/index.ts +0 -67
- package/src/testing/mocks.ts +0 -142
- package/src/testing/stores.ts +0 -285
- package/src/testing.ts +0 -64
- package/src/types.ts +0 -86
- package/tests/auth/OAuthClient.test.ts +0 -164
- package/tests/core/SDK.test.ts +0 -176
- package/tests/core/errors.test.ts +0 -81
- package/tests/repository/BlobOperationsImpl.test.ts +0 -155
- package/tests/repository/CollaboratorOperationsImpl.test.ts +0 -438
- package/tests/repository/HypercertOperationsImpl.test.ts +0 -652
- package/tests/repository/LexiconRegistry.test.ts +0 -192
- package/tests/repository/OrganizationOperationsImpl.test.ts +0 -240
- package/tests/repository/ProfileOperationsImpl.test.ts +0 -254
- package/tests/repository/RecordOperationsImpl.test.ts +0 -375
- package/tests/repository/Repository.test.ts +0 -149
- package/tests/utils/fixtures.ts +0 -117
- package/tests/utils/mocks.ts +0 -109
- package/tests/utils/repository-fixtures.ts +0 -78
- package/tsconfig.json +0 -11
- package/tsconfig.tsbuildinfo +0 -1
- package/vitest.config.ts +0 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypercerts-org/sdk-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-beta.0",
|
|
4
4
|
"description": "Framework-agnostic ATProto SDK core for authentication, repository operations, and lexicon management",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"repository": {
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"access": "public",
|
|
11
11
|
"registry": "https://registry.npmjs.org/"
|
|
12
12
|
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
13
17
|
"keywords": [
|
|
14
18
|
"atproto",
|
|
15
19
|
"hypercerts",
|
|
@@ -27,7 +31,7 @@
|
|
|
27
31
|
"@types/node": ">=20.10.0",
|
|
28
32
|
"@vitest/coverage-v8": "^3.2.4",
|
|
29
33
|
"@vitest/ui": "^3.2.4",
|
|
30
|
-
"jose": "^6.
|
|
34
|
+
"jose": "^6.1.3",
|
|
31
35
|
"rollup": "^4.53.3",
|
|
32
36
|
"rollup-plugin-dts": "^6.2.3",
|
|
33
37
|
"vitest": "^3.2.4"
|
|
@@ -71,11 +75,11 @@
|
|
|
71
75
|
"dependencies": {
|
|
72
76
|
"@atproto/api": "^0.17.5",
|
|
73
77
|
"@atproto/lexicon": "^0.5.1",
|
|
74
|
-
"@atproto/oauth-client": "^0.5.
|
|
75
|
-
"@atproto/oauth-client-node": "^0.3.
|
|
78
|
+
"@atproto/oauth-client": "^0.5.10",
|
|
79
|
+
"@atproto/oauth-client-node": "^0.3.12",
|
|
76
80
|
"eventemitter3": "^5.0.1",
|
|
77
81
|
"zod": "^3.24.4",
|
|
78
|
-
"@hypercerts-org/lexicon": "0.
|
|
82
|
+
"@hypercerts-org/lexicon": "0.7.0-beta.0"
|
|
79
83
|
},
|
|
80
84
|
"scripts": {
|
|
81
85
|
"test": "vitest",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @hypercerts-org/sdk-core@0.4.0 build /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
|
|
3
|
-
> rollup -c
|
|
4
|
-
|
|
5
|
-
[36m
|
|
6
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/index.ts[22m → [1mdist/index.mjs, dist/index.cjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.mjs, dist/index.cjs[22m in [1m2.8s[22m[39m
|
|
8
|
-
[36m
|
|
9
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/types.ts[22m → [1mdist/types.mjs, dist/types.cjs[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/types.mjs, dist/types.cjs[22m in [1m2.2s[22m[39m
|
|
11
|
-
[36m
|
|
12
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/errors.ts[22m → [1mdist/errors.mjs, dist/errors.cjs[22m...[39m
|
|
13
|
-
[32mcreated [1mdist/errors.mjs, dist/errors.cjs[22m in [1m2.2s[22m[39m
|
|
14
|
-
[36m
|
|
15
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/lexicons.ts[22m → [1mdist/lexicons.mjs, dist/lexicons.cjs[22m...[39m
|
|
16
|
-
[32mcreated [1mdist/lexicons.mjs, dist/lexicons.cjs[22m in [1m1.7s[22m[39m
|
|
17
|
-
[36m
|
|
18
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/storage.ts[22m → [1mdist/storage.mjs, dist/storage.cjs[22m...[39m
|
|
19
|
-
[32mcreated [1mdist/storage.mjs, dist/storage.cjs[22m in [1m1.5s[22m[39m
|
|
20
|
-
[36m
|
|
21
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/testing.ts[22m → [1mdist/testing.mjs, dist/testing.cjs[22m...[39m
|
|
22
|
-
[32mcreated [1mdist/testing.mjs, dist/testing.cjs[22m in [1m1.5s[22m[39m
|
|
23
|
-
[36m
|
|
24
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
25
|
-
[32mcreated [1mdist/index.d.ts[22m in [1m1.2s[22m[39m
|
|
26
|
-
[36m
|
|
27
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/types.ts[22m → [1mdist/types.d.ts[22m...[39m
|
|
28
|
-
[32mcreated [1mdist/types.d.ts[22m in [1m1.1s[22m[39m
|
|
29
|
-
[36m
|
|
30
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/errors.ts[22m → [1mdist/errors.d.ts[22m...[39m
|
|
31
|
-
[32mcreated [1mdist/errors.d.ts[22m in [1m465ms[22m[39m
|
|
32
|
-
[36m
|
|
33
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/lexicons.ts[22m → [1mdist/lexicons.d.ts[22m...[39m
|
|
34
|
-
[32mcreated [1mdist/lexicons.d.ts[22m in [1m913ms[22m[39m
|
|
35
|
-
[36m
|
|
36
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/storage.ts[22m → [1mdist/storage.d.ts[22m...[39m
|
|
37
|
-
[32mcreated [1mdist/storage.d.ts[22m in [1m837ms[22m[39m
|
|
38
|
-
[36m
|
|
39
|
-
[1m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/testing.ts[22m → [1mdist/testing.d.ts[22m...[39m
|
|
40
|
-
[32mcreated [1mdist/testing.d.ts[22m in [1m700ms[22m[39m
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @hypercerts-org/sdk-core@0.4.0 test /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
|
|
3
|
-
> vitest
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[1m[46m RUN [49m[22m [36mv3.2.4 [39m[90m/home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core[39m
|
|
7
|
-
|
|
8
|
-
[32m✓[39m tests/repository/CollaboratorOperationsImpl.test.ts [2m([22m[2m25 tests[22m[2m)[22m[32m 25[2mms[22m[39m
|
|
9
|
-
[32m✓[39m tests/repository/RecordOperationsImpl.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 34[2mms[22m[39m
|
|
10
|
-
[32m✓[39m tests/repository/HypercertOperationsImpl.test.ts [2m([22m[2m30 tests[22m[2m)[22m[32m 38[2mms[22m[39m
|
|
11
|
-
[32m✓[39m tests/repository/ProfileOperationsImpl.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
12
|
-
[32m✓[39m tests/repository/OrganizationOperationsImpl.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
13
|
-
[32m✓[39m tests/repository/LexiconRegistry.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
14
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mconstructor[2m > [22m[2mshould initialize with valid config
|
|
15
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
16
|
-
|
|
17
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mconstructor[2m > [22m[2mshould use custom fetch handler if provided
|
|
18
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
19
|
-
|
|
20
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mconstructor[2m > [22m[2mshould use custom timeout configuration
|
|
21
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
22
|
-
|
|
23
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mauthorize[2m > [22m[2mshould throw AuthenticationError for invalid identifier
|
|
24
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
25
|
-
|
|
26
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mauthorize[2m > [22m[2mshould use custom scope if provided
|
|
27
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
28
|
-
|
|
29
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mconstructor[2m > [22m[2mshould create SDK instance with valid config
|
|
30
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
31
|
-
|
|
32
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mconstructor[2m > [22m[2mshould accept optional cache
|
|
33
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
34
|
-
|
|
35
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mconstructor[2m > [22m[2mshould accept optional logger
|
|
36
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
37
|
-
|
|
38
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mconstructor[2m > [22m[2mshould work without storage (uses in-memory defaults)
|
|
39
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
40
|
-
|
|
41
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mcreateATProtoSDK factory[2m > [22m[2mshould create SDK instance
|
|
42
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
43
|
-
|
|
44
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mcreateATProtoSDK factory[2m > [22m[2mshould be equivalent to constructor
|
|
45
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
46
|
-
No lock mechanism provided. Credentials might get revoked.
|
|
47
|
-
|
|
48
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mauthorize[2m > [22m[2mshould throw ValidationError for empty identifier
|
|
49
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
50
|
-
|
|
51
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mauthorize[2m > [22m[2mshould trim identifier
|
|
52
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
53
|
-
|
|
54
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mcallback[2m > [22m[2mshould throw AuthenticationError for OAuth error params
|
|
55
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
56
|
-
|
|
57
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mcallback[2m > [22m[2mshould throw AuthenticationError for missing code
|
|
58
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
59
|
-
|
|
60
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mrestore[2m > [22m[2mshould return null for non-existent session
|
|
61
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
62
|
-
|
|
63
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mrestore[2m > [22m[2mshould throw AuthenticationError for invalid DID
|
|
64
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
65
|
-
|
|
66
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mrevoke[2m > [22m[2mshould not throw for non-existent session
|
|
67
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
68
|
-
|
|
69
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mstorage integration[2m > [22m[2mshould use provided session store
|
|
70
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
71
|
-
|
|
72
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mstorage integration[2m > [22m[2mshould use provided state store
|
|
73
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
74
|
-
|
|
75
|
-
[90mstderr[2m | tests/auth/OAuthClient.test.ts[2m > [22m[2mOAuthClient[2m > [22m[2mlogger integration[2m > [22m[2mshould use provided logger
|
|
76
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
77
|
-
|
|
78
|
-
[32m✓[39m tests/auth/OAuthClient.test.ts [2m([22m[2m14 tests[22m[2m)[22m[33m 301[2mms[22m[39m
|
|
79
|
-
[32m✓[39m tests/repository/Repository.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 60[2mms[22m[39m
|
|
80
|
-
[32m✓[39m tests/repository/BlobOperationsImpl.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
81
|
-
[32m✓[39m tests/core/errors.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
82
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mrestoreSession[2m > [22m[2mshould throw ValidationError for empty DID
|
|
83
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
84
|
-
|
|
85
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mrestoreSession[2m > [22m[2mshould handle non-existent session
|
|
86
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
87
|
-
|
|
88
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mrevokeSession[2m > [22m[2mshould throw ValidationError for empty DID
|
|
89
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
90
|
-
|
|
91
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mrepository[2m > [22m[2mshould throw ValidationError when session is null
|
|
92
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
93
|
-
|
|
94
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mrepository[2m > [22m[2mshould throw ValidationError when PDS not configured and no server specified
|
|
95
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
96
|
-
|
|
97
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mrepository[2m > [22m[2mshould throw ValidationError when SDS not configured and server=sds
|
|
98
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
99
|
-
|
|
100
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2mrepository[2m > [22m[2mshould create repository with custom serverUrl
|
|
101
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
102
|
-
|
|
103
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2msetup examples[2m > [22m[2mshould work with minimal config (no storage provided)
|
|
104
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
105
|
-
|
|
106
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2msetup examples[2m > [22m[2mshould work with all optional fields
|
|
107
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
108
|
-
|
|
109
|
-
[90mstderr[2m | tests/core/SDK.test.ts[2m > [22m[2mATProtoSDK[2m > [22m[2msetup examples[2m > [22m[2mshould work with custom storage implementations
|
|
110
|
-
[22m[39mNo lock mechanism provided. Credentials might get revoked.
|
|
111
|
-
|
|
112
|
-
[32m✓[39m tests/core/SDK.test.ts [2m([22m[2m19 tests[22m[2m)[22m[33m 442[2mms[22m[39m
|
|
113
|
-
[33m[2m✓[22m[39m ATProtoSDK[2m > [22mauthorize[2m > [22mshould trim identifier [33m 360[2mms[22m[39m
|
|
114
|
-
|
|
115
|
-
[2m Test Files [22m [1m[32m11 passed[39m[22m[90m (11)[39m
|
|
116
|
-
[2m Tests [22m [1m[32m181 passed[39m[22m[90m (181)[39m
|
|
117
|
-
[2m Start at [22m 08:04:07
|
|
118
|
-
[2m Duration [22m 2.02s[2m (transform 506ms, setup 0ms, collect 2.39s, tests 972ms, environment 2ms, prepare 983ms)[22m
|
|
119
|
-
|
package/CHANGELOG.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# @hypercerts-org/sdk-core
|
|
2
|
-
|
|
3
|
-
## 0.5.0-beta.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#46](https://github.com/hypercerts-org/hypercerts-sdk/pull/46)
|
|
8
|
-
[`eda4ac2`](https://github.com/hypercerts-org/hypercerts-sdk/commit/eda4ac233e09764d83f042ba7df94d4c9884cc01) Thanks
|
|
9
|
-
[@bitbeckers](https://github.com/bitbeckers)! - Initial release of sdk-core package with ATProto SDK for
|
|
10
|
-
authentication, repository operations, and lexicon management
|
|
11
|
-
|
|
12
|
-
- [#56](https://github.com/hypercerts-org/hypercerts-sdk/pull/56)
|
|
13
|
-
[`caceacb`](https://github.com/hypercerts-org/hypercerts-sdk/commit/caceacbc5572a590c750a95ccfda23fff2dd0c61) Thanks
|
|
14
|
-
[@bitbeckers](https://github.com/bitbeckers)! - Add pagination support and fix React hooks for SDS operations
|
|
15
|
-
|
|
16
|
-
**Breaking Changes (sdk-core):**
|
|
17
|
-
- `CollaboratorOperations.list()` now returns `{ collaborators: RepositoryAccessGrant[], cursor?: string }` instead of
|
|
18
|
-
`RepositoryAccessGrant[]`
|
|
19
|
-
- `OrganizationOperations.list()` now returns `{ organizations: OrganizationInfo[], cursor?: string }` instead of
|
|
20
|
-
`OrganizationInfo[]`
|
|
21
|
-
|
|
22
|
-
**Features:**
|
|
23
|
-
- Add cursor-based pagination support to collaborator and organization list operations
|
|
24
|
-
- Support optional `limit` and `cursor` parameters for paginated queries
|
|
25
|
-
- Update internal methods (`hasAccess`, `getRole`, `get`) to handle new pagination structure
|
|
26
|
-
|
|
27
|
-
**Bug Fixes (sdk-react):**
|
|
28
|
-
- Fix `useCollaborators` hook to correctly destructure paginated response
|
|
29
|
-
- Fix `useOrganizations` hook to correctly destructure paginated response
|
|
30
|
-
- All React hooks now properly handle the new pagination structure
|
|
31
|
-
|
|
32
|
-
**Documentation:**
|
|
33
|
-
- Comprehensive README updates with clear examples for all SDK operations
|
|
34
|
-
- Added pagination examples throughout documentation
|
|
35
|
-
- Improved code samples with realistic use cases
|
|
36
|
-
|
|
37
|
-
**Tests:**
|
|
38
|
-
- All 317 tests passing (181 sdk-core + 136 sdk-react)
|
|
39
|
-
- Updated test mocks to match new pagination response structure
|
|
40
|
-
- Build completes with zero warnings
|
|
41
|
-
|
|
42
|
-
### Patch Changes
|
|
43
|
-
|
|
44
|
-
- [#56](https://github.com/hypercerts-org/hypercerts-sdk/pull/56)
|
|
45
|
-
[`cb3268d`](https://github.com/hypercerts-org/hypercerts-sdk/commit/cb3268d78614efaf15aecc57a5dc3bce8313f3ca) Thanks
|
|
46
|
-
[@bitbeckers](https://github.com/bitbeckers)! - Fix SDS organization and collaborator operations to match API
|
|
47
|
-
contracts
|
|
48
|
-
- Add required creatorDid parameter to organization.create endpoint
|
|
49
|
-
- Fix organization.list to parse organizations field instead of repositories
|
|
50
|
-
- Update accessType values to match SDS API: owner|shared|none (was owner|collaborator)
|
|
51
|
-
- Add permission string array parser for collaborator.list endpoint
|
|
52
|
-
- Update type definitions to match actual SDS API response formats
|
|
53
|
-
|
|
54
|
-
- [#55](https://github.com/hypercerts-org/hypercerts-sdk/pull/55)
|
|
55
|
-
[`23c3d9a`](https://github.com/hypercerts-org/hypercerts-sdk/commit/23c3d9a3b71f326df68b65420c83f7ae42c2432d) Thanks
|
|
56
|
-
[@bitbeckers](https://github.com/bitbeckers)! - Fix endpoints and NSIDs for SDS operations in CollaboratorOperations
|
|
57
|
-
and OrganizationOperations
|
|
58
|
-
|
|
59
|
-
- Updated dependencies
|
|
60
|
-
[[`23c3d9a`](https://github.com/hypercerts-org/hypercerts-sdk/commit/23c3d9a3b71f326df68b65420c83f7ae42c2432d),
|
|
61
|
-
[`eda4ac2`](https://github.com/hypercerts-org/hypercerts-sdk/commit/eda4ac233e09764d83f042ba7df94d4c9884cc01)]:
|
|
62
|
-
- @hypercerts-org/lexicon@0.5.0-beta.0
|
package/eslint.config.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import baseConfig from "../../eslint.config.mjs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
4
|
-
|
|
5
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* SDK Core ESLint configuration.
|
|
9
|
-
* Extends the shared base config with package-specific settings.
|
|
10
|
-
*/
|
|
11
|
-
export default [
|
|
12
|
-
...baseConfig,
|
|
13
|
-
{
|
|
14
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
15
|
-
languageOptions: {
|
|
16
|
-
parserOptions: {
|
|
17
|
-
project: path.resolve(__dirname, "./tsconfig.json"),
|
|
18
|
-
tsconfigRootDir: __dirname,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
];
|
package/rollup.config.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from "node:url";
|
|
2
|
-
import { dirname, resolve } from "node:path";
|
|
3
|
-
import typescript from "@rollup/plugin-typescript";
|
|
4
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
5
|
-
import commonjs from "@rollup/plugin-commonjs";
|
|
6
|
-
import json from "@rollup/plugin-json";
|
|
7
|
-
import dts from "rollup-plugin-dts";
|
|
8
|
-
|
|
9
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
-
|
|
11
|
-
// Entrypoints for the package
|
|
12
|
-
const entrypoints = [
|
|
13
|
-
{ name: "index", input: "src/index.ts" },
|
|
14
|
-
{ name: "types", input: "src/types.ts" },
|
|
15
|
-
{ name: "errors", input: "src/errors.ts" },
|
|
16
|
-
{ name: "lexicons", input: "src/lexicons.ts" },
|
|
17
|
-
{ name: "storage", input: "src/storage.ts" },
|
|
18
|
-
{ name: "testing", input: "src/testing.ts" },
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
// Common plugins for JS builds
|
|
22
|
-
const getPlugins = () => [
|
|
23
|
-
json(),
|
|
24
|
-
typescript({
|
|
25
|
-
tsconfig: resolve(__dirname, "tsconfig.json"),
|
|
26
|
-
declaration: false,
|
|
27
|
-
declarationMap: false,
|
|
28
|
-
rootDir: resolve(__dirname, "src"),
|
|
29
|
-
outDir: resolve(__dirname, "dist"),
|
|
30
|
-
}),
|
|
31
|
-
nodeResolve({
|
|
32
|
-
preferBuiltins: true,
|
|
33
|
-
}),
|
|
34
|
-
commonjs(),
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
// External dependencies check
|
|
38
|
-
const external = (id) => !id.startsWith(".") && !id.startsWith("/");
|
|
39
|
-
|
|
40
|
-
// Generate JS builds (ESM and CJS) for each entrypoint
|
|
41
|
-
const jsBuild = entrypoints.map(({ name, input }) => ({
|
|
42
|
-
input: resolve(__dirname, input),
|
|
43
|
-
output: [
|
|
44
|
-
{
|
|
45
|
-
file: resolve(__dirname, `dist/${name}.mjs`),
|
|
46
|
-
format: "es",
|
|
47
|
-
sourcemap: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
file: resolve(__dirname, `dist/${name}.cjs`),
|
|
51
|
-
format: "cjs",
|
|
52
|
-
sourcemap: true,
|
|
53
|
-
exports: "named",
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
plugins: getPlugins(),
|
|
57
|
-
external,
|
|
58
|
-
}));
|
|
59
|
-
|
|
60
|
-
// Generate type declaration builds for each entrypoint
|
|
61
|
-
const dtsBuild = entrypoints.map(({ name, input }) => ({
|
|
62
|
-
input: resolve(__dirname, input),
|
|
63
|
-
output: {
|
|
64
|
-
file: resolve(__dirname, `dist/${name}.d.ts`),
|
|
65
|
-
format: "es",
|
|
66
|
-
},
|
|
67
|
-
plugins: [
|
|
68
|
-
dts({
|
|
69
|
-
tsconfig: resolve(__dirname, "tsconfig.json"),
|
|
70
|
-
}),
|
|
71
|
-
],
|
|
72
|
-
external,
|
|
73
|
-
}));
|
|
74
|
-
|
|
75
|
-
export default [...jsBuild, ...dtsBuild];
|