Skip to content

Latest commit

 

History

History
934 lines (701 loc) · 51.7 KB

CHANGELOG.md

File metadata and controls

934 lines (701 loc) · 51.7 KB

Changelog

Upcoming

  • apollo
    • <First apollo related entry goes here>
  • apollo-codegen-core
    • <First apollo-codegen-core related entry goes here>
  • apollo-codegen-flow
    • <First apollo-codegen-flow related entry goes here>
  • apollo-codegen-scala
    • <First apollo-codegen-scala related entry goes here>
  • apollo-codegen-swift
    • <First apollo-codegen-swift related entry goes here>
  • apollo-codegen-typescript
    • <First apollo-codegen-typescript related entry goes here>
  • apollo-env
    • <First apollo-env related entry goes here>
  • apollo-graphql
    • <First apollo-graphql related entry goes here>
  • apollo-language-server
    • <First apollo-language-server related entry goes here>
  • apollo-tools
    • <First apollo-tools related entry goes here>
  • vscode-apollo
    • <First vscode-apollo related entry goes here>
  • apollo
    • fix bad parsing of multiple locaSchemaFiles #1529
  • [email protected]
    • Add tsFileExtension option to allow custom file extension in ts (like d.ts) #1130
  • [email protected]
    • Add tsFileExtension option to allow custom file extension in ts (like d.ts) #1130
  • [email protected]
    • Add debugging util classes for better error/warning handling #1429
    • Add error for duplicate client operation names #1466
    • Add client schema support through autocomplete, hover information, validation rules, and code actions. #1433
  • [email protected]
    • Add tsFileExtension flag to allow custom file extension in ts (like d.ts) #1130
  • [email protected]
    • Improve the syntax highlighting of directives and their definitions. #1433
    • Add debugging util class for better logging in vs code #1429
  • [email protected]
    • Fixes issue where a server adding a new type the client doesn't know about can cause a crash
  • [email protected]
    • Fix issue where type names were not being properly escaped iOS 193
    • Fix overcorrection on removing redundant modifiers #1449
    • Added CaseIterable conformance so all known cases can be easily iterated.
    • Added comment to operationDefinition to show the original query
    • Stripped excess whitespace out of operationDefinition
    • Removed force-unwrap when the thing being unwrapped is a double optional
  • [email protected]
    • Fix cache invalidation bug for reload schema which caused outdated results in autocomplete #1446
  • [email protected]
    • Add service:list and tests #1358 and header #1377
    • Update service:list test to use a simulated time to prevent relative dates causing snapshot failures #1374
    • Update service:check to support --markdown and --json flags for federated schema #1378
    • Exit status code 1 after composition errors in service:push #1403
    • Update service:check to include graphCompositionId in query params for UI #1401
  • [email protected]
    • Update Swift codegen to add operation name to generated query classes #1386
    • Append terminating newline character to generated files #531
  • [email protected]
    • Allow template literal placeholders that span multiple rows#1299
    • Add support for extracting GraphQL documents from Ruby source files using <<-GRAPHQL...GRAPHQL heredoc. #1304
  • [email protected]
    • Handle subscribe in buildServiceDefinition and add type in resolverMap #1047
  • [email protected]
    • Add support for Ruby source files using <<-GRAPHQL...GRAPHQL heredoc. #1304
  • [email protected]
    • Leverage updates to apollo-language-server to support federated services #1251
    • Add service:delete command for deleting federated services #1251
  • [email protected]
    • Add new utils and predicates #1251
  • [email protected]
    • Require graphql@^14.2.1 #1251
    • Add buildSchemaFromSDL and related utilities for constructing partial schemas #1251
    • Add transformSchema and related utilities for easily transforming schemas #1251
  • [email protected]
    • Fix windows file paths by normalizing all URIs to a consistent format #1213.
    • Fix positionToOffset to consider windows line endings #1213.
    • Extend Engine API for federated schema uploads and checks #1251
    • Reorganize files and exports #1251
  • [email protected]
    • Update service:check's --markdown output to include clients affected, number of operations checked, pluralization improvements, and backticks around service and schema variant #1164
    • Update service:check output to show failures before passes #1168
  • [email protected]
    • Update operation normalization technique to deterministically order fragments within operations. This update affects those users of the operation registry feature of the Apollo Platform. Anyone using the operation registry should re-register their operations with this new version of the apollo CLI via the apollo client:push command. Once all client operations are re-registered, the apollo-server-plugin-operation-manifest plugin within Apollo Server (which reads the manifest published with apollo client:push) should be updated to 0.1.0-alpha.1. #1158
  • [email protected]
    • Stop loadConfig from looking up the tree when a --config location is defined #1059
    • Refactored/documented/tested loadConfig #1059
    • Add .vue file support for codegen:generate #1160
  • [email protected]
    • Change the sortAST algorithm to sort fragments at the top-level of the DocumentNode, providing a more deterministic normalization of the operation for use by apollo-engine-reporting (which consumes this package's defaultOperationRegistrySignature function). This will more correctly combine operations for Engine reporting. This also adds a defaultOperationRegistrySignature function for use by the apollo-server-plugin-operation-registry plugin to eventually consume. #1112
  • [email protected]
    • Use generated Typescript types via client:codegen #1016
    • Remove default --tag=current for some client commands that used it #1062
    • Add missing dependency @oclif/errors #1068
    • Include targetUrl in the output of the service:check command #1072
    • Import apollo-env utility types directly instead of treating them as globals #1074
  • [email protected]
    • Import apollo-env utility types directly instead of treating them as globals #1074
  • [email protected]
    • Import apollo-env utility types directly instead of treating them as globals #1074
  • [email protected]
    • Add missing dependencies @babel/generator, common-tags #1071
  • [email protected]
    • The keyword "type" is escaped when generating scala.js via client:codegen #1066
    • Add missing dependencies @babel/generator, common-tags #1071
  • [email protected]
    • Add missing dependencies @babel/generator, common-tags #1071
  • [email protected]
    • Add missing dependencies @babel/generator, common-tags #1071
  • [email protected]
    • Expand the graphql peer dependency range of apollo-graphql to also include 0.13.x and 0.12.x in addition to 14.x, since the apollo-graphql package is relied upon by apollo-server-core which specifies those requirements itself. #1076
  • [email protected]
    • Fix a bug where tagging a build will cause the tool to not be able to figure out where the git repo is #944
    • Re-enable logging for codegen when in watch mode #1039
  • [email protected]
    • Added a warning when there are 0 files found in a project #1007
    • Allow relative paths in includes/excludes globs #1007
  • [email protected]
    • Updated marketplace readme, color schemes, and icon to be prettier #942
  • [email protected]
    • Support validation parameters for service:check #953
    • Leverage nullability of validation parameters #1006
    • Unpin graphql version #1010
  • [email protected]
    • Better error handling in ApolloEngineClient #953
    • Fix language server mis-reporting client identity for schema loading operation #940
    • Unpin graphql version #1010
  • [email protected]
    • Fix inline graphql highlighting in Vue <script> tags #981
    • Fix graphql comments not being highlighted correctly #907
  • apollo-language-server 1.4.1
    • Fix edge case for empty operations #959
  • apollo 2.4.1
    • Bump the apollo-engine-reporting version #950
  • apollo 2.4.0
    • Fix configuration loading and schema tag support #925
    • Improve client:check output #934
  • apollo-language-server 1.4.0
    • Replace checkOperations mutation with new validateOperations mutation #934
    • Include config files into a project's fileSet #897
    • Add hook into workspace for communicating out when configs are loaded or when errors are found #897
    • Add fn to workspace for reloading a project with a given config URI #897
    • Reload project when config file is changed #897
    • Update error handling from within the server (send as message). This message can be listened for and handled by the consumer #897
  • vscode-apollo 1.4.1
    • Update statusBar to reflect new possible "warning" states #897
  • [email protected]
    • Fixed config to only use service name from the correct key types commit
    • Adjust priority of engine api key parsing to prefer flag over env key commit
  • [email protected]
    • Added better errors around missing services
    • Updated config documentation
    • Fixed failures with missing service name

NOTE: Many of the updates and changes in this release came from a complete rebuild of the Apollo CLI in preparation for GraphQL summit. Many of these changes can be traced to this commit but aren't tied to a specific pull request, and won't be linked.

  • [email protected]
    • 🚀 Features
      • queries:register to register operations with the apollo platform #621
      • Update graphql to version 14 #624
      • Supports a .env file for engine API keys commit
    • 🐛 Fixes & Changes
      • Fixed config file resolution #591
    • 💥 Breaking Changes
      • Introduced a new apollo.config.js format commit
      • Changed format of queries:extract manifest to be more extensible #611
      • Changed manifest hash encoding to SHA-256 instead of SHA-512 #611
      • Deprecated apollo schema:*, and codegen:* commands and aliased usage to new commands
        • apollo codegen:generate aliases to apollo client:codegen
        • apollo schema:check aliases to apollo service:check
        • apollo schema:download aliases to apollo service:download (added 2.0.13)
        • apollo schema:publish aliases to apollo service:push
        • apollo plugins:add aliases to apollo plugins:install
        • apollo plugins:unlink and apollo plugins:remove aliases to apollo plugins:uninstall
      • Removed apollo queries:* commands
        • apollo client:check should be used in place of apollo queries:check
        • apollo client:extract should be used in place of apollo queries:extract
      • Deprecated --queries flag in client commands in place of the --includes flag
  • [email protected]
    • Initial release of apollo-language-server to support vscode-apollo, and apollo
    • Supports editor features for...
      • Autocompletion of GraphQL documents
      • Hover information for fields anr arguments
      • Type definitions and references
      • Code lenses for open files
  • [email protected]
    • Initial Release of vscode-apollo
    • Switching of schema tags #632
    • Supports all of the editor features exposed by apollo-language-server

v1.8.3

  • apollo
  • apollo-codegen-swift
    • Treat mergeInFieldsFromFragmentSpreads as false in Swift codegen when flag isn't specified. Fixes #537. @martijnwalraven)

v1.7.1

🚀 Feature

  • apollo-codegen-typescript
    • #535 [TS] Sort global types so order is not determined by order of appearance (@danilobuerger)

🐛 Bug Fix

  • apollo-codegen-typescript
    • #544 Prepend ./ to TS relative paths to make them valid, Closes #543 (@shadaj)
  • apollo-cli
    • #534 Allow to run apollo codegen:generate --watch on non tty devices (@trojanowski)

Committers: 3

v1.7.0

🚀 Feature

  • apollo-language-server, apollo-vscode
    • #536 Display status of loading tasks for config and Engine stats (@shadaj)
  • apollo-cli
    • #533 Fall back to other methods of schema loading when one fails (@shadaj)
  • apollo-cli, apollo-codegen-typescript
    • #525 [TS] Elimate newlines at beginning of file and add newline at end of file (@danilobuerger)
  • apollo-cli, apollo-codegen-core
    • #526 Scan all files for queries and reduce use of default endpoints (@shadaj)
  • apollo-cli, apollo-codegen-typescript, common-test
  • apollo-codegen-typescript

🐛 Bug Fix

  • apollo-cli, apollo-language-server, apollo-vscode
    • #519 [VSCode] Fix detection of projects inside folders (@shadaj)
  • apollo-cli

📝 Documentation

Committers: 3

v1.6.0

🚀 Feature

  • apollo-language-server
  • apollo-language-server, apollo-vscode
    • #515 Fix missing descriptions and add more hover information for arguments (@shadaj)
  • apollo-cli, apollo-codegen-core, apollo-language-server, apollo-vscode-webview, apollo-vscode
    • #512 React UI for webviews, fix file tracking and fragment spreads (@shadaj)
  • apollo-cli, apollo-language-server, apollo-vscode
    • #508 Support jumping to definitions in schema (@shadaj)

📝 Documentation

🏠 Internal

  • apollo-cli, apollo-language-server
    • #506 Share validation logic between CLI and language server (@shadaj)

Committers: 2

v1.5.0

🚀 Feature

  • apollo-language-server, apollo-vscode
  • apollo-cli, apollo-codegen-core
    • #497 Load config from apollo.config.js or package.json (@shadaj)

🏠 Internal

  • apollo-cli
    • #492 Make TypeScript options more consistent across packages (@shadaj)

Committers: 1

v1.4.0

🚀 Feature

  • apollo-cli
    • #484 Support file watching for codegen:generate (@shadaj)
    • #490 Assume the output is a directory when it has no extension (@shadaj)
    • #485 Support loading server-side schema from JS/TS files (@shadaj)
    • #483 Support generating based on .graphql schema files (@shadaj)

🐛 Bug Fix

  • apollo-cli, apollo-codegen-core
    • #488 Handle cases when storing server-defined models in local state (@shadaj)

🏠 Internal

  • apollo-cli

Committers: 1

v1.3.0

🚀 Feature

  • apollo-cli, apollo-codegen-core
    • #480 Initial support for client-side schemas (@shadaj)

🏠 Internal

  • apollo-cli, apollo-codegen-core, apollo-codegen-flow-legacy, apollo-codegen-flow, apollo-codegen-scala, apollo-codegen-swift, apollo-codegen-typescript-legacy, apollo-codegen-typescript
    • #479 Run build before publishing to prevent uploading stale code (@shadaj)

Committers: 1

v1.2.0

🚀 Feature

🐛 Bug Fix

  • apollo-cli, apollo-codegen-core
    • #465 Improve typing of options and add more codegen tests (@shadaj)
    • #464 Command-level unit tests for codegen (@shadaj)
  • apollo-cli
    • #470 Restore ability to put generated files in a directory relative to source (@mike-marcacci)
    • #457 Allow legacy targets to be used when manually specified (@shadaj)
  • apollo-codegen-flow
    • #461 Change generated flow files extension to .js instead of .ts (@TLadd)

📝 Documentation

  • apollo-cli

🏠 Internal

  • Other
    • #477 Add lerna-changelog to manage generating changelogs (@shadaj)
  • apollo-cli, apollo-codegen-core
    • #465 Improve typing of options and add more codegen tests (@shadaj)
    • #464 Command-level unit tests for codegen (@shadaj)

Committers: 5

Legacy Apollo Codegen Changelog

v0.20.2

  • The TypeScript and Flow targets now use block comments to better handle multiline comments in schemas
  • Fix crash when running on a version of Node that already supports Array.flatMap

v0.20.1

  • Fix issue with flow-legacy target being unusable

v0.20.0

  • BREAKING: The typescript and flow targets now refer to the modern implementations. The deprecated legacy targets are available under typescript-legacy and flow-legacy.
  • BREAKING: The --output parameter to the CLI is now required for all targets.
  • The TypeScript and Flow targets now support outputting types to either a single file or a directory, where types for each query will be separated