diff --git a/packages/webpack/README.md b/packages/webpack/README.md index ef90269d9..de655a5f2 100644 --- a/packages/webpack/README.md +++ b/packages/webpack/README.md @@ -39,7 +39,7 @@ These plugin parameters correspond to the Honeybadger [Source Map Upload API](ht sourcemap server you would like to upload your sourcemaps to instead of honeybadger. -
revision (optional — default: "master")
+
revision (optional — default: "main")
The deploy revision (i.e. commit hash) that your source map applies to. This could also be a code version. For best results, set it to something unique every time your code changes. See the Honeybadger docs for examples.
silent (optional — default: "null/false")
@@ -85,7 +85,7 @@ const webpackConfig = { plugins: [new HoneybadgerSourceMapPlugin({ apiKey: 'abc123', assetsUrl: ASSETS_URL, - revision: 'master', + revision: 'main', // You can also enable deployment notifications: deploy: { environment: process.env.NODE_ENV, @@ -103,7 +103,7 @@ const HoneybadgerSourceMapPlugin = require('@honeybadger-io/webpack') // Assumes Heroku / 12-factor application style ENV variables // named GIT_COMMIT, HONEYBADGER_API_KEY, ASSETS_URL -const revision = process.env.GIT_COMMIT || 'master' +const revision = process.env.GIT_COMMIT || 'main' environment.plugins.append( 'HoneybadgerSourceMap', diff --git a/packages/webpack/src/HoneybadgerSourceMapPlugin.js b/packages/webpack/src/HoneybadgerSourceMapPlugin.js index bec85ad3e..63e1b548a 100644 --- a/packages/webpack/src/HoneybadgerSourceMapPlugin.js +++ b/packages/webpack/src/HoneybadgerSourceMapPlugin.js @@ -22,7 +22,7 @@ class HoneybadgerSourceMapPlugin { apiKey, assetsUrl, endpoint = ENDPOINT, - revision = 'master', + revision = 'main', silent = false, ignoreErrors = false, retries = 3, diff --git a/packages/webpack/test/HoneybadgerSourceMapPlugin.test.js b/packages/webpack/test/HoneybadgerSourceMapPlugin.test.js index ef3dcdee5..6459c188b 100644 --- a/packages/webpack/test/HoneybadgerSourceMapPlugin.test.js +++ b/packages/webpack/test/HoneybadgerSourceMapPlugin.test.js @@ -52,8 +52,8 @@ describe(PLUGIN_NAME, function () { expect(this.plugin).to.include({ silent: false }) }) - it('should default revision to "master"', function () { - expect(this.plugin).to.include({ revision: 'master' }) + it('should default revision to "main"', function () { + expect(this.plugin).to.include({ revision: 'main' }) }) it('should default retries to 3', function () {