Commit Graph

2335 Commits

Author SHA1 Message Date
Matthieu Sieben 1479c87c6b Allow use of foo[]=bar syntax in query params (#4793)
* Allow use of `foo[]=bar` syntax in query params

* tidy

* fix delete while iterating

* xrpc-server: add paramsParseLoose route option for temp backwards compat

* bsky: add loose param parsing to app.bsky.feed.getPosts temporarily

* changeset update

* Add endpoint name in "Invalid params" error message

* Parse `[]` in `getProfile`

* tidy

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2026-03-24 13:01:49 +01:00
Matthieu Sieben 960a02b8d5 Skip read-after-write for invalid records (#4798) 2026-03-24 13:00:35 +01:00
Matthieu Sieben 36e3019711 Disable AppView response validation (#4797) 2026-03-24 11:50:30 +01:00
Matthieu Sieben a99dd58b5f Allow payload from XRPC endpoints with no output in their schema (#4788)
* Allow XRPC endpoints with no `output` specified in their schema to output anything.

* tidy

* fix tests
2026-03-24 11:33:39 +01:00
Matthieu Sieben 0dbea15da4 Make AT-uri validation faster (#4792) 2026-03-24 11:33:06 +01:00
Eric Bailey 3aa18f84ef Add some missing codegen files (#4791) 2026-03-23 13:09:50 -05:00
Eric Bailey ae22362c59 Add A/A test to thread endpoint (#4790)
* Add A/A test to thread endpoint

* Changeset

* Format
2026-03-23 12:41:21 -05:00
Eric Bailey 37b2f492bb Ensure scoped checkGates merges outer user context (#4780) 2026-03-23 12:10:21 -05:00
Matthieu Sieben d0c136cba2 Move PDS code over to @atproto/lex (#4408) 2026-03-23 18:10:16 +01:00
Matthieu Sieben c4df84cd78 Optimize counting of graphemes when validating strings (#4787) 2026-03-23 18:06:58 +01:00
Matthieu Sieben e5e5bcf85f Show invalid values in issue description (#4784)
* Show invalid values in issue description (when stringifiable in reasonably small string)

* tidy

* tidy
2026-03-23 13:52:09 +01:00
Matthieu Sieben 527f5d4c5d Various lex SDK improvements (#4779)
* Various lex SDK improvements

* tidy

* Improve performances of error instantiation

* Improve clarity of params validation errors (and add "cause" for improved debugging)

* update error handling

* tidy

* tidy

* review comments

* tidy
2026-03-23 11:47:23 +01:00
DS Boyce b86dbfcbe3 Remove feature gate for new user onboarding (#4775)
* Remove feature gate for new user onboarding

* Add changeset

* Remove feature gate from enum

* Remove unused type

* Attempt to fix tests
2026-03-19 13:55:01 -07:00
Eric Bailey db795be786 Feature Gates Refactor (#4756)
* Refactor feature gates client to be less handler-specific

* Improve passing around of feature gates

* Ensure merging of contexts results in a correct output

* Sync with main

* Docs

* Changeset

* Remove image gate

* Comments

* Format

* Update new usage
2026-03-19 13:58:07 -05:00
github-actions[bot] 8445e8a9aa Version packages (#4770)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-19 15:53:07 +01:00
Matthieu Sieben 737c046e95 Fix infinitely deep declaration (#4774) 2026-03-19 15:45:38 +01:00
Matthieu Sieben df8328c3c2 Fix xrpc options (#4773)
* Fix xrpc options

* tidy

* changeset

* tidy

* tidy

* fix
2026-03-19 15:25:45 +01:00
Matthieu Sieben b2baf8d660 Fix Client.call options for XRPC queries (#4772) 2026-03-19 14:10:34 +01:00
Matthieu Sieben 6a88461c5a Allow processing of invalid lex data (#4761)
* Allow processing of responses with invalid lex data

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* add tests

* tidy

* Add non-strict validation mode to lex SDK (#4766)

* non-strict validation mode

* apply strict option to client responses

* update readme

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Allow `-1` BlobRef size in non-strict mode

* review comments

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* tidy

* tidy

* tidy

* tidy

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-19 13:50:11 +01:00
Eric Bailey 3b41b81e27 Remove deprecated handling from getSuggestedFollowsByActor (#4747)
* Remove deprecated handling from getSuggestedFollowsByActor

* Remove very old test that is not testing existing functionality

* Import sort

* Softer off-ramp if suggestionsAgent
2026-03-18 18:36:20 -05:00
Eric Bailey 4ecde4879f Add feature flag to enable social proof on getSuggestedFollowsByActor (#4767)
* Add feature flag to enable social proof on the getSuggestedFollowsByActor endpoint

* Changeset
2026-03-18 18:14:31 -05:00
github-actions[bot] 13b2aad9b6 Version packages (#4720)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-18 16:47:57 -05:00
Eric Bailey efb2b58fb2 [APP-1926] Add bsync delete operations support (#4745)
* Add bsync handlers for deletion request

* Add test

* Changeset

* Abtract util, add comments
2026-03-18 15:39:36 -05:00
Matthieu Sieben cbbc03b6e4 Revert "non-strict validation mode"
This reverts commit 3d60e1af7c.
2026-03-18 15:13:36 +01:00
Matthieu Sieben 3d60e1af7c non-strict validation mode 2026-03-18 15:12:48 +01:00
rafael c89225f972 create chat declaration for dev-env users (#4763) 2026-03-17 18:24:57 -03:00
rafael bc69b03f53 improve checking for zero dates and test (#4762) 2026-03-17 14:23:51 -03:00
rafael ff42a3afc3 Avoid Go zero dates (year 0001) in bsky views (#4753)
* try to avoid returning zero dates (year 0001) in bsky views

* address Matthieu's review

* Move `parseDate` uses from view to hydration
2026-03-17 12:15:21 -03:00
devin ivy 139b2941d6 bsky: remove feature gate for including format in image URLs (#4755)
* bsky: remove feature gate on urls containing image format

* changeset

* bsky: fix test

* tidy
2026-03-16 16:46:20 -04:00
Matthieu Sieben 67eb0c19ac Improve efficiency of AtUri did getter and typing of hostname property 2026-03-16 11:06:55 +01:00
Matthieu Sieben 112b159ec2 Export more string format type assertion utilities from @atproto/lex 2026-03-16 08:45:33 +01:00
Eric Bailey eaee3d4305 Serialize pagerank (#4746)
* Serialize pagerank

* Changeset
2026-03-13 10:46:43 -05:00
Foysal Ahamed 9f9f71a6a3 Add purge event for age assurance data for compliance (#4709)
*  Add purge event for age assurance data for compliance

* 🧹 Cleanup

* 📝 Add changeset

* :rotating_lights: Fix lint issue
2026-03-12 16:02:38 +01:00
Matthieu Sieben 5f73f8ed72 Improve reading of car files (#4740)
* await only if needed

* tidy

* changeset
2026-03-11 14:18:08 +01:00
Matthieu Sieben 192685fca7 Improve reading of car files (#4729)
* Improve reading of car files

* tidy

* fix

* tidy

* tidy

* tidy

* tidy

* code simplification

* tidy
2026-03-11 13:41:13 +01:00
Matthieu Sieben 3dc3791543 Add Standard Schema compatibility (#4734)
* Add [Standard Schema](https://standardschema.dev/) compatibility

* tidy

* tidy

* rename `StandardSchemaValidator` to `StandardSchemaAdapter`

* `LexValidationError` class now implements `ResultFailure`

* review comments

* add readme

* fix tests

* Add tests for StandardSchemaAdapter (`schema['~standard']`) (#4735)

* Initial plan

* Add StandardSchemaAdapter tests

Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>

* changeset

* return `message` in `toJSON`

* review comments

* tidy

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>
2026-03-10 16:39:39 +01:00
rafael c9004b4d98 disable tracking image rollout (#4726) 2026-03-05 20:38:14 -03:00
devin ivy 7ed57043c1 bsky: switch default image format to jpeg temporarily (#4723)
Co-authored-by: rafaeleyng <rafaeleyng@gmail.com>
2026-03-05 15:29:42 -03:00
rafael 7444295e79 use feature gate to remove image format from URL (#4721)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 14:05:21 -03:00
Matthieu Sieben 5a2f8847ef Improve lex-client error reporting (#4714)
* Improve lex-client error reporting

* tidy

* Enhance XrpcFetchError handling and improve error messages

* fix test

* add tests

* improve test coverage

* fix lint
2026-03-05 12:14:44 +01:00
devin ivy 383e157021 bsky: remove format from img urls by default (#4712)
* bsky: remove format from img urls, w/ config to control rollout. default webp.

* tidy

* changeset

* tidy
2026-03-04 22:41:44 -05:00
github-actions[bot] 39ea120dae Version packages (#4718)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-04 17:54:55 -06:00
Eric Bailey 76ab6eaa7b Remove account status fallback to stale value (#4717) 2026-03-04 17:50:56 -06:00
github-actions[bot] 82e708095e Version packages (#4715)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-04 15:32:00 -06:00
Matthieu Sieben 0e5df95e3a Make sure to always trigger refreshSession when resuming sessions (#4713)
Make sure to always trigger `refreshSession` when `resumeSession()` is called
2026-03-04 15:13:50 -06:00
DS Boyce 66341400d4 Deprecate recId in favor of recIdStr (#4683)
* Deprecate recId in favor of recIdStr

* Add changeset

* Revert "Add changeset"

This reverts commit 3241aec7202c1bcb2a8e28f7064def5024dcae73.

* Recreate changeset as patch version
2026-03-04 12:37:28 -08:00
github-actions[bot] 88326d2833 Version packages (#4703)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-03 15:45:46 +01:00
Matthieu Sieben f7c26103a6 Increase type strictness in @atproto/syntax (#4689)
* Increase type strictness in `@atproto/syntax`

* review comments

* wip

* make `rkey` and `collection` AtUri getters actually safe

* tidy

* tidy

* tidy

* changeset

* tidy

* tidy

* fix ci
2026-03-03 15:10:29 +01:00
Matthieu Sieben 1c473ab555 Update @atprto/lexicon-resolver to use Lex SDK (#4697)
Use Lex SDK as codegen for `@atprto/lexicon-resolver`
2026-03-03 13:57:33 +01:00
Matthieu Sieben d5f4224f73 Update PDS's internal pipethough error handling (#4698)
* Update PDS's internal pipethough error handling

* tidy
2026-03-03 13:57:15 +01:00