This document lists the changes of all recent versions since 2.0.0
.
- Allow
[email protected]
.
- Fixed issue in
npm
package provider: #191
- Dropped EOLed Puppet 3.x
- Don't install dev dependencies (
ruby
) anymore withbuild_deps => true
. It's only needed on the Puppet Master and shouldn't be deployed onto each node.
- (#185) Allow to specify a custom source
for NodeJS to override
nodejs.org/dist
. - Don't depend on
puppetlabs-gcc
anymore. It wasn't updated by PuppetLabs since 2015 and according to its metadata it doesn't support recent Puppet version which breaks thebeaker
build.
- Deprecated
::nodejs::npm
. The feature was always out of scope and introduced several hacks to support several edge-cases. Instead it's recommended to write a custom module suited for your application when deploying dependencies into a given directory.
- (#184) Added support for Puppet 6.
- (#183) Added support for
install_options
when installing a package using thenpm
provider.
- (#181) Instaling
rubygems
(whenbuild_deps => true
) was broken on Ubuntu 14.04. See patch b59c504 for further reference.
- Added support for Puppet 5.
- Install
rubygems
when allowingpuppet-nodejs
to build packages.
- Dropped support for Node.js versions until
v0.12.0
. - Dropped support for all Puppet versions below
v3.4
. - Dropped support for all ruby versions below
v2.1
.
- Added
puppetlabs-gcc
for package handling of the compiler (and removed custom implementation). - Killed the
python_package
option (not needed anymore). nodejs::install
has been replaced by an internal API. To use multiple instances, use theinstances
andinstances_to_remove
option of thenodejs
class (see the docs for more details).- (willdurand/puppet-composer#44) Introduced a
new
build_deps
parameter which makes the entire package setup optional.
The nodejs::npm
resource has been refactored in order to keep the logic inside maintainable.
The following breaking changes were made:
- Removed
install_opt
andremove_opt
and replaced it with a singleoptions
parameter. - Renamed
exec_as_user
toexec_user
as it's describes the intent of the parameter in a better way. - Dropped automatic generation of a home directory for the
npm
calls and added ahome_dir
parameter which does the job. - Removed the ability to write
dir:pkg
as resource title. - The
pkg_name
has now$title
as default parameter.
The whole version detection logic was quite outdated and needed a refactoring:
- Removed the
stable
flag for versions. The behavior oflatest
was equal. - Introduced the
lts
flag to fetch the latest LTS release of Node.js. - generic versions:
7.x
to fetch the latest release of the Node.js v7 branch.7.0
to fetch the latest7.0.x
release.
- Removed the
::nodejs_latest_version
and::nodejs_stable_version
fact and replaced them with a puppet function to avoid evaluations on each node. - Removed
with_npm
parameter (only used for Node.js 0.6 and below). - (#94) Proper symlinks for versioned NPM executables.
- Added
cpu_cores
option to speedup the compilation process. - Changed all downloads from
http
tohttps
. - Remove installation of
git
package. - Added support for ARM architecture (
armv6l
andarmv7l
). - Added
download_timeout
parameter to simplify configuration of package download timeouts. - Dropped
profile.d
script to patch NodeJS paths. Target directory will be set withnodejs::$target_dir
which should be in$PATH
. See bcfdda3341aa8b0d885b40e9a6ab7f90859f9f3e and #177 for further reference.