Skip to content

Latest commit

 

History

History
285 lines (217 loc) · 14.3 KB

CHANGELOG.md

File metadata and controls

285 lines (217 loc) · 14.3 KB

Changelog

Version 4.x (unreleased)

Version 4.0.0 (2023-04-23)

  • Drop support for versions lower than Gradle 7.5.1
  • Rename package.json extension to packageJson #232
  • Support configuration-cache on Gradle 8.1 #271

Version 3.6.0 (2023-04-20)

  • Allow task rules to be disabled #116
  • Add fastNpmInstall option to only track lock-files #157

Version 3.5.1 (2022-12-26)

  • Fix configuration cache support in pnpm

Version 3.5.0 (2022-10-18)

  • Add ExecResult to tasks #237
  • Don't run npmInstall if package.json is missing #174

Version 3.4.0 (2022-06-26)

Version 3.3.0 (2022-05-14)

  • Upgrade default Node to 16.14.2 and npm to 8.5.0 #226
  • Parse package.json into extension #232

Version 3.2.1 (2022-02-14)

  • Backwards compatibility fix for those using VariantComputer #213
  • Prevent M1 Macs from attempting to download a non-existent distribution #214

Version 3.2.0 (2022-02-07)

Version 3.1.1 (2021-09-12)

  • Add support for Linux on Z system (s390x) #193

Version 3.1.0 (2021-05-07)

  • Add support for Linux Power PC #166 (thanks akatona84 for the pull request)
  • Internal test suite now running against Gradle 7
  • Adds yarn.lock as an input to NpmInstallTask #155

Version 3.0.1 (2021-02-09)

  • Fixes a bug with the task rule preventing it from being configured #145

Version 3.0 (2021-02-06)

  • Rewrite the code to Kotlin (issue #17) (thanks mikejhill for the pull request)
  • Improve the Kotlin DSL support (see this Kotlin DSL example that shows how to use this plugin version with Kotlin)
  • Upgrade default Node.js version to 14.15.4 (bundled with npm 6.14.10), the latest LTS version
  • Add support of lazy configuration (issue #39)
  • Add support of Gradle Configuration Cache (introduced in Gradle 6.8) (issue #111)
  • Fix some remaining input/output declaration issues (issue #34)
  • Gradle 5.6.4+ support (instead of Gradle 5.0.0+ before)
  • Node.js 10+ support (issue #100)
  • Improved automatic proxy configuration (issue #113), use http:// for both HTTP_PROXY and HTTPS_PROXY
  • Improved proxy configuration (PR #135)
  • npm 7+ support (issue #123)
  • Improved ARM support (issue #130)
  • Gradle configuration cache support (issue #111)
  • Add RepositoryContentDescriptor to IvyRepository #136

Breaking changes

This version breaks backward compatibility. It should not be visible for most Groovy DSL users since the Groovy DSL handles transparently most of these changes. Here is what changed:

  • All the packages were renamed (they were inherited from the original forked project):
    • com.moowork.gradle.node (and all children) renamed to com.github.gradle.node
    • com.moowork.gradle.node.npm renamed to com.github.gradle.node.npm.task
    • com.moowork.gradle.node.yarn renamed to com.github.gradle.node.yarn.task
  • All the configuration properties (the node extension and all tasks) are now some lazy properties as recommended by Gradle. This makes this plugin fully compatible with lazy configuration (tasks will be configured only if they need to run and configuration properties are read only at runtime if needed and not at configuration time).
  • Thanks to the Kotlin rewrite, some properties now have a stronger typing.
  • nodeModulesDir option was renamed to nodeProjectDir (name more explicit and less confusing) (issue #99). The former name still works but is deprecated.
  • Change the syntax to configure nodeModulesOutputFilter on npmInstall and yarn tasks. It also affects Groovy DSL users. Use now nodeModulesOutputFilter { ... } instead of nodeModulesOutputFilter = { ... }.

Version 2.2.4 (2020-05-18)

  • Fix a duplicated node_modules output declaration in the yarn task. This fix speeds up this task.

Version 2.2.3 (2020-02-28)

The previous release (2.2.2) was released by error from the development branch which contains an entire Kotlin rewrite of the plugin code and many backward compatibility breaks. This new version replaces the previous one and adds one fix.

  • Make npm and npx symlinks relative. PR #68
  • NpmSetupTask does not work when using separate http and https proxy settings #69

Version 2.2.2 (2020-02-21)

  • Make npm and npx symlinks relative. PR #68

Version 2.2.1 (2020-01-31)

  • Only use fileTree for npmInstall output if a filter is configured. Hotfix for #63

Version 2.2.0 (2019-10-13)

  • Improve the inputs declarations of tasks:
    • NodeTask's script now has relative path sensitivity (issue #41)
    • No longer consider the working dir as an input for all tasks (issue #40)
    • Explicitly exclude the execOverrides option of tasks from the inputs (issue #40)
    • Add the ability to remove some files of the node_modules directory from the NpmInstallTask and YarnInstallTask outputs from the task output ; this is necessary when some tasks change some files of the node_modules directory ; the NpmInstallTask and YarnInstallTask are never up-to-date in this case (issue #38)
  • Deprecate the usage of NodeTask with a script which is a directory ; Node.js supports that and looks for an index.js file in the directory but this is not compliant with a correct input/output declaration (issue #41)
  • No longer use Project.afterEvaluate as a first step to support lazy tasks configuration (issue #39)
  • Gradle 6 compatibility (all integration tests run also on Gradle 6.0-rc-2)
  • Improve the integration tests coverage

Version 2.1.1 (2019-09-28)

  • Fix an issue in NodeTask, NpmTask, NpxTask and YarnTask that caused the up-to-date checking to be too much sensitive regarding the environment: any change of an environment variable caused the task to be considered as out-of-date
  • Improve the inputs declarations of the YarnTask

Version 2.1.0 (2019-09-19)

  • Adds NpxTask for making use of https://www.npmjs.com/package/npx PR #32
  • Improved up-to-date checks PR #32
  • Support ARM even if the JDK reports aarch64 #33
  • Setting distBaseUrl to null disables repository adding PR #25

Version 2.0.0 (2019-07-29)

  • Only support Gradle 5.x officially.
  • Drop support for grunt/gulp plugins.

Version 1.5.1 (2019-06-19)

  • Fix inputs/outputs for NpmInstallTask/YarnInstallTask.

Version 1.5.0 (2019-06-19)

  • Backport from srs: Added gradle build cache support for npm install (bjornmagnusson)

Version 1.4.0 (2019-05-20)

  • Adds npmInstallCommand for overriding NpmInstallTasks behaviour.

Version 1.3.0 (2018-12-04)

  • Relocated to com.github.node-gradle.(node|grunt|gulp)
  • Conditionally use metadataSources on gradle >= 4.5 (#1)

Version 1.2.0 (2017-06-14)

  • Support using Gradle Build Cache with Yarn tasks (#205) (mark-vieira)
  • Bumped Gradle wrapper version to 3.5
  • New args can be added for npmSetup and yarnSetup (#226)
  • Uses --no-save for npmSetup and yarnSetup (#222)
  • Added execOverrides and ignoreExitValue on npmSetupTask (#196)
  • Added gruntFile in grunt extension to use different file (#189)
  • npm_* tasks using nodeModulesDir (##136) (janario)

Version 1.1.1 (2017-01-16)

  • Plugin publishing problems (#188)

Version 1.1.0 (2017-01-13)

  • Override environment instead of setting it (#176) (s0x)
  • Fix typo in resolveSingle (#166) (s0x)
  • Add support for node options (#141, #174) (whboyd)
  • Fix symlink problem using NPM (#164, #165, #181) (s0x)
  • Set PATH variable for node, npm and yarn (#134, #146, #149, #164, #179) (s0x)

Version 1.0.1 (2016-12-04)

  • Publish directly to plugins.gradle.org instead of bintray (#172)
  • Fixed problem with resolving Grunt and Gulp plugins (#170)

Version 1.0.0 (2016-12-02)

  • Move npm and yarn classes into separate package (#158)
  • Move grunt plugin code to this plugin (#159)
  • Move gulp plugin code to this plugin (#160)
  • Use 6.9.1 as default node version (#163)
  • Fix missing property exception when using plugin in conjunction with Node 6.x.x on Windows (#167) (mark-vieira)
  • Switch over to use semantic versioning (#169)

Version 0.14 (2016-11-29)

  • Bumped gradle wrapper version to 3.2.1
  • Use gradle-testkit instead of nebula (#153)
  • Update to use Windows zip dists when available (#142) (datallah)
  • Added support for Yarn (#145, #151) (kaitoy)

Version 0.13 (2016-06-27)

  • Bumped gradle wrapper version to 2.14
  • Implement ARM compatibility (madmas)
  • Allow node modules to be used when calling npm_run (jmcampanini)
  • Updated plugin versions and test versions
  • Node.workingDir set to nodeModulesDir (fixes #107)
  • Creates nodeModulesDir if it does not exist (fixes #108)
  • Use single repo for node download (fixes #120)

Version 0.12 (2016-03-10)

  • Updated wrapper to use Gradle 2.11
  • Refactored windows-specific logic for npm (peol)
  • Use temporary repository for resolving node dependencies
  • Using 4.4.0 (latest LTS) as default node version
  • Changed default workDir location to be local to project directory

Version 0.11 (2015-09-26)

  • Handle 4+ nodejs releases on windows (dvaske)
  • Add npmCommand parameter to the node extension (janrotter)
  • Set executable flag on node in SetupTask
  • Upgraded wrapper to use Gradle 2.7
  • Update node distribution base url to use https (AvihayTsayeg)
  • Added more tests (unit, integration and functional tests)
  • NodeTask environment is now correctly propagated to the runner

Version 0.10 (2015-05-19)

  • Fixed problem with spaces in workDir
  • Add configuration for node_modules location (nmalaguti)
  • Solaris support (halfninja)
  • Upgraded wrapper to use Gradle 2.4

Version 0.9 (2015-02-28)

  • Updated some plugin references
  • Fixed some tests on Windows (abelsromero)
  • Fixed issue for windows environments, not containing "PATH" but "Path" (tspaeth)
  • Allow 64 bit windows to use the x64 node.exe (ekaufman)
  • Renamed "ext" property on SetupTask so that it's not causing any conflicts
  • Added detection for FreeBSD as a Linux variant
  • Compiling using Java 1.6 compatiblity (stianl)

Version 0.8 (2014-11-19)

  • Publish snapshots to jcenter (dougborg)
  • Add node to execution path for NodeExec (dougborg)
  • Use 'com.moowork.node' id instead of 'node
  • Upgraded wrapper to use Gradle 2.2

Version 0.7 (2014-11-03)

  • Allow local npm to override bundled npm (dougborg)
  • Allow for configuring npmVersion (dougborg)
  • Upgrade to Gradle 2.1

Version 0.6 (2014-07-10)

  • Upgrade to Gradle 2.0
  • Using 'com.moowork.node' as plugin id, but 'node' still works for another version
  • Possible to read execResult for npm and node tasks (johnrengelman)

Version 0.5 (2014-03-29)

  • Upgraded to use Node version 0.10.22 (tkruse)
  • Provide gradle rule to run any NPM commands (tkruse)

Version 0.4 (2014-03-07)

  • Possible to ignoreExitValue (konrad-garus)
  • Added support for exec taks overrides (delegates down to Gradle exec task) (konrad-garus)
  • Now adding npmInstall outside afterEvaluate to allow better dependsOn usage
  • Reworked SetupTask so that it is using task input/output change tracking
  • Updated gradle wrapper to version 1.11

Version 0.3 (2014-01-10)

  • Initial usable version