@atproto/lexicon 0.2.1 → 0.2.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/package.json CHANGED
@@ -1,19 +1,25 @@
1
1
  {
2
2
  "name": "@atproto/lexicon",
3
- "version": "0.2.1",
4
- "main": "dist/index.js",
3
+ "version": "0.2.2",
5
4
  "license": "MIT",
5
+ "description": "atproto Lexicon schema language library",
6
+ "keywords": [
7
+ "atproto",
8
+ "lexicon"
9
+ ],
10
+ "homepage": "https://atproto.com",
6
11
  "repository": {
7
12
  "type": "git",
8
- "url": "https://github.com/bluesky-social/atproto.git",
13
+ "url": "https://github.com/bluesky-social/atproto",
9
14
  "directory": "packages/lexicon"
10
15
  },
16
+ "main": "dist/index.js",
11
17
  "dependencies": {
12
18
  "iso-datestring-validator": "^2.2.2",
13
19
  "multiformats": "^9.9.0",
14
20
  "zod": "^3.21.4",
15
- "@atproto/common-web": "^0.2.0",
16
- "@atproto/syntax": "^0.1.1"
21
+ "@atproto/common-web": "^0.2.1",
22
+ "@atproto/syntax": "^0.1.2"
17
23
  },
18
24
  "scripts": {
19
25
  "test": "jest",
package/src/types.ts CHANGED
@@ -173,11 +173,9 @@ export const lexObject = z
173
173
  description: z.string().optional(),
174
174
  required: z.string().array().optional(),
175
175
  nullable: z.string().array().optional(),
176
- properties: z
177
- .record(
178
- z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]),
179
- )
180
- .optional(),
176
+ properties: z.record(
177
+ z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]),
178
+ ),
181
179
  })
182
180
  .strict()
183
181
  .superRefine(requiredPropertiesRefinement)
@@ -1,6 +1,5 @@
1
1
  import { CID } from 'multiformats/cid'
2
2
  import { lexiconDoc, Lexicons } from '../src/index'
3
- import { object } from '../src/validators/complex'
4
3
  import LexiconDocs from './_scaffolds/lexicons'
5
4
 
6
5
  describe('Lexicons collection', () => {