Skip to content

Commit

Permalink
Update balena-request to 14.0.1 that no longer requires a zlib polyfi…
Browse files Browse the repository at this point in the history
…ll on browser builds

Update balena-request from 14.0.0 to 14.0.1

Depends-on: balena-io-modules/balena-request#189
Change-type: patch
  • Loading branch information
thgreasi committed Dec 5, 2024
1 parent 2e99ea2 commit 9e2d8cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ gulp.task('pack-browser', function () {
.exclude('path')
.exclude('balena-settings-client')
.exclude('node-localstorage')
.exclude('formdata-node')
.exclude('form-data-encoder')
.bundle();

return bundle
Expand Down
6 changes: 4 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ module.exports = function (config) {
querystring: require.resolve('querystring-es3'),
// required by: balena-request
stream: require.resolve('stream-browserify'),
// required by: balena-request
zlib: require.resolve('browserify-zlib'),
// required by tmp that we use in tests, but not when running on a browser
vm: false,
// required by mockttp -> http-encoding
zlib: false,
};
karmaConfig.webpack.plugins = [
new getKarmaConfig.webpack.ProvidePlugin({
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"@types/sinon": "^17.0.3",
"balena-config-karma": "^4.0.0",
"browserify": "^17.0.0",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
"catch-uncommitted": "^2.0.0",
"chai": "^4.3.6",
Expand Down Expand Up @@ -125,7 +124,7 @@
"balena-auth": "^6.0.1",
"balena-errors": "^4.9.0",
"balena-hup-action-utils": "~6.1.0",
"balena-register-device": "^9.0.3",
"balena-register-device": "^9.0.4",
"balena-request": "^14.0.0",
"balena-semver": "^2.3.0",
"balena-settings-client": "^5.0.0",
Expand Down

0 comments on commit 9e2d8cb

Please sign in to comment.