(all dates use the ISO-8601 format, which is YYYY/MM/DD)
- No changes have been made to the code in this release.
- Updated dependencies so Dependabot would stop yelling at me.
- Fixed link rot in README.md and slightly updated one of the code examples so it reads better.
- No changes have been made to the code in this release.
- Updated dependencies.
- No changes have been made to the code in this release.
- Updated dependencies, which closes Pull #32 in the process.
- Updated copyright year in LICENSE.md
- No changes have been made to the code in this release.
- Updated dependencies, which solves Pull #29 and Pull #30 while also closing Issue #31. Thanks @dvasilen!
- Updated
devcontainer.json
to ensure the development environment is using the latest version of Node and NPM available.
- The
SlackHookOptions
type now extendsTransportStreamOptions
, properly this time. This change is courtesy of Pull #28. Thanks again @DominicRoyStang! - Deprecated v2.3.1 for the above reason. While v2.3.1 should not cause any issues for existing users and use cases, I'd rather not have a potentially buggy version in the wild.
- Updated GitHub Actions to test against Node.js 16 and the latest available version, instead of just Node.js 16.
- The
SlackHookOptions
type now extendsTransportStreamOptions
. This change is courtesy of Pull #26. Thanks @DominicRoyStang!
-
Added an option (
emitAxiosErrors
) to enable or disable emitting errors if Axios throws an error. Previously, if Axios returned an error for any reason, this would emit an error, which if unhandled would be treated as an unhandled exception. This includes potentially transient issues, such as if Slack would return an error for any reason, including API outages or429 Too Many Requests
errors. This option requires the user to explicitly opt into this behavior, and isfalse
by default. This closes Issue #24. Thanks @jbojbo for bringing this to my attention!When I had initially added the code that would do that, I was under the impression this would log the Slack error to Winston itself as an error, but after rereading the relevant documentation I realized this was not the case.
-
Minor change to the
log()
function to make it an async function, which simplifies some minor aspects of unit testing. This should have no impact on using the transport within Winston. -
Updated tests to check the error handling behavior.
-
Added new option to the type definitions.
-
Added a Prettier script and prettierrc.
-
Updated dependencies, and double checked to make sure everything continued to work this time.
- Fixed a bug preventing the ability to filter log messages in the formatter. This change is courtesy of Pull #23, which closes Issue #15 in the process. Thanks @ArturAralin and @jbojbo!
- Updated copyright year in LICENSE. I need to automate this.
- Reverted axios dependency back to
^0.22.0
due to unforseen issues. This closes Issue #21. - Deprecated v2.2.0 and v2.2.1 for the above reason.
- Realized that I hadn't quite proofread the code in 2.2.0 as closely as I should have, and that it worked in a different way than I expected. Updated the code and documentation to reflect that you can override the properties in both the constructor as well as in the formatter to achieve the same result.
- Readded the
channel
,username
,iconEmoji
, andiconUrl
properties to the constructor and typings. It appears that Slack seems to have reversed course from how things worked previously, allowing the use of these properties once again. This change is courtesy of Pull #19. Thanks @janpieterz! - Updated copyright year in LICENSE. It seems I have a very good track record of doing this on time.
- Updated dependencies
- You can now return
false
in the formatter function to prevent the plugin from posting a message to Slack. This functionality is courtesy of Pull #14, which closes Issue #12 in the process. Thanks @iedmrc and @daxadal! - Updated documentation and typings to reflect the above change.
- Removed Yarn as the package manager in favor of using NPM instead.
- Set up Github Actions to simplify the process of updating the package on NPM in the future.
- Updated copyright year in LICENSE. Probably should have done that about 10 months ago... ¯\(ツ)/¯
- Updated dependencies
WARNING: This is a potentially BREAKING CHANGE.
- BREAKING: Removed the
channel
,username
,iconEmoji
, andiconUrl
properties from the constructor and typings. According to Slack, these properties cannot be overridden by webhooks so it makes no sense to include them and potentially confuse users. As per semantic versioning, I am bumping the version to 2.0.0 to prevent existing clients using these features from suddenly breaking unexpectedly. Nothing else about the code has been modified at this time. - Removed checks for the aforementioned properties in the tests.
- Fixed link rot in README.md and added a little more detail to the package instructions.
- Modified package.json to only bundle the files needed to use the package. Sorry about accidentally bloating the package size to over 2MB because I left the Yarn executable in...
- Updated copyright year in LICENSE
- Updated dependencies
- Updated dependencies
- Updated gitignore to latest Node version
- Fixed error in README.md (as per Pull #11). Thanks @zachweinberg!
- Changed all tabs in README.md to spaces for a more unified presentation
- Changed
test
script to not point directly at the Jest executable anymore - Added Yarn 2 files
- Updated yarn.lock so that GitHub would stop yelling at me about lodash being out of date
- Updated yarn.lock so that GitHub would stop yelling at me about acorn being out of date
- Updated dependencies
- Fixed TypeScript declaration file (as per Pull #9). Thanks @dmitryyacenko and @xr!
- Fixed TypeScript declaration file (as per Issue #7). Thanks @FredericLatour!
- Replaced request with axios now that request has been deprecated.
- Changed tests to use Jest
- Added proxy server support (as per Pull #6). Thanks @gumkins!
- Added TypeScript declaration file
- Callback now triggers only after request completes (as per Pull #4). Thanks @iudelsmann!
- Updated dependencies
WARNING - This is a BREAKING CHANGE.
- Reworked the logger so it uses request instead of the much heavier Slack API.
- Added support for the new Layout Blocks formatting option that Slack recently introduced.
- Implemented formatter suggestion from Issue #2 to tidy up the logger calls.
- Removed the old method of attaching attachments, also as a suggestion from Issue #2.