bug PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
30 Apr 2023

Pull Request for Issue # .

Summary of Changes

package.json must contain a semver versioning number. This PR updates the build\bump.php script so that the version in the package.json is updated correctly. Currently the version number is static at 4.0.0

also removed the comment about updating the copyright date as we dont do that anymore

Testing Instructions

Code review
or
php build\bump.php -v 9.9.9

Actual result BEFORE applying this Pull Request

contents of package.json

{
  "name": "joomla",
  "version": "4.0.0",
  "description": "Joomla CMS",
  "license": "GPL-2.0-or-later",

Expected result AFTER applying this Pull Request

{
  "name": "joomla",
  "version": "9.9.9",
  "description": "Joomla CMS",
  "license": "GPL-2.0-or-later",

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 30 Apr 2023
Category Repository
avatar brianteeman brianteeman - open - 30 Apr 2023
avatar brianteeman brianteeman - change - 30 Apr 2023
Status New Pending
avatar laoneo
laoneo - comment - 30 Apr 2023

You can do that also without regex https://stackoverflow.com/a/70034831. Not sure if you need to regenerate the lock file afterwards as well.

avatar laoneo
laoneo - comment - 30 Apr 2023

Or load and write the json with the native PHP json functions.

avatar brianteeman
brianteeman - comment - 30 Apr 2023

You can do that also without regex https://stackoverflow.com/a/70034831.

I am aware of that but it makes no sense to do it this way from inside a php script. At the end of the day this is just following the codestyle of all the other actions the file.

avatar laoneo
laoneo - comment - 30 Apr 2023

Makes sense, but json_encode and json_decode would probably be safer to produce valid JSON.

avatar laoneo
laoneo - comment - 5 May 2023

@brianteeman are you going to change the code to use the json functions from PHP? It is much safer then instead of dealing with regex.

avatar brianteeman
brianteeman - comment - 5 May 2023

no i am not going to change it. makes no sense to me when everything else in the file is using regex.

avatar brianteeman brianteeman - change - 23 Jul 2023
Labels Added: bug PR-4.3-dev
avatar brianteeman brianteeman - change - 8 Sep 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-09-08 11:47:34
Closed_By brianteeman
avatar brianteeman brianteeman - close - 8 Sep 2023

Add a Comment

Login with GitHub to post a comment