handy online tools for AT Protocol boat.kelinci.net
atproto bluesky atcute typescript solidjs
20
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: upgrade atcute dependencies

Mary 44c41914 5f1b672b

+78 -82
+9 -9
package.json
··· 7 7 "fmt": "prettier --cache --write ." 8 8 }, 9 9 "dependencies": { 10 - "@atcute/bluesky": "^1.0.14", 11 - "@atcute/car": "^3.0.0", 12 - "@atcute/cbor": "^2.2.0", 13 - "@atcute/cid": "^2.2.0", 14 - "@atcute/client": "^2.0.8", 15 - "@atcute/crypto": "^2.2.0", 16 - "@atcute/did-plc": "^0.1.1", 17 - "@atcute/identity": "^0.1.1", 10 + "@atcute/bluesky": "^2.0.0", 11 + "@atcute/car": "^3.0.2", 12 + "@atcute/cbor": "^2.2.1", 13 + "@atcute/cid": "^2.2.1", 14 + "@atcute/client": "^3.0.0", 15 + "@atcute/crypto": "^2.2.1", 16 + "@atcute/did-plc": "^0.1.2", 17 + "@atcute/identity": "^0.1.3", 18 18 "@atcute/identity-resolver": "^0.1.2", 19 - "@atcute/multibase": "^1.1.2", 19 + "@atcute/multibase": "^1.1.3", 20 20 "@atcute/tid": "^1.0.2", 21 21 "@badrap/valita": "^0.4.3", 22 22 "@mary/array-fns": "npm:@jsr/mary__array-fns@^0.1.4",
+60 -60
pnpm-lock.yaml
··· 9 9 .: 10 10 dependencies: 11 11 '@atcute/bluesky': 12 - specifier: ^1.0.14 13 - version: 1.0.14(@atcute/client@2.0.8) 12 + specifier: ^2.0.0 13 + version: 2.0.0(@atcute/client@3.0.0) 14 14 '@atcute/car': 15 - specifier: ^3.0.0 16 - version: 3.0.0 15 + specifier: ^3.0.2 16 + version: 3.0.2 17 17 '@atcute/cbor': 18 - specifier: ^2.2.0 19 - version: 2.2.0 18 + specifier: ^2.2.1 19 + version: 2.2.1 20 20 '@atcute/cid': 21 - specifier: ^2.2.0 22 - version: 2.2.0 21 + specifier: ^2.2.1 22 + version: 2.2.1 23 23 '@atcute/client': 24 - specifier: ^2.0.8 25 - version: 2.0.8 24 + specifier: ^3.0.0 25 + version: 3.0.0 26 26 '@atcute/crypto': 27 - specifier: ^2.2.0 28 - version: 2.2.0 27 + specifier: ^2.2.1 28 + version: 2.2.1 29 29 '@atcute/did-plc': 30 - specifier: ^0.1.1 31 - version: 0.1.1 30 + specifier: ^0.1.2 31 + version: 0.1.2 32 32 '@atcute/identity': 33 - specifier: ^0.1.1 34 - version: 0.1.1 33 + specifier: ^0.1.3 34 + version: 0.1.3 35 35 '@atcute/identity-resolver': 36 36 specifier: ^0.1.2 37 - version: 0.1.2(@atcute/identity@0.1.1) 37 + version: 0.1.2(@atcute/identity@0.1.3) 38 38 '@atcute/multibase': 39 - specifier: ^1.1.2 40 - version: 1.1.2 39 + specifier: ^1.1.3 40 + version: 1.1.3 41 41 '@atcute/tid': 42 42 specifier: ^1.0.2 43 43 version: 1.0.2 ··· 110 110 resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} 111 111 engines: {node: '>=6.0.0'} 112 112 113 - '@atcute/bluesky@1.0.14': 114 - resolution: {integrity: sha512-1ZBfvYsC/Tq7bqKSDzBcQRPDFguFodewow8z+MNRjS6DO9tLUWiKjm1DmR6sJfLQ2ktxU57IZPjvsvVfBdwJ6w==} 113 + '@atcute/bluesky@2.0.0': 114 + resolution: {integrity: sha512-G54WP8ribfH7dojidp6LJjNISauZr2AN9VxRi3k5XTLnT3S5l59e8l48psxTTv+GzBnY8u2GIHMlehBXt7X69A==} 115 115 peerDependencies: 116 - '@atcute/client': ^1.0.0 || ^2.0.0 116 + '@atcute/client': ^3.0.0 117 117 118 - '@atcute/car@3.0.0': 119 - resolution: {integrity: sha512-DBcA1i+PwejbfdE2KNhxnMwl9fgEAQ6QIRz3sHKJkNXnKIzOX+pnQtADR03Yxif139fI5BoPmJilzNP09o3AfQ==} 118 + '@atcute/car@3.0.2': 119 + resolution: {integrity: sha512-0XYBruH0DS6t5/qwMA9dMjo7KrDul8CgG+NIGdnunrMuwuH2To2Ys1BePLVglLtnX9ZGSmJHsTjqEhHMJn16Bw==} 120 120 121 - '@atcute/cbor@2.2.0': 122 - resolution: {integrity: sha512-W3ttcDJHiB5N6MbfEpJbTINZSjg0KB8gpBds8UWOGmybqUnuz43HZkFSpF/Vom0KilYg6QWU/ZM4X8SXZE+kow==} 121 + '@atcute/cbor@2.2.1': 122 + resolution: {integrity: sha512-o+zCkfFQhRxpQmGYOAlRAK9xqq3VH66Mw0muUOlc+Wnk5X8CyZcIkdYorzYWTtyNO2/WHdMcUzZs93+Ajl6BbA==} 123 123 124 - '@atcute/cid@2.2.0': 125 - resolution: {integrity: sha512-ty+WjGcTfi1JJtcRNz6bsJMqT69lEIl4Ts7vl4U8SBHbxjbb6Tk/pcnQZVClKRYduRoZ1XhS9n5qOSIbIMctDA==} 124 + '@atcute/cid@2.2.1': 125 + resolution: {integrity: sha512-tSsVdgx8jj+n6l+MP8IN8rZCR9N4ltJ8EPMiRzo6uduAAygYiZkCRceCOZ57IMtToZcSgm3nxYr4g1aeUbHUcw==} 126 126 127 - '@atcute/client@2.0.8': 128 - resolution: {integrity: sha512-OTfiWwjB4mOTlp2InGStvoQ+PIA5lvih9cTYU8BvOhzNcCBUpt4l860MKZExHjvQ9Tt1kjq/ED9zRiUjsAgIxw==} 127 + '@atcute/client@3.0.0': 128 + resolution: {integrity: sha512-6OsDqqkrqob/fMJ++s5vPc2MknQ6yfTzK+TY3MjXK3ZOkF0XseB5+QV1IiBWnEZ4X3aY21x2a3kv3YcvSQKxXQ==} 129 129 130 - '@atcute/crypto@2.2.0': 131 - resolution: {integrity: sha512-Q/64Qn1AI8J0ZNy4hPDPpW/3poKf4OWRUxIYceCDI+btEOcIG5YMlhEQeZd6ojnI3oBMXy03sbOktekaBYRK9Q==} 130 + '@atcute/crypto@2.2.1': 131 + resolution: {integrity: sha512-ILnwxEkH0PujlDqn3PWzvpTOqSOzy7XAsLFZgJ4PN1cnNg9hbtSoKiGdBHKJqvdljSDgA8aOFvvxBfl30EOu8A==} 132 132 133 - '@atcute/did-plc@0.1.1': 134 - resolution: {integrity: sha512-Yk18GUxWaEvHfH1CfPB4n2OOWVMcMIn1jKkeLzSykhLSbLcobCcA17LDY13pRG1b8PFdPIGUALKdquCTEk1CmA==} 133 + '@atcute/did-plc@0.1.2': 134 + resolution: {integrity: sha512-DO7CC/BJnT7uwmQJ7CH7ZABW/AOtCAno6zPB7DLFyhChsIOdhYAyTAyaxMz71dbsgPt8dF4ZZgeFCYcE/hDwBg==} 135 135 136 136 '@atcute/identity-resolver@0.1.2': 137 137 resolution: {integrity: sha512-fP2VbHD04kVcCdNi/Kszo6jFzqM7Pg3p33oGhfp2zVkwFKaVBlwCaFRWEga/Xvu/IDLwNdASGWnLqoA34SFeSg==} 138 138 peerDependencies: 139 139 '@atcute/identity': ^0.1.0 140 140 141 - '@atcute/identity@0.1.1': 142 - resolution: {integrity: sha512-TijKOgvvOfp/QoMAqaiKLn+FnQi5XrxsWLVcVnvr5JoKlgF2yppNvVo0y62XEXZbgDuEMSav1v1tEjC4Hn7MzQ==} 141 + '@atcute/identity@0.1.3': 142 + resolution: {integrity: sha512-ndlD8nypHt8G00wixbozKdSNL0O8HTzBjFGEXeAcBUCXSZPBjRWbqtgyJxhgUWnr7swgxgw1mSbZwRB5b7xCiQ==} 143 143 144 - '@atcute/multibase@1.1.2': 145 - resolution: {integrity: sha512-KFX+c7a/u2jSNcRw0rLaUHG/XEKf1A1c8XF5soHnsb1JMCShihf/anfZ1kJ4no/IlIp9HEHV3PQRQO2sWL6ASQ==} 144 + '@atcute/multibase@1.1.3': 145 + resolution: {integrity: sha512-vQQO0tDuQPguBvHdgV3ryn7R8U6beQ50KA/juYm+dCeT/3hOK2stMbX+IaW8JEuwkT5lJsU8wDIOicQT4mB7Ag==} 146 146 147 147 '@atcute/tid@1.0.2': 148 148 resolution: {integrity: sha512-ahmjroNyeDPJhtuf3+HTJropaH04HmJ8fhntDu73Gpz/RkAF7+nkz6kcP2QTgfvMCgMPAJUdskAAP82GPDTY9w==} ··· 1732 1732 '@jridgewell/gen-mapping': 0.3.8 1733 1733 '@jridgewell/trace-mapping': 0.3.25 1734 1734 1735 - '@atcute/bluesky@1.0.14(@atcute/client@2.0.8)': 1735 + '@atcute/bluesky@2.0.0(@atcute/client@3.0.0)': 1736 1736 dependencies: 1737 - '@atcute/client': 2.0.8 1737 + '@atcute/client': 3.0.0 1738 1738 1739 - '@atcute/car@3.0.0': 1739 + '@atcute/car@3.0.2': 1740 1740 dependencies: 1741 - '@atcute/cbor': 2.2.0 1742 - '@atcute/cid': 2.2.0 1741 + '@atcute/cbor': 2.2.1 1742 + '@atcute/cid': 2.2.1 1743 1743 '@atcute/varint': 1.0.2 1744 1744 1745 - '@atcute/cbor@2.2.0': 1745 + '@atcute/cbor@2.2.1': 1746 1746 dependencies: 1747 - '@atcute/cid': 2.2.0 1748 - '@atcute/multibase': 1.1.2 1747 + '@atcute/cid': 2.2.1 1748 + '@atcute/multibase': 1.1.3 1749 1749 '@atcute/uint8array': 1.0.1 1750 1750 1751 - '@atcute/cid@2.2.0': 1751 + '@atcute/cid@2.2.1': 1752 1752 dependencies: 1753 - '@atcute/multibase': 1.1.2 1753 + '@atcute/multibase': 1.1.3 1754 1754 '@atcute/uint8array': 1.0.1 1755 1755 1756 - '@atcute/client@2.0.8': {} 1756 + '@atcute/client@3.0.0': {} 1757 1757 1758 - '@atcute/crypto@2.2.0': 1758 + '@atcute/crypto@2.2.1': 1759 1759 dependencies: 1760 - '@atcute/multibase': 1.1.2 1760 + '@atcute/multibase': 1.1.3 1761 1761 '@atcute/uint8array': 1.0.1 1762 1762 '@noble/secp256k1': 2.2.3 1763 1763 1764 - '@atcute/did-plc@0.1.1': 1764 + '@atcute/did-plc@0.1.2': 1765 1765 dependencies: 1766 - '@atcute/cbor': 2.2.0 1767 - '@atcute/cid': 2.2.0 1768 - '@atcute/crypto': 2.2.0 1769 - '@atcute/multibase': 1.1.2 1766 + '@atcute/cbor': 2.2.1 1767 + '@atcute/cid': 2.2.1 1768 + '@atcute/crypto': 2.2.1 1769 + '@atcute/multibase': 1.1.3 1770 1770 '@atcute/uint8array': 1.0.1 1771 1771 '@badrap/valita': 0.4.3 1772 1772 1773 - '@atcute/identity-resolver@0.1.2(@atcute/identity@0.1.1)': 1773 + '@atcute/identity-resolver@0.1.2(@atcute/identity@0.1.3)': 1774 1774 dependencies: 1775 - '@atcute/identity': 0.1.1 1775 + '@atcute/identity': 0.1.3 1776 1776 '@atcute/util-fetch': 1.0.1 1777 1777 '@badrap/valita': 0.4.3 1778 1778 1779 - '@atcute/identity@0.1.1': 1779 + '@atcute/identity@0.1.3': 1780 1780 dependencies: 1781 1781 '@badrap/valita': 0.4.3 1782 1782 1783 - '@atcute/multibase@1.1.2': 1783 + '@atcute/multibase@1.1.3': 1784 1784 dependencies: 1785 1785 '@atcute/uint8array': 1.0.1 1786 1786
+8 -12
src/api/utils/at-uri.ts
··· 1 - import { assert } from '~/lib/utils/invariant'; 2 - 3 - type Did<TMethod extends string = string> = `did:${TMethod}:${string}`; 4 - 5 - type Nsid = `${string}.${string}.${string}`; 1 + import type { At } from '@atcute/client/lexicons'; 6 2 7 - type RecordKey = string; 3 + import { assert } from '~/lib/utils/invariant'; 8 4 9 5 const DID_RE = /^did:([a-z]+):([a-zA-Z0-9._:%\-]*[a-zA-Z0-9._\-])$/; 10 6 ··· 16 12 const ATURI_RE = 17 13 /^at:\/\/([a-zA-Z0-9._:%-]+)(?:\/([a-zA-Z0-9-.]+)(?:\/([a-zA-Z0-9._~:@!$&%')(*+,;=-]+))?)?(?:#(\/[a-zA-Z0-9._~:@!$&%')(*+,;=\-[\]/\\]*))?$/; 18 14 19 - const isDid = (input: unknown): input is Did => { 15 + const isDid = (input: unknown): input is At.Did => { 20 16 return typeof input === 'string' && input.length >= 7 && input.length <= 2048 && DID_RE.test(input); 21 17 }; 22 18 23 - const isNsid = (input: unknown): input is Nsid => { 19 + const isNsid = (input: unknown): input is At.Nsid => { 24 20 return typeof input === 'string' && input.length >= 5 && input.length <= 317 && NSID_RE.test(input); 25 21 }; 26 22 27 - const isRecordKey = (input: unknown): input is RecordKey => { 23 + const isRecordKey = (input: unknown): input is At.RecordKey => { 28 24 return typeof input === 'string' && input.length >= 1 && input.length <= 512 && RECORD_KEY_RE.test(input); 29 25 }; 30 26 31 27 export interface AddressedAtUri { 32 - repo: Did; 33 - collection: Nsid; 34 - rkey: string; 28 + repo: At.Did; 29 + collection: At.Nsid; 30 + rkey: At.RecordKey; 35 31 fragment: string | undefined; 36 32 } 37 33
+1 -1
src/lib/utils/search-params.ts
··· 224 224 export const asDID = createParser({ 225 225 parse(value) { 226 226 if (typeof value === 'string' && isDid(value)) { 227 - return value as At.DID; 227 + return value as At.Did; 228 228 } 229 229 230 230 return null;