User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This pull request (PR) moves the NPM dependency dotenv
from the non-development dependencies to the development dependencies and updates it from version 16.6.1 to version 17.2.1.
Their change log doesn't show any b/c breaks except of the change of the quiet
configuration parameter's default value from true
to false
.
This can be mitigated by using config({ quiet: true })
, see here: https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md#1661-2025-06-27
The core uses dotenv
in the build/build-modules-js/javascript/build-com_media-js.mjs
script. The code is changed there as described above.
Besides that, dotenv
is not used anywhere else in the core, and it is not shipped with installation or update packages.
Therefore it can be moved to the development dependencies. It was a mistake that it was in the non-development dependencies.
Pre-conditions: It needs a development environment, i.e. a git clone, composer and npm.
composer install
if you haven't done this before.npm ci
.media/com_media/js/media-manager.js
and media/com_media/js/media-manager.min.js
at a safe place outside of the media folder for later comparison, e.g. in folder tmp/media-js-without-pr-no-dev
.npm run build:com_media:dev
.media/com_media/js/media-manager.js
and media/com_media/js/media-manager.min.js
at a safe place outside of the media folder for later comparison, e.g. in folder tmp/media-js-without-pr-dev
.tmp/media-js-with-pr-no-dev
in step 3 and tmp/media-js-with-pr-dev
in step 5.The media manager js files can be built for production environment (= default) or for development environment.
The files for development environment contain additional debug functionality, and the .min.js
file is not minified in development environment.
Same as without the PR.
The unminified and minified js files created with this PR applied are the same as without this PR.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org: To be done.
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository NPM Change |
Labels |
Added:
NPM Resource Changed
PR-6.0-dev
|
Title |
|
I can’t right now (in the middle of the sea) but worth mentioning that the package might not be required anymore https://nodejs.org/en/learn/command-line/how-to-read-environment-variables-from-nodejs
I can’t right now (in the middle of the sea) but worth mentioning that the package might not be required anymore https://nodejs.org/en/learn/command-line/how-to-read-environment-variables-from-nodejs
@dgrammatiko Not sure if we can do that in J6 or if it would be something for 7 as the dependency is not a dev dependency only, and so it might theoretically be used by extension devs. I have no idea if our b/c policy covers that. To play safe we could use this PR here for the upcoming beta 1 and see what else can be done with another PR.
It’s a dev dependency!
It’s a dev dependency!
@dgrammatiko Not according to our package.json:
It’s wrong that it’s in the dependencies, we don’t ship any of it’s code…
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-08-11 19:24:01 |
Closed_By | ⇒ | richard67 | |
Labels |
Added:
Documentation Required
|
I see. Will close this one and maybe find the time to make a PR to move or remove it if nobody is faster.
no need to close it you can just move the line to the dev section
no need to close it you can just move the line to the dev section
@brianteeman Well, I might reopen it. I just don't have the time now to make that change and test it myself if it works, so I thought I close so people not waste time with testing. Changing to draft would have been an alternative.
Re-opening but will change to draft.
Status | Closed | ⇒ | New |
Closed_Date | 2025-08-11 19:24:01 | ⇒ | |
Closed_By | richard67 | ⇒ |
Status | New | ⇒ | Pending |
Title |
|
Labels |
Removed:
Documentation Required
|
Title |
|
Ok, I've made the change, PR description is updated, testing instructions don't change. Ready for testing.
I have tested this item ✅ successfully on b745962
@dgrammatiko I would be happy if you could find the time to test this PR.