Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Mar 7, 2025
2 parents 09d1b8d + f46554b commit aec0d95
Show file tree
Hide file tree
Showing 326 changed files with 29,606 additions and 4,928 deletions.
5 changes: 0 additions & 5 deletions .changeset/stale-waves-protect.md

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/ban-ts-comment": "off",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
path: |
packages/*/dist
packages/*/*/dist
packages/oauth/oauth-provider/src/assets/app/locales/*/messages.ts
retention-days: 1
test:
name: Test
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
enable-pre-post-scripts = true
include-workspace-root = true
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ packages/api/src/client
packages/bsky/src/lexicon
packages/pds/src/lexicon
packages/ozone/src/lexicon

# Automatically generated by lingui
packages/oauth/oauth-provider/src/assets/app/locales/*/messages.ts
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"consolas",
"dpop",
"googleusercontent",
"hcaptcha",
"hexeditor",
"ingester",
"insertable",
Expand Down
3 changes: 2 additions & 1 deletion lexicons/app/bsky/embed/video.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"properties": {
"video": {
"type": "blob",
"description": "The mp4 video file. May be up to 100mb, formerly limited to 50mb.",
"accept": ["video/mp4"],
"maxSize": 50000000
"maxSize": 100000000
},
"captions": {
"type": "array",
Expand Down
44 changes: 1 addition & 43 deletions lexicons/com/atproto/sync/subscribeRepos.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@
"message": {
"schema": {
"type": "union",
"refs": [
"#commit",
"#sync",
"#identity",
"#account",
"#handle",
"#migrate",
"#tombstone",
"#info"
]
"refs": ["#commit", "#sync", "#identity", "#account", "#info"]
}
},
"errors": [
Expand Down Expand Up @@ -186,39 +177,6 @@
}
}
},
"handle": {
"type": "object",
"description": "DEPRECATED -- Use #identity event instead",
"required": ["seq", "did", "handle", "time"],
"properties": {
"seq": { "type": "integer" },
"did": { "type": "string", "format": "did" },
"handle": { "type": "string", "format": "handle" },
"time": { "type": "string", "format": "datetime" }
}
},
"migrate": {
"type": "object",
"description": "DEPRECATED -- Use #account event instead",
"required": ["seq", "did", "migrateTo", "time"],
"nullable": ["migrateTo"],
"properties": {
"seq": { "type": "integer" },
"did": { "type": "string", "format": "did" },
"migrateTo": { "type": "string" },
"time": { "type": "string", "format": "datetime" }
}
},
"tombstone": {
"type": "object",
"description": "DEPRECATED -- Use #account event instead",
"required": ["seq", "did", "time"],
"properties": {
"seq": { "type": "integer" },
"did": { "type": "string", "format": "did" },
"time": { "type": "string", "format": "datetime" }
}
},
"info": {
"type": "object",
"required": ["name"],
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
"packageManager": "[email protected]",
"scripts": {
"lint:fix": "pnpm lint --fix",
"lint": "eslint . --ext .ts,.js",
"lint": "eslint . --ext .ts,.js,.tsx,.jsx",
"style:fix": "prettier --write .",
"style": "prettier --check .",
"verify": "pnpm --stream '/^verify:.+$/'",
"verify:style": "pnpm run style",
"verify:lint": "pnpm lint",
"verify:types": "tsc --build tsconfig.json",
"format": "pnpm lint:fix && pnpm style:fix",
"codegen": "pnpm run --recursive --stream --filter '@atproto/lex-cli...' build --force && pnpm run --recursive --stream --parallel codegen",
"build": "pnpm --recursive --stream build",
"dev": "NODE_ENV=development pnpm --stream '/^dev:.+$/'",
"dev:tsc": "tsc --build tsconfig.json --watch",
"dev:pkg": "pnpm --recursive --parallel --stream dev",
"test": "LOG_ENABLED=false ./packages/dev-infra/with-test-redis-and-db.sh pnpm --stream -r test",
"test:withFlags": "LOG_ENABLED=false ./packages/dev-infra/with-test-redis-and-db.sh pnpm --stream -r test --",
"precodegen": "pnpm run --recursive --stream --filter '@atproto/lex-cli...' build --force",
"codegen": "pnpm run --recursive --stream --parallel codegen",
"build": "pnpm run --recursive --stream '/^(build|build:.+)$/'",
"dev": "NODE_ENV=development pnpm run --recursive --parallel --stream '/^(dev|dev:.+)$/'",
"dev:tsc": "tsc --build tsconfig.json --preserveWatchOutput --watch",
"test": "LOG_ENABLED=false ./packages/dev-infra/with-test-redis-and-db.sh pnpm test --stream --recursive",
"test:withFlags": "pnpm run test --",
"changeset": "changeset",
"release": "pnpm build && changeset publish",
"version-packages": "changeset version && git add ."
Expand Down
15 changes: 15 additions & 0 deletions packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @atproto/api

## 0.14.8

### Patch Changes

- [#3585](https://github.com/bluesky-social/atproto/pull/3585) [`38320191e`](https://github.com/bluesky-social/atproto/commit/38320191e559f8b928c6e951a9b4a6207240bfc1) Thanks [@dholms](https://github.com/dholms)! - Wrap sync v1.1 semantics. Add #sync event to subscribeRepos and deprecate #handle and #tombstone events

- [#3602](https://github.com/bluesky-social/atproto/pull/3602) [`6bcbb6d8c`](https://github.com/bluesky-social/atproto/commit/6bcbb6d8cd3696280935ff7892d8e191fd21fa49) Thanks [@devinivy](https://github.com/devinivy)! - Permit 100mb video embeds.

- [#2264](https://github.com/bluesky-social/atproto/pull/2264) [`dc6e4ecb0`](https://github.com/bluesky-social/atproto/commit/dc6e4ecb0e09bbf4bc7a79c6ac43fb6da4166200) Thanks [@bnewbold](https://github.com/bnewbold)! - new com.atproto.identity endpoints: resolveDid, resolveIdentity, refreshIdentity

- Updated dependencies [[`850e39843`](https://github.com/bluesky-social/atproto/commit/850e39843cb0ec9ea716675f7568c0c601f45e29)]:
- @atproto/syntax@0.3.4
- @atproto/lexicon@0.4.8
- @atproto/xrpc@0.6.10

## 0.14.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atproto/api",
"version": "0.14.7",
"version": "0.14.8",
"license": "MIT",
"description": "Client library for atproto and Bluesky",
"keywords": [
Expand Down
69 changes: 3 additions & 66 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4020,9 +4020,6 @@ export const schemaDict = {
'lex:com.atproto.sync.subscribeRepos#sync',
'lex:com.atproto.sync.subscribeRepos#identity',
'lex:com.atproto.sync.subscribeRepos#account',
'lex:com.atproto.sync.subscribeRepos#handle',
'lex:com.atproto.sync.subscribeRepos#migrate',
'lex:com.atproto.sync.subscribeRepos#tombstone',
'lex:com.atproto.sync.subscribeRepos#info',
],
},
Expand Down Expand Up @@ -4226,68 +4223,6 @@ export const schemaDict = {
},
},
},
handle: {
type: 'object',
description: 'DEPRECATED -- Use #identity event instead',
required: ['seq', 'did', 'handle', 'time'],
properties: {
seq: {
type: 'integer',
},
did: {
type: 'string',
format: 'did',
},
handle: {
type: 'string',
format: 'handle',
},
time: {
type: 'string',
format: 'datetime',
},
},
},
migrate: {
type: 'object',
description: 'DEPRECATED -- Use #account event instead',
required: ['seq', 'did', 'migrateTo', 'time'],
nullable: ['migrateTo'],
properties: {
seq: {
type: 'integer',
},
did: {
type: 'string',
format: 'did',
},
migrateTo: {
type: 'string',
},
time: {
type: 'string',
format: 'datetime',
},
},
},
tombstone: {
type: 'object',
description: 'DEPRECATED -- Use #account event instead',
required: ['seq', 'did', 'time'],
properties: {
seq: {
type: 'integer',
},
did: {
type: 'string',
format: 'did',
},
time: {
type: 'string',
format: 'datetime',
},
},
},
info: {
type: 'object',
required: ['name'],
Expand Down Expand Up @@ -5787,8 +5722,10 @@ export const schemaDict = {
properties: {
video: {
type: 'blob',
description:
'The mp4 video file. May be up to 100mb, formerly limited to 50mb.',
accept: ['video/mp4'],
maxSize: 50000000,
maxSize: 100000000,
},
captions: {
type: 'array',
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/client/types/app/bsky/embed/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const id = 'app.bsky.embed.video'

export interface Main {
$type?: 'app.bsky.embed.video'
/** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */
video: BlobRef
captions?: Caption[]
/** Alt text description of the video, for accessibility. */
Expand Down
56 changes: 0 additions & 56 deletions packages/api/src/client/types/com/atproto/sync/subscribeRepos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,62 +122,6 @@ export function validateAccount<V>(v: V) {
return validate<Account & V>(v, id, hashAccount)
}

/** DEPRECATED -- Use #identity event instead */
export interface Handle {
$type?: 'com.atproto.sync.subscribeRepos#handle'
seq: number
did: string
handle: string
time: string
}

const hashHandle = 'handle'

export function isHandle<V>(v: V) {
return is$typed(v, id, hashHandle)
}

export function validateHandle<V>(v: V) {
return validate<Handle & V>(v, id, hashHandle)
}

/** DEPRECATED -- Use #account event instead */
export interface Migrate {
$type?: 'com.atproto.sync.subscribeRepos#migrate'
seq: number
did: string
migrateTo: string | null
time: string
}

const hashMigrate = 'migrate'

export function isMigrate<V>(v: V) {
return is$typed(v, id, hashMigrate)
}

export function validateMigrate<V>(v: V) {
return validate<Migrate & V>(v, id, hashMigrate)
}

/** DEPRECATED -- Use #account event instead */
export interface Tombstone {
$type?: 'com.atproto.sync.subscribeRepos#tombstone'
seq: number
did: string
time: string
}

const hashTombstone = 'tombstone'

export function isTombstone<V>(v: V) {
return is$typed(v, id, hashTombstone)
}

export function validateTombstone<V>(v: V) {
return validate<Tombstone & V>(v, id, hashTombstone)
}

export interface Info {
$type?: 'com.atproto.sync.subscribeRepos#info'
name: 'OutdatedCursor' | (string & {})
Expand Down
7 changes: 7 additions & 0 deletions packages/aws/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @atproto/aws

## 0.2.17

### Patch Changes

- Updated dependencies []:
- @atproto/repo@0.7.1

## 0.2.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atproto/aws",
"version": "0.2.16",
"version": "0.2.17",
"license": "MIT",
"description": "Shared AWS cloud API helpers for atproto services",
"keywords": [
Expand Down
14 changes: 14 additions & 0 deletions packages/bsky/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @atproto/bsky

## 0.0.125

### Patch Changes

- Updated dependencies [[`38320191e`](https://github.com/bluesky-social/atproto/commit/38320191e559f8b928c6e951a9b4a6207240bfc1), [`6bcbb6d8c`](https://github.com/bluesky-social/atproto/commit/6bcbb6d8cd3696280935ff7892d8e191fd21fa49), [`850e39843`](https://github.com/bluesky-social/atproto/commit/850e39843cb0ec9ea716675f7568c0c601f45e29), [`dc6e4ecb0`](https://github.com/bluesky-social/atproto/commit/dc6e4ecb0e09bbf4bc7a79c6ac43fb6da4166200)]:
- @atproto/api@0.14.8
- @atproto/syntax@0.3.4
- @atproto-labs/fetch-node@0.1.8
- @atproto/lexicon@0.4.8
- @atproto/sync@0.1.16
- @atproto/repo@0.7.1
- @atproto/xrpc-server@0.7.12
- @atproto-labs/xrpc-utils@0.0.8

## 0.0.124

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/bsky/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atproto/bsky",
"version": "0.0.124",
"version": "0.0.125",
"license": "MIT",
"description": "Reference implementation of app.bsky App View (Bluesky API)",
"keywords": [
Expand Down
Loading

0 comments on commit aec0d95

Please sign in to comment.