Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Use first supported node version as default
Browse files Browse the repository at this point in the history
just to avoind issues with not supported default in the future
  • Loading branch information
Dawid Jankowiak committed Sep 2, 2020
1 parent c6a79f1 commit 0aed608
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.3.1 (September 2, 2020)

### Bug fix

* Fix default version of node passed `createBundle` function

## 1.3.0 (September 1, 2020)

### Changes
Expand Down
2 changes: 1 addition & 1 deletion lib/auth0Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const dependencies = { rollup, babelTransform, BabelPluginExportToFunction, buil

const nodeVersionsSupportedByAuth0 = [ 8, 12 ];

const defaultNodeVersion = 4;
const defaultNodeVersion = nodeVersionsSupportedByAuth0[0];

module.exports = function createBundler({ nodeVersion = defaultNodeVersion } = {}) {
if (!nodeVersionsSupportedByAuth0.includes(nodeVersion)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth0-bundler",
"version": "1.3.0",
"version": "1.3.1",
"description": "Bundle rules, scripts and hooks to deploy them to Auth0.",
"engines": {
"node": ">=8.0.0"
Expand Down

0 comments on commit 0aed608

Please sign in to comment.