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(lex-cli): consistent `mappings` field

Mary 5402598d c4c6652e

+15 -15
+1 -1
.changeset/stale-mugs-create.md
··· 41 41 ```json 42 42 { 43 43 "atcute:lexicons": { 44 - "mapping": { 44 + "mappings": { 45 45 "com.atproto.*": { 46 46 "type": "namespace", 47 47 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/atproto/package.json
··· 35 35 "@atcute/lex-cli": "workspace:^" 36 36 }, 37 37 "atcute:lexicons": { 38 - "mapping": { 38 + "mappings": { 39 39 "com.atproto.*": { 40 40 "type": "namespace", 41 41 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/bluemoji/package.json
··· 33 33 "@atcute/lex-cli": "workspace:^" 34 34 }, 35 35 "atcute:lexicons": { 36 - "mapping": { 36 + "mappings": { 37 37 "blue.moji.*": { 38 38 "type": "namespace", 39 39 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/bluesky/package.json
··· 41 41 "vitest": "^3.2.4" 42 42 }, 43 43 "atcute:lexicons": { 44 - "mapping": { 44 + "mappings": { 45 45 "app.bsky.*": { 46 46 "type": "namespace", 47 47 "path": "./types/app/{{nsid_remainder}}"
+1 -1
packages/definitions/frontpage/package.json
··· 39 39 "vitest": "^3.2.4" 40 40 }, 41 41 "atcute:lexicons": { 42 - "mapping": { 42 + "mappings": { 43 43 "fyi.unravel.frontpage.*": { 44 44 "type": "namespace", 45 45 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/leaflet/package.json
··· 39 39 "vitest": "^3.2.4" 40 40 }, 41 41 "atcute:lexicons": { 42 - "mapping": { 42 + "mappings": { 43 43 "pub.leaflet.*": { 44 44 "type": "namespace", 45 45 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/lexicon-community/package.json
··· 32 32 "@atcute/lex-cli": "workspace:^" 33 33 }, 34 34 "atcute:lexicons": { 35 - "mapping": { 35 + "mappings": { 36 36 "community.lexicon.*": { 37 37 "type": "namespace", 38 38 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/ozone/package.json
··· 39 39 "@atcute/ozone": "file:" 40 40 }, 41 41 "atcute:lexicons": { 42 - "mapping": { 42 + "mappings": { 43 43 "tools.ozone.*": { 44 44 "type": "namespace", 45 45 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/tangled/package.json
··· 39 39 "vitest": "^3.2.4" 40 40 }, 41 41 "atcute:lexicons": { 42 - "mapping": { 42 + "mappings": { 43 43 "sh.tangled.*": { 44 44 "type": "namespace", 45 45 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/definitions/whitewind/package.json
··· 36 36 "@atcute/whitewind": "file:" 37 37 }, 38 38 "atcute:lexicons": { 39 - "mapping": { 39 + "mappings": { 40 40 "com.whtwnd.*": { 41 41 "type": "namespace", 42 42 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/lexicons/lex-cli/README.md
··· 33 33 { 34 34 "name": "@example/my-schemas", 35 35 "atcute:lexicons": { 36 - "mapping": { 36 + "mappings": { 37 37 "com.example.*": { 38 38 "type": "namespace", 39 39 "path": "./types/{{nsid_remainder}}"
+1 -1
packages/lexicons/lex-cli/schema/lexicon-package.schema.json
··· 8 8 "atcute:lexicons": { 9 9 "type": "object", 10 10 "properties": { 11 - "mapping": { 11 + "mappings": { 12 12 "type": "object", 13 13 "additionalProperties": { 14 14 "type": "object",
+2 -2
packages/lexicons/lex-cli/src/cli.ts
··· 64 64 } 65 65 66 66 const lexicons = result.output['atcute:lexicons']; 67 - if (!lexicons?.mapping) { 67 + if (!lexicons?.mappings) { 68 68 continue; 69 69 } 70 70 71 71 // Convert mapping to ImportMapping[] 72 - for (const [pattern, entry] of Object.entries(lexicons.mapping)) { 72 + for (const [pattern, entry] of Object.entries(lexicons.mappings)) { 73 73 const isWildcard = pattern.endsWith('.*'); 74 74 75 75 mappings.push({
+1 -1
packages/lexicons/lex-cli/src/lexicon-metadata.ts
··· 29 29 * Schema for the atcute:lexicons field in package.json 30 30 */ 31 31 const atcuteLexiconsField = v.object({ 32 - mapping: v.optional( 32 + mappings: v.optional( 33 33 v.record( 34 34 v.pipe( 35 35 v.string(),