commits
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add extra EOF test cases
* Fix unexpected EOF in comments
* Add changeset
* Apply lints
* Add support for executable descriptions
* Add changeset
* Cleanup
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Remove loc setter/getter and hoist into `document`
* Remove redundant selectionSetStart check in definitions
* Add changeset
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix: compatibility with typescript 5.5 and higher
* add changeset
* fix: export Extensions type
* Create flat-tools-pretend.md
---------
Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Remove for-of from values helpers
* Add changeset
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix typo in complex string detection
Fix typo causing complex string detection not to trigger
correctly.
* Add changeset
* Add test
* publish to jsr
* fix linting
* add experimental
* add action
* fix types
* change name to have a dash
* fixes
* Copy over discord-message action
* Update Node LTS in actions
* Add discord-message hook
* Remove node-fetch
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix the directive syntax for ignoring errors due to unavailable peer dependencies
* Add a changeset
* Update .changeset/serious-hotels-shake.md
---------
Co-authored-by: Phil Pluckthun <phil@kitten.sh>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix incorrect AST alias
* Update printer with new indent logic
* Simplify OperationDefinition printer
* Replace selection set generic printers
* Fix unrelated bench name
* Replace map + join
* Remove variableDefinitions that were accidentally copied over
* Add changeset
* Combine value matchers into single regex match
* Refactor object/list parser into leading loop
* Turn arguments parsing into leading loop
* Tweak type parsing implementation
* Reformat variableDefinitions parsing
* Refactor selectionSet parsing to merge branches
* Pull out start of selections in parsing branches
* Remove redundant length checks
* Merge variable name into value parser
* Merge float part into main regex
* Absorb object/list parsing into value parser
* Merge field parsing into selectionSet parser
* Squash away typeCondition parser
* Merge fragmentSpread into selectionSet parser
* Remove redundant arrays in operation definitions
* Extract OperationType matching to document parser
* Avoid allocating variableDefinitions array as possible
* Avoid allocating directives if possible
* Avoid allocating arguments array if possible
* Remove name() helper
* Remove redundant ignore() calls
* Add changeset
* Remove redundant import
* Add mising tests and remove redundant branches
* Update comments
* Add additional tests
* Remove recursion from type() parser
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add test cases for strings greedily matching
* Fix blockStringRe and stringRe eagerly parsing
* Add changeset
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix constRe match for Safari
* Add quirk fix for floatPartRe
* Update operationDefinitionRe just in case
* Update character classes for names to be more precise
* Add changeset
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* chore: Set up publish with npm provenance
* Update lockfile
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Build AST types that are always extending graphql’s types
* Replace entire type when possible
* Apply lint
* Add optional graphql peer dependency
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Set up coverage provider
* Add test for multiline block string
* Fix up Int/Float detection
* Add test for non-block strings
* Add tests for object values
* Reformat parse tests
* Add tests for parsing arguments
* Add tests for directives
* Add test for aliased field
* Add tests for list values
* Add tests for invalid type references
* Add tests for inline fragments
* Add tests for variable definitions
* Remove redundant type parse check
* Add tests for fragment definitions
* Remove redundant EOF check
* Remove redundant null check in parseType
* Add basic call tests
* Update GraphQLError and add tests
* Apply lints
* Add tests for printString and printBlockString
* Add additional printer tests
* Add missing test cases for visitor
* Add changeset
* Update snapshots
* Apply lints
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Combine value matchers into single regex match
* Refactor object/list parser into leading loop
* Turn arguments parsing into leading loop
* Tweak type parsing implementation
* Reformat variableDefinitions parsing
* Refactor selectionSet parsing to merge branches
* Pull out start of selections in parsing branches
* Remove redundant length checks
* Merge variable name into value parser
* Merge float part into main regex
* Absorb object/list parsing into value parser
* Merge field parsing into selectionSet parser
* Squash away typeCondition parser
* Merge fragmentSpread into selectionSet parser
* Remove redundant arrays in operation definitions
* Extract OperationType matching to document parser
* Avoid allocating variableDefinitions array as possible
* Avoid allocating directives if possible
* Avoid allocating arguments array if possible
* Remove name() helper
* Remove redundant ignore() calls
* Add changeset
* Remove redundant import
* Add mising tests and remove redundant branches
* Update comments
* Add additional tests
* Remove recursion from type() parser
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Set up coverage provider
* Add test for multiline block string
* Fix up Int/Float detection
* Add test for non-block strings
* Add tests for object values
* Reformat parse tests
* Add tests for parsing arguments
* Add tests for directives
* Add test for aliased field
* Add tests for list values
* Add tests for invalid type references
* Add tests for inline fragments
* Add tests for variable definitions
* Remove redundant type parse check
* Add tests for fragment definitions
* Remove redundant EOF check
* Remove redundant null check in parseType
* Add basic call tests
* Update GraphQLError and add tests
* Apply lints
* Add tests for printString and printBlockString
* Add additional printer tests
* Add missing test cases for visitor
* Add changeset
* Update snapshots
* Apply lints