a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

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

refactor(identity): mark the regex exports as deprecated

Mary c1582e00 ba3832e5

+10
+5
.changeset/rude-symbols-fly.md
··· 1 + --- 2 + '@atcute/identity': patch 3 + --- 4 + 5 + mark the regex exports as deprecated
+1
packages/identity/identity/lib/methods/plc.ts
··· 1 1 import type { Did } from '@atcute/lexicons/syntax'; 2 2 3 + /** @deprecated use `isPlcDid` instead */ 3 4 export const PLC_DID_RE = /^did:plc:([a-z2-7]{24})$/; 4 5 5 6 /**
+2
packages/identity/identity/lib/methods/web.ts
··· 1 1 import type { Did } from '@atcute/lexicons/syntax'; 2 2 3 + /** @deprecated use `isWebDid` instead */ 3 4 export const WEB_DID_RE = 4 5 /^did:web:([a-zA-Z0-9%\-]+(?:(?:\.[a-zA-Z0-9%\-]+)*(?:\.[a-zA-Z]{2,}))?)?((?::[a-zA-Z0-9\-%.]+)+)?$/; 5 6 7 + /** @deprecated use `isAtprotoWebDid` instead */ 6 8 export const ATPROTO_WEB_DID_RE = 7 9 /^did:web:([a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*(?:\.[a-zA-Z]{2,})|localhost(?:%3[aA]\d+)?)$/; 8 10
+2
packages/identity/identity/lib/typedefs.ts
··· 4 4 5 5 import * as t from './types.js'; 6 6 7 + /** @deprecated */ 7 8 export const FRAGMENT_RE = /^#[^#]+$/; 9 + /** @deprecated */ 8 10 export const MULTIBASE_RE = /^z[a-km-zA-HJ-NP-Z1-9]+$/; 9 11 10 12 export const rfc3968UriSchema = v.string().assert((input) => {