@atproto/lexicon 0.7.1 → 0.7.3
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 +20 -0
- package/dist/blob-refs.d.ts +6 -6
- package/dist/blob-refs.d.ts.map +1 -1
- package/dist/blob-refs.js.map +1 -1
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/serialize.d.ts.map +1 -1
- package/dist/types.d.ts +3699 -3699
- package/dist/validators/formats.d.ts +3 -3
- package/package.json +5 -6
- package/tsconfig.build.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.json +2 -2
- package/tsconfig.tests.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ValidationResult } from '../types.js';
|
|
2
|
-
export declare const datetime: <V extends string>(path: string, value: V) => ValidationResult<V & (`${string}-${string}-${string}T${string}:${string}:${string}
|
|
2
|
+
export declare const datetime: <V extends string>(path: string, value: V) => ValidationResult<V & (`${string}-${string}-${string}T${string}:${string}:${string}+${string}:${string}` | `${string}-${string}-${string}T${string}:${string}:${string}-${string}:${string}` | `${string}-${string}-${string}T${string}:${string}:${string}Z`)>;
|
|
3
3
|
export declare const uri: <V extends string>(path: string, value: V) => ValidationResult<V & `${string}:${string}`>;
|
|
4
|
-
export declare const atUri: <V extends string>(path: string, value: V) => ValidationResult<V & (`at
|
|
4
|
+
export declare const atUri: <V extends string>(path: string, value: V) => ValidationResult<V & (`at://${string}.${string}` | `at://${string}.${string}#/${string}` | `at://${string}.${string}/${string}.${string}.${string}` | `at://${string}.${string}/${string}.${string}.${string}#/${string}` | `at://${string}.${string}/${string}.${string}.${string}/${string}` | `at://${string}.${string}/${string}.${string}.${string}/${string}#/${string}` | `at://did:${string}:${string}` | `at://did:${string}:${string}#/${string}` | `at://did:${string}:${string}/${string}.${string}.${string}` | `at://did:${string}:${string}/${string}.${string}.${string}#/${string}` | `at://did:${string}:${string}/${string}.${string}.${string}/${string}` | `at://did:${string}:${string}/${string}.${string}.${string}/${string}#/${string}`)>;
|
|
5
5
|
export declare const did: <V extends string>(path: string, value: V) => ValidationResult<V & `did:${string}:${string}`>;
|
|
6
6
|
export declare const handle: <V extends string>(path: string, value: V) => ValidationResult<V & `${string}.${string}`>;
|
|
7
|
-
export declare const atIdentifier: <V extends string>(path: string, value: V) => ValidationResult<V & (
|
|
7
|
+
export declare const atIdentifier: <V extends string>(path: string, value: V) => ValidationResult<V & (`${string}.${string}` | `did:${string}:${string}`)>;
|
|
8
8
|
export declare const nsid: <V extends string>(path: string, value: V) => ValidationResult<V & `${string}.${string}.${string}`>;
|
|
9
9
|
export declare const cid: <V extends string>(path: string, value: V) => ValidationResult<V>;
|
|
10
10
|
export declare const language: (path: string, value: string) => ValidationResult<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/lexicon",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22"
|
|
6
6
|
},
|
|
@@ -19,12 +19,11 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"multiformats": "^13.0.0",
|
|
21
21
|
"zod": "^3.23.8",
|
|
22
|
-
"@atproto/
|
|
23
|
-
"@atproto/
|
|
22
|
+
"@atproto/common-web": "^0.5.2",
|
|
23
|
+
"@atproto/syntax": "^0.6.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"jest": "^30.0.0"
|
|
27
|
-
"typescript": "^6.0.3"
|
|
26
|
+
"jest": "^30.0.0"
|
|
28
27
|
},
|
|
29
28
|
"type": "module",
|
|
30
29
|
"exports": {
|
|
@@ -35,6 +34,6 @@
|
|
|
35
34
|
},
|
|
36
35
|
"scripts": {
|
|
37
36
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
38
|
-
"build": "
|
|
37
|
+
"build": "tsgo --build tsconfig.build.json"
|
|
39
38
|
}
|
|
40
39
|
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/blob-refs.ts","./src/index.ts","./src/lexicons.ts","./src/serialize.ts","./src/types.ts","./src/util.ts","./src/validation.ts","./src/validators/blob.ts","./src/validators/complex.ts","./src/validators/formats.ts","./src/validators/primitives.ts","./src/validators/xrpc.ts"]
|
|
1
|
+
{"version":"7.0.0-dev.20260614.1","root":["./src/blob-refs.ts","./src/index.ts","./src/lexicons.ts","./src/serialize.ts","./src/types.ts","./src/util.ts","./src/validation.ts","./src/validators/blob.ts","./src/validators/complex.ts","./src/validators/formats.ts","./src/validators/primitives.ts","./src/validators/xrpc.ts"]}
|
package/tsconfig.json
CHANGED