UNPKG

@atomist/automation-client

Version:
785 lines (444 loc) • 24.3 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased](https://github.com/atomist/automation-client-ts/compare/1.0.0-M.2...HEAD) ### Added - On startup, tell people how to get an API key. [#348](https://github.com/atomist/automation-client-ts/issues/348) - Add ConfigurationPostProcessor type. [#4dfbb0f](https://github.com/atomist/automation-client-ts/commit/4dfbb0f0cffae9fc45748c558d05d497361bd8c9) - Add generic return type to ConfigurationPostProcessor. [#a564fce](https://github.com/atomist/automation-client-ts/commit/a564fce96107017001e4d47afc9dd229c36ba34a) - Add support for marking branch commits to auto merge. [#4c8f677](https://github.com/atomist/automation-client-ts/commit/4c8f677d2857f301abedd65d7fe9fe5eb37da56f) ### Changed - Support author as string or object. [#346](https://github.com/atomist/automation-client-ts/issues/346) - If no event handlers are found, return 404 not 500. [#347](https://github.com/atomist/automation-client-ts/issues/347) - Do not show links in startup if not registered. [#da0c942](https://github.com/atomist/automation-client-ts/commit/da0c9425b5493588f39a1565d964dc7b17ca67c5) - Log under user home directory. - Remove dimensions on metrics. [#349](https://github.com/atomist/automation-client-ts/issues/349) - **BREAKING** Pull up id to RepoId and remove unused code. [#351](https://github.com/atomist/automation-client-ts/issues/351) ## [1.0.0-M.2](https://github.com/atomist/automation-client-ts/compare/1.0.0-M.1...1.0.0-M.2) - 2018-08-27 ### Changed - Update Atomist dependencies to 1.0.0-M.1. ### Fixed - Properly read client package.json. ## [1.0.0-M.1](https://github.com/atomist/automation-client-ts/compare/0.21.8...1.0.0-M.1) - 2018-08-27 ### Changed - Prepare for 1.0.0 release. ## [0.21.8](https://github.com/atomist/automation-client-ts/compare/0.21.7...0.21.8) - 2018-08-24 ## [0.21.7](https://github.com/atomist/automation-client-ts/compare/0.21.6...0.21.7) - 2018-08-23 ## [0.21.6](https://github.com/atomist/automation-client-ts/compare/0.21.5...0.21.6) - 2018-08-23 ### Fixed - Immediately shut down when no hooks are registered. [#c010ce1](https://github.com/atomist/automation-client-ts/commit/c010ce1ed2f5a888d7c7b605461e53093d35c58f) ## [0.21.5](https://github.com/atomist/automation-client-ts/compare/0.21.4...0.21.5) - 2018-08-23 ## [0.21.4](https://github.com/atomist/automation-client-ts/compare/0.21.3...0.21.4) - 2018-08-21 ## [0.21.3](https://github.com/atomist/automation-client-ts/compare/0.21.2...0.21.3) - 2018-08-21 ### Added - Expose ChildProcess on ChildProcessResult to allow it to be killed. [#342](https://github.com/atomist/automation-client-ts/issues/342) - Add support for proxy authentication. [#343](https://github.com/atomist/automation-client-ts/issues/343) ## [0.21.2](https://github.com/atomist/automation-client-ts/compare/0.21.1...0.21.2) - 2018-08-21 ### Fixed - Get rid of deprecation warnings when installing cli. [#340](https://github.com/atomist/automation-client-ts/issues/340) ## [0.21.1](https://github.com/atomist/automation-client-ts/compare/0.21.0...0.21.1) - 2018-08-18 ## [0.21.0](https://github.com/atomist/automation-client-ts/compare/0.20.4...0.21.0) - 2018-08-17 ### Changed - Install scripts in bin. [#339](https://github.com/atomist/automation-client-ts/issues/339) ## [0.20.4](https://github.com/atomist/automation-client-ts/compare/0.20.3...0.20.4) - 2018-08-17 ### Deprecated - Move scripts to bin directory. [#338](https://github.com/atomist/automation-client-ts/issues/338) ## [0.20.3](https://github.com/atomist/automation-client-ts/compare/0.20.2...0.20.3) - 2018-08-16 ### Changed - Use cross-spawn to better support Windows. [#337](https://github.com/atomist/automation-client-ts/issues/337) ## [0.20.2](https://github.com/atomist/automation-client-ts/compare/0.20.1...0.20.2) - 2018-08-16 ### Fixed - Fix start.gql-gen.ts script for MS Windows. ## [0.20.1](https://github.com/atomist/automation-client-ts/compare/0.20.0...0.20.1) - 2018-08-10 ### Added - Add git-info and gql-gen scripts. [#1ac65e6](https://github.com/atomist/automation-client-ts/commit/1ac65e68679e63ecf470f57f3014e96abb0630f1) ### Changed - Move types to dependencies. [#f9b3331](https://github.com/atomist/automation-client-ts/commit/f9b3331fbc8e53362d535e045a17993a6e3bf178) ## [0.20.0](https://github.com/atomist/automation-client-ts/compare/0.19.7...0.20.0) - 2018-08-09 ### Fixed - Allow local-sdm "new sdm" command to run from any directory. ## [0.19.7](https://github.com/atomist/automation-client-ts/compare/0.19.6...0.19.7) - 2018-08-09 ### Added - Add more exports to index.ts ### Changed - **BREAKING** Feedback on graphClient.executeQueryFromFile versus graphClient.query. [#334](https://github.com/atomist/automation-client-ts/issues/334) ## [0.19.6](https://github.com/atomist/automation-client-ts/compare/0.19.5...0.19.6) - 2018-08-07 ### Changed - Update microgrammar dependency. ### Removed - Reference to slalom ## [0.19.5](https://github.com/atomist/automation-client-ts/compare/0.19.4...0.19.5) - 2018-08-06 ### Fixed - Logging initialization when `ATOMIST_DISABLE_LOGGING` is true ## [0.19.4](https://github.com/atomist/automation-client-ts/compare/0.19.3...0.19.4) - 2018-08-02 ### Changed - Updated schema. ## [0.19.3](https://github.com/atomist/automation-client-ts/compare/0.19.2...0.19.3) - 2018-08-02 ### Fixed - More workspace/team ID fixes ## [0.19.2](https://github.com/atomist/automation-client-ts/compare/0.19.1...0.19.2) - 2018-08-02 ### Changed - Configuration workspaceIds will be set to teamIds if no workspaceIds are set. ## [0.19.1](https://github.com/atomist/automation-client-ts/compare/0.19.0...0.19.1) - 2018-08-01 ### Fixed - Restore start.command.ts. ## [0.19.0](https://github.com/atomist/automation-client-ts/compare/0.18.1...0.19.0) - 2018-07-31 ### Added - **BREAKING** Initial support for apiKeys. [#329](https://github.com/atomist/automation-client-ts/issues/329) ### Deprecated - **BREAKING** Initial support for apiKeys. [#329](https://github.com/atomist/automation-client-ts/issues/329) ## [0.18.1](https://github.com/atomist/automation-client-ts/compare/0.18.0...0.18.1) - 2018-07-31 ## [0.18.0](https://github.com/atomist/automation-client-ts/compare/0.17.1...0.18.0) - 2018-07-26 ### Added - Allow to set timeout on spawned commands. [#312](https://github.com/atomist/automation-client-ts/issues/312) - Add command to install kube utilities. [#311](https://github.com/atomist/automation-client-ts/issues/311) - HTTP client and factory abstraction. [#321](https://github.com/atomist/automation-client-ts/issues/321) ### Changed - Open up configuration. [#320](https://github.com/atomist/automation-client-ts/issues/320) ### Deprecated - Migrate atomist CLI to its own package. [#315](https://github.com/atomist/automation-client-ts/issues/315) - Replace run.ts with start.command.ts. [#325](https://github.com/atomist/automation-client-ts/issues/325) ### Removed - Remove dependency to config module. [#317](https://github.com/atomist/automation-client-ts/issues/317) - **BREAKING** `Project` no longer extends `AbstractScriptedFlushable`. This is no longer necessary given async/await. [#318](https://github.com/atomist/automation-client-ts/issues/318) ### Fixed - Github's email setting "Block command line pushes that expose my email" breaks `@atomist generate`. [#322](https://github.com/atomist/automation-client-ts/issues/322) ## [0.17.1](https://github.com/atomist/automation-client-ts/compare/0.17.0...0.17.1) - 2018-06-04 ### Deprecated - Ingester and IngesterBuilder are deprecated in favor of GraphQL SDM definitions. ## [0.17.0](https://github.com/atomist/automation-client-ts/compare/0.16.0...0.17.0) - 2018-06-04 ### Fixed - Checking out a branch sets the branch. [#293](https://github.com/atomist/automation-client-ts/issues/293) ## [0.16.0](https://github.com/atomist/automation-client-ts/compare/0.15.1...0.16.0) - 2018-05-15 ### Added - Options for Git push(). - Token-based authentication. ### Changed - Change generator seed repository parameters to include Git provider. ### Deprecated - `BitBucketServerRepoRef`. - `allReposInTeam()`. - `generatorHandler()`. ### Fixed - Default @Value handling. ## [0.15.1](https://github.com/atomist/automation-client-ts/compare/0.15.0...0.15.1) - 2018-05-09 ### Changed - Repo handles both basic and token credentials. - Default log file name is now simple client name. ### Fixed - Make sure teamIds and groups are set in configuration. - Put SDM configuration under "sdm". ## [0.15.0](https://github.com/atomist/automation-client-ts/compare/0.14.1...0.15.0) - 2018-05-07 ### Added - The config command now probes environment for known SDM variables. ### Changed - Reduce default websocket grace period to 10 seconds. - Default for `--install` command-line options is to install if the. - Support `ATOMIST_config_path` environment variables. - Support injection of configuration values. - Support arbitrary top-level configuration. - **BREAKING** moved `automationClientInstance()` to `globals.ts`. ## [0.14.1](https://github.com/atomist/automation-client-ts/compare/0.14.0...0.14.1) - 2018-04-30 ### Added - Developer can control banner. ### Changed - Upgrade to TypeScript 2.8.3. ## [0.14.0](https://github.com/atomist/automation-client-ts/compare/0.13.1...0.14.0) - 2018-04-27 ### Added - Provided automation client instance via `automationClientInstance()`. - Support for raising PR against any branch. - Provider type to RemoteRepoRef. - Support for AtomistLog events. ### Changed - Print stack trace if loading configuration fails. ### Removed - **BREAKING** `runningAutomationClient`, use `automationClientInstance()`. ### Fixed - Call listeners on workers in cluster mode. - Fix team vs chatTeam usage. - Add enums to ingester. [#276](https://github.com/atomist/automation-client-ts/issues/276) ## [0.13.1](https://github.com/atomist/automation-client-ts/compare/0.13.0...0.13.1) - 2018-04-12 ### Fixed - Fix running node on MS Windows. [#271](https://github.com/atomist/automation-client-ts/issues/271) - Ensure gql-fetch works in clients. ## [0.13.0](https://github.com/atomist/automation-client-ts/compare/0.12.1...0.13.0) - 2018-04-10 ### Added - Production and testing configurations keyed on ATOMIST_ENV or. ### Changed - Made more configuration properties optional. - Check org webhook before adding repo webhook. ### Fixed - statsd reporting in workers. ## [0.12.1](https://github.com/atomist/automation-client-ts/compare/0.12.0...0.12.1) - 2018-04-03 ### Fixed - Removed removed scripts from package "bin". ## [0.12.0](https://github.com/atomist/automation-client-ts/compare/0.11.2...0.12.0) - 2018-04-03 ### Added - reduceResults to combine handler results. - Functions for posting Atomist webhooks. ### Removed - Remove previously deprecated command-line utilities now superseded. ## [0.11.2](https://github.com/atomist/automation-client-ts/compare/0.11.1...0.11.2) - 2018-03-28 ### Added - ID to ingester messages. ### Changed - Clean up logging. ### Fixed - Silent `atomist config` crash. ## [0.11.1](https://github.com/atomist/automation-client-ts/compare/0.11.0...0.11.1) - 2018-03-26 ### Fixed - Do not immediately exit client. ## [0.11.0](https://github.com/atomist/automation-client-ts/compare/0.10.0...0.11.0) - 2018-03-26 ### Changed - Improved configuration error messages. [#253](https://github.com/atomist/automation-client-ts/issues/253) - Provide user configuration if reporting it is valid. [#251](https://github.com/atomist/automation-client-ts/issues/251) - Error and exit if any provided configuration is invalid. [#254](https://github.com/atomist/automation-client-ts/issues/254) ## [0.10.0](https://github.com/atomist/automation-client-ts/compare/0.9.0...0.10.0) - 2018-03-26 ### Added - CLI gql-fetch command to download team schema with custom types. ### Changed - Better worker shutdown behavior. - Cleaner logs. ## [0.9.0](https://github.com/atomist/automation-client-ts/compare/0.8.0...0.9.0) - 2018-03-21 ### Added - GraphQL calls use proxy. - Startup banner. - Log level for logging to file. - GitProject revert method. - Support for GraphQL fragments. - Default gracePeriod of 60s. ### Changed - Export combineEditResults. ## [0.8.0](https://github.com/atomist/automation-client-ts/compare/0.7.0...0.8.0) - 2018-03-19 ### Added - Mapped parameters for all repos. - Print banner on successful registration. - Branch as optional parameter in RepoRef. - statsd support. - Logging to file. ### Changed - Custom ingester types now use array arguments. - At least one user/channel is required when sending messages. - Make configuration more composable and user config more powerful. ### Fixed - \--version command-line option. ## [0.7.0](https://github.com/atomist/automation-client-ts/compare/0.6.6...0.7.0) - 2018-03-07 ### Added - Variable parameters in subscriptions. - Card support. ### Deprecated - config --slack-team command-line option, use --team instead. [#234](https://github.com/atomist/automation-client-ts/issues/234) ## [0.6.6](https://github.com/atomist/automation-client-ts/compare/0.6.5...0.6.6) - 2018-01-31 ### Changed - Retry HTTP server startup. ### Fixed - Make config command-line options optional. [#208](https://github.com/atomist/automation-client-ts/issues/208) - Git branch regular expression. [#211](https://github.com/atomist/automation-client-ts/issues/211) - Properly shutdown and restart cluster workers. ## [0.6.5](https://github.com/atomist/automation-client-ts/compare/0.6.4...0.6.5) - 2018-01-24 ### Changed - Make seed repository parameters visible to users. ## [0.6.4](https://github.com/atomist/automation-client-ts/compare/0.6.3...0.6.4) - 2018-01-23 ### Changed - Updated k8 schema. ### Fixed - `setChatUserPreference` mutation. ## [0.6.3](https://github.com/atomist/automation-client-ts/compare/0.6.2...0.6.3) - 2018-01-16 ### Added - Allow for GHE. ### Fixed - Some log statements. ## [0.6.2](https://github.com/atomist/automation-client-ts/compare/0.6.1...0.6.2) - 2018-01-15 ### Added - Upload files to Slack. ### Changed - Migrate from `update_only` to `post_mode` when creating Slack messages. - Further decouple GitHub operations from project creation. ## [0.6.1](https://github.com/atomist/automation-client-ts/compare/0.6.0...0.6.1) - 2018-01-12 ### Fixed - Slack message timestamp and TTL. - Connecting via proxy. ## [0.6.0](https://github.com/atomist/automation-client-ts/compare/0.5.2...0.6.0) - 2018-01-11 ### Added - Basic BitBucket support, thanks @kbristow!. - Support for connecting via a proxy. ### Changed - Many changes to make more portable, i.e., runnable on MS Windows. - Trying to get Git information on a non-git project will now return. - Allow GraphQL glob pattern to return no files when generation code. - Update to latest GraphQL data model. ## [0.5.2](https://github.com/atomist/automation-client-ts/compare/0.5.0...0.5.2) - 2017-12-04 ### Added - GitHubUserLogin and AtomistWebhookUrlBase mapped parameter helpers. - add support for configurable command handlers. ### Changed - remove hard dependency to heapdump; this will make `npm install` easier on Windows. - add userId to HandlerContext. - Run all tests without GITHUB_TOKEN. - Reduce tmp directory retention. ### Fixed - keep newlines in commit messages. ## [0.5.0](https://github.com/atomist/automation-client-ts/compare/0.4.0...0.5.0) - 2017-12-07 ### Added - Optionally add Atomist webhook to create GitHub repo. - Generator benchmark tests. - Caching metrics. - afterAction to generate. ### Changed - **Breaking** Removed old class hierarchy for editors, generators. - The `AllFiles` glob pattern was simplified to `**`. - Move cache directory to ~/.atomist/cache. - Generators now cache seed. - Several improvements to reviewer interfaces. - Scan all commands and events directories for command and event. ### Removed - RemoveSeedFiles as it was not generic nor provided much convenience. ### Fixed - Issues with deleting files and directories in an InMemoryProject. - Ensure GitHub sees a token in a clone URL as a token. ## [0.4.0](https://github.com/atomist/automation-client-ts/compare/0.3.5...0.4.0) - 2017-11-28 ### Added - Support for parsing and manipulating JavaScript, JSX and TSX via `TypeScriptFileParser`. - Support for parsing and manipulating JSON via `jsonUtils` functions. - Support for specifying shutdown behavior with `configuration.ws.termination`. ### Changed - **Breaking** `editorHandler` now takes a function to create a `ProjectEditor`. ### Removed - **Breaking** Removed Spring and Java related generators and. - **Breaking** Removed embedded dashboard web ui. ## [0.3.5](https://github.com/atomist/automation-client-ts/compare/0.3.4...0.3.5) - 2017-11-22 ### Changed - Moved `@types/continuation-local-storage` to dependencies since it. - Added more types to default exports in index.ts. ## [0.3.4](https://github.com/atomist/automation-client-ts/compare/0.3.3...0.3.4) - 2017-11-22 ### Added - `isBinary` method on `File` interface. ### Changed - **Breaking** `successfulEdit` function `edited` argument is now required instead of defaulting. - `EditResult.edited` is now optional. An undefined value is valid. - Moved `@types/graphql` to dependencies since its types are exported. - Command parameters now provided as PARAM=VALUE on `exec` command line. ### Fixed - Bug where a `SimpleProjectEditor` that did not return an `EditResult`. - Add missing team ID to BuildableAutomationServer GraphQL endpoint. ## [0.3.3](https://github.com/atomist/automation-client-ts/compare/0.3.2...0.3.3) - 2017-11-20 ### Added - Support for nested parameters via initialized object properties on parameters. ### Changed - `generate` utility function now takes `RepoId` argument before optional params. - Split out tests into test and test-api so non-Atomist developers. - Improve `atomist config` handling of existing config file so it. - Run `config` and `git` commands in same node process. - Added "repo" scope to GitHub personal access token created by config command. - @Parameter() will default to empty options, so you don't have to pass {}. ## [0.3.2](https://github.com/atomist/automation-client-ts/compare/0.3.1...0.3.2) - 2017-11-13 ### Added - Unified `atomist` CLI. ### Changed - Improved TypeScript parsing. ### Deprecated - atomist-cli, atomist-client, atomist-config, and git-info CLI. ### Fixed - Make tests more reliable. ## [0.3.1](https://github.com/atomist/automation-client-ts/compare/0.3.0...0.3.1) - 2017-11-13 ### Added - Reintroduced exports for backwards compatibility to 0.2.7. ## [0.3.0](https://github.com/atomist/automation-client-ts/compare/0.2.8...0.3.0) - 2017-11-13 ### Added - Upgraded tree-path library (more support for abbreviated syntax, union path expression support, additional axis specifiers). - Support for parsing TypeScript, including path expression support. ### Changed - allow `handle` to return `Promise<any>`. - enable graphql client-side caching. ### Fixed - Fixed #86: Preserved empty directories when caching in memory project. Ability to cache a projcect in memory. - Fix #79: Check permissions from seed project. (#83) ## [0.2.8](https://github.com/atomist/automation-client-ts/compare/0.2.5...0.2.7) - 2017-11-07 ## [0.2.7](https://github.com/atomist/automation-client-ts/compare/0.2.5...0.2.8) - 2017-11-07 ## [0.2.5](https://github.com/atomist/automation-client-ts/compare/0.2.4...0.2.5) - 2017-10-26 ### Fixed - Much closer to backward compatible with 0.2.3 project operations than 0.2.4. ## [0.2.4](https://github.com/atomist/automation-client-ts/compare/0.2.3...0.2.4) - 2017-10-26 ### Changed - Project copying no longer blocks. - Update package dependencies and scripts for portability. - Git provider is now pluggable. ### Fixed - Various generator issues. - Handler metadata inheritance. ## [0.2.3](https://github.com/atomist/automation-client-ts/compare/0.2.2...0.2.3) - 2017-10-24 ### Changed - Generator and editor refactoring. - Update command page. ## [0.2.2](https://github.com/atomist/automation-client-ts/compare/0.2.1...0.2.2) - 2017-10-24 ### Added - Administrative endpoints for health, info, etc. ### Changed - Pulled up ProjectOperationCredentials and DirectoryManager. ### Fixed - Create client config in proper directory on win32. [#44](https://github.com/atomist/automation-client-ts/issues/44), ## [0.2.1](https://github.com/atomist/automation-client-ts/compare/0.2.0...0.2.1) - 2017-10-23 ### Added - Allow `CommandHandler` instances to be created from functions. - Allow a class to be passed into a command handler list, as well as. - Add channel mutations. ### Changed - Improved reconnect handling. ### Fixed - RepoId included in InMemory project. [#33](https://github.com/atomist/automation-client-ts/issues/33) - Can continue after failed attempt to load a repo. [#30](https://github.com/atomist/automation-client-ts/issues/30) - Updated docs after removal of RunOrDefer. [#24](https://github.com/atomist/automation-client-ts/issues/24) - Documentation for editors and generators. [#32](https://github.com/atomist/automation-client-ts/issues/32) ## [0.2.0](https://github.com/atomist/automation-client-ts/compare/0.1.50...0.2.0) - 2017-10-18 ### Changed - Make atomist-setup script quieter and more robust. - Align generators with ProjectEditor. ## [0.1.50](https://github.com/atomist/automation-client-ts/compare/0.1.49...0.1.50) - 2017-10-19 ### Added - RepoId to Project. ### Changed - More currying. - Overhauled edit and review models. ### Fixed - Issue with SpringBootSeed. ## [0.1.49](https://github.com/atomist/automation-client-ts/compare/0.1.48...0.1.49) - 2017-10-18 ### Changed - Moved moveFile from AbstractProject to Project. - Exec npm start in atomist-setup script. ## [0.1.48](https://github.com/atomist/automation-client-ts/compare/0.1.47...0.1.48) - 2017-10-18 ### Changed - Spring and Java inference improvements. ## [0.1.47](https://github.com/atomist/automation-client-ts/compare/0.1.46...0.1.47) - 2017-10-18 ### Changed - Update tree-path dependency. ## [0.1.46](https://github.com/atomist/automation-client-ts/compare/0.1.44...0.1.46) - 2017-10-18 ### Added - Scripts to setup and configure Atomist API client. ### Changed - The client will look for config under ~/.atomist/client.config.json. - Handlers can be called via instance or class name in addition to. - Improve error messages. - Various project operation improvements. ## [0.1.44](https://github.com/atomist/automation-client-ts/compare/0.1.43...0.1.44) - 2017-10-16 ### Added - Publish master and PR builds as pre-release versions to Atomist. ### Changed - Updated @atomist/microgrammar to 0.7.0. - Cleaned up dependencies. - Dashboard improvements. ## [0.1.43](https://github.com/atomist/automation-client-ts/compare/0.1.42...0.1.43) - 2017-10-11 ### Added - Mutation support in GraphQL. ### Changed - GraphClient executeFile is now executeQueryFromFile. ### Removed - Tree and path expression support moved to own module. ## [0.1.37](https://github.com/atomist/automation-client-ts/compare/0.1.36...0.1.37) - 2017-10-02 ### Added - File replace and replaceAll. ## [0.1.0](https://github.com/atomist/automation-client-ts/tree/0.1.0) - 2017-09-19 ### Added - Totally revamped command and event handler model. - Added new `@Ingestor` automation type. - Switched to GraphQL for querying data.