github-actions[bot]
ff9f84e11a
Version packages ( #4851 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-15 10:06:49 +02:00
Matthieu Sieben
26d793af95
Improve AtUriString type an utilities ( #4806 )
...
* Improve `AtUriString` type an utilities
* review comments
* tidy
* tidy
* tidy
* tidy
* Apply suggestion from @matthieusieben
* Apply suggestion from @matthieusieben
* review comments
2026-04-14 18:57:10 +02:00
github-actions[bot]
83b7246439
Version packages ( #4833 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-09 10:24:41 -05:00
Matthieu Sieben
c62651dd69
Fix support for legacy blobs in lex SDK ( #4828 )
...
* Allow validation of legacy blobs (in 'validate' mode)
* tidy
* tidy
* tidy
* changeset
* tidy
* review comments
* update skills
* tidy
* Add `TypedBlobRef`
* fix style
* review comments
* lint
2026-04-07 20:11:46 +02:00
github-actions[bot]
2203d825e8
Version packages ( #4776 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-26 09:17:15 -03:00
Matthieu Sieben
ac6bd18f1d
Disable strict mode parsing of records ( #4796 )
2026-03-24 13:38:11 +01:00
Matthieu Sieben
c5c6c7dac3
Allow any encoding to match payload with no encoding specified in schema ( #4799 )
...
* Allow any encoding to match paylaod that don't expect any particular encoding
* Explicitly cancel request body when it does not get consumed
* tidy
2026-03-24 13:36:57 +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
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
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
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
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
Matthieu Sieben
112b159ec2
Export more string format type assertion utilities from @atproto/lex
2026-03-16 08:45:33 +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
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
52834aba18
Lex SDK error handling improvements ( #4688 )
...
* Lex SDK error handling improvements
* Allow `WWWAuthenticate` to have multiple challenges for the same scheme
* tidy
* add tests
* tests
* review comments
* tidy
* tidy
* tidy
* tidy
2026-03-02 15:37:00 +01:00
github-actions[bot]
caad88223f
Version packages ( #4653 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-20 09:05:35 +01:00
Matthieu Sieben
ea5df64db9
Various Lex SDK improvements ( #4660 )
...
* Various Lex SDK improvements
* changeset
* Improve typeing of `string()` schemas
* fix tests
* improve backwards compatibility
2026-02-19 13:52:24 +01:00
Matthieu Sieben
39dea03c41
Lex SDK fixes and improvements ( #4654 )
...
* minor tests fix
* Properly support "enum" and "const" schemas in params
* tidy
* Add support for `knownValues` in string schemas
* tidy
* tests
* tidy
* tidy
* tidy
* fix types
* fix tests
* add suggested tests
* merge conflicts
2026-02-19 13:17:54 +01:00
github-actions[bot]
27cdeb4e86
Version packages ( #4604 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-06 15:12:15 +01:00
Matthieu Sieben
ed61c62f31
Add docs in lex SDK packages ( #4601 )
...
* Fix `exports` field in package.json
* tidy
* AT Protocol
2026-02-06 14:40:54 +01:00
Matthieu Sieben
7b9a98a763
Improve type inference of XRPC methods ( #4603 )
...
* Improve type inference of XRPC methods
* tidy
* tidy
* tidy
* tidy
2026-02-03 14:29:22 +01:00
github-actions[bot]
915f9065d3
Version packages ( #4584 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-30 14:20:33 -03:00
Matthieu Sieben
369bb02b9f
@atproto/lex-client error typing improvements (#4589 )
2026-01-30 14:01:17 +01:00
Matthieu Sieben
8a725a9d69
Change workspace version selector from workspace:* to workspace:^
2026-01-28 16:42:44 +01:00
github-actions[bot]
595dd20323
Version packages ( #4561 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-23 13:29:23 -06:00
Matthieu Sieben
99963d002a
lex SDK improvements ( #4571 )
...
* Improve code coverage of `@atproto/lex-data` tests
* Improve typing of `@atproto/syntax` type assertion utilities
* Improve performance of `@atproto/lex-schema ` string format checking
* Remove `assertX` string format assertion utilities
* tidy
* tidy
* Rename `isLanguageString` to `validateLanguage`
* add string format utils
* tidy
* Refactor uri validation to use `@atproto/syntax`
* More language validation to @atproto/syntax
2026-01-21 16:15:47 +01:00
Matthieu Sieben
7310b9704d
Fix behavior of "default" and assignment to LexValue ( #4562 )
...
* Fix inability to assign (object containing) open union results to `LexMap` type
* properly support and type default values
* strong cohesion
* changeset
* tidy
* Add validation error as cause when handling invalid records
* tidy
* Update `cborg` dependency, fixing encoding of strings with invalid surrogate pairs, and ignoring `undefined` object properties
* tidy
* Simplify encoding logic of `number`
* Improvements around usage of `noUndefinedVals`
* Memoize array schemas (without options)
* Memoize empty params schemas
* tidy
* tidy
2026-01-20 13:20:56 +01:00
github-actions[bot]
c2615a7eee
Version packages ( #4530 )
2026-01-12 21:13:16 +02:00
Matthieu Sieben
dfd4bee4ab
Improve distinction between external Cid interface and CID implementation ( #4528 )
...
* Improve distinction between external `Cid` interface and `CID` implementation
* tests
* tidy
* tidy
2026-01-09 14:05:31 +01:00
github-actions[bot]
0b03086d35
Version packages ( #4518 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-08 18:12:54 +01:00
Matthieu Sieben
d78484f94d
@atproto/lex improvements (bis) (#4512 )
...
* `@atproto/lex` improvements (bis)
* tidy
* tidy
2026-01-08 15:31:49 +01:00
github-actions[bot]
0093727fc4
Version packages ( #4505 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-06 15:59:52 +01:00
Matthieu Sieben
2f78893ace
Small @atproto/lex improvements ( #4501 )
...
* Avoid escaping export identifier when it is a known global
* Use a record type instead of a record schema type as the generic parameter for `ListRecord`
* Export everything from `@atproto/lex-data` and `@atproto/lex-json`
* Add lex-json and lex-data to lex readme
* lock
* Apply defaults when running `schema.$build()` on objects and records.
* changeset
* simplify $Typed and $TypedMaybe
* tidy
* tidy
* Add `enumBlobRefs` utility function
* Add an `indexFile` option that allows generating an "index.ts" file that re-exports every tld namespaces.
* readme
* Add `base64ToUtf8` and `utf8ToBase64` utilities
* Add service auth authentication method
2026-01-06 15:47:13 +01:00
github-actions[bot]
8e759970af
Version packages ( #4497 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-02 09:48:32 +01:00
Matthieu Sieben
9af7a2d122
Password based agent implementation ( #4443 )
...
* Password based agent implementation
* tidy
* tidy
* wip
* tidy
* wip
* tidy
* wip
* tests
* tidy
* websocket
* tidy
* tidy
* tidy
* tidy
* tidy
* tidy
* tidy
* tidy
* changeset
* codegen
* tidy
* tidy
* tidy
* tidy
* tests
* tidy
* tidy
* tests
* tidy
* tidy
* tidy
* wip
* tidy
* memoize
* tidy
* tests
* tidy
* files reorg
* Ensure that default values match constraints
* wip
* use vitest to test lex
* Add readme
* fix lint
* add vitest workspace config
* vitest config
* vitest-cfg
* tests
* ignore coverage
* tidy
2026-01-01 13:28:29 +01:00
github-actions[bot]
95bd491ecb
Version packages ( #4466 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-30 10:26:18 -06:00
Matthieu Sieben
e6b6107e02
Lex SDK improvements ( #4457 )
...
* Lex SDK improvements
* changeset
* tidy
* tidy
* Fix `include` option in `tsconfig.test.json` files
* tidy
* ignore "require" in cjs files
* tidy
* tidy
* Improve error management
* rename xrpc-error file
* tests
* fix lint
* lint
* tidy
* puppeteer cache busting
* fix oauth tests
* tidy
* wip
* tidy
* tidy
* tidy
* Forbid use of unsafe integers
2025-12-17 16:14:15 +01:00
github-actions[bot]
104e6ed37b
Version packages ( #4412 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-08 16:05:29 -03:00
github-actions[bot]
dc08244c24
Version packages ( #4386 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-02 11:05:55 -06:00
Matthieu Sieben
a487ab8afe
Add tests ( #4401 )
...
* Add tests
* Fixes
* drop `lexiconType` property
* Simplify `ParamsSchema` interface
* tidy
* More tests
2025-12-01 17:12:47 +01:00
Matthieu Sieben
688f9d6759
Add changelog to npm packages and @atproto/lex readme ( #4397 )
...
* Add changelog to npm packages and `@atproto/lex` readme
* changeset
2025-11-30 20:02:12 +01:00
Matthieu Sieben
bcae2b77b6
Increase string format typing strictness ( #4389 )
...
* Increase string format typing strictness
* fix tests
* tidy
* Use string formats from `@atproto/syntax`
* tidy
* `key` field in `record` definitions is non optional and now properly validated
* add missing /*@__NO_SIDE_EFFECTS__*/
2025-11-30 19:46:07 +01:00
Matthieu Sieben
1d445af2a7
lex SDK improvements ( #4390 )
...
* Add `l.nullable` schema builder
* Use unique symbol to describe Validator type metadata
* fixup! Add `l.nullable` schema builder
* Rework object validation logic to work without `options` argument
* Do not use symbol for type inference
* Use `Issue` classes to represent validation issues
* Properly apply default value with `const` and `enum` schemas
* style
* Require `l.discriminatedUnion` discriminator field to be a literal or enum schema
* Add `l.refined` schema
* Add more lexicons document validation tests
* wip
* use "assert" fn
* rework refine system
* use assert instead of check fn
* tidy
* Rename schema methods `validate`, `check` and `maybe` to `safeParse`, `matches` and `ifMatches` respectively.
* docs
* changeset
2025-11-30 14:35:15 +01:00
Matthieu Sieben
9f87ff3aa6
Type dict keys as optional ( #4387 )
...
* Type `dict` keys as optional
* tidy
2025-11-25 21:48:26 +01:00