Skip to content

Comments

[4.3] package.json version bump#40513

Closed
brianteeman wants to merge 2 commits intojoomla:4.3-devfrom
brianteeman:patch-18
Closed

[4.3] package.json version bump#40513
brianteeman wants to merge 2 commits intojoomla:4.3-devfrom
brianteeman:patch-18

Conversation

@brianteeman
Copy link
Contributor

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

@laoneo
Copy link
Member

laoneo commented Apr 30, 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.

@laoneo
Copy link
Member

laoneo commented Apr 30, 2023

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

@brianteeman
Copy link
Contributor Author

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.

@laoneo
Copy link
Member

laoneo commented Apr 30, 2023

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

@laoneo
Copy link
Member

laoneo commented May 5, 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.

@brianteeman
Copy link
Contributor Author

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

@HLeithner HLeithner added the bug label Jun 3, 2023
@brianteeman brianteeman closed this Sep 8, 2023
@brianteeman brianteeman deleted the patch-18 branch September 8, 2023 11:47
@laoneo laoneo mentioned this pull request Sep 8, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants