adobe / aem-project-archetype

Maven template to create best-practice websites on AEM.
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html
Apache License 2.0
547 stars 426 forks source link

New "react" project does not use latest AEM React Core Components (v2.0.1) and friends #969

Open davidjgonzalez opened 2 years ago

davidjgonzalez commented 2 years ago

Expected Behaviour

When generating a project using:

mvn -B archetype:generate \
 -D archetypeGroupId=com.adobe.aem \
 -D archetypeArtifactId=aem-project-archetype \
 -D archetypeVersion=37 \
 -D appTitle="WKND SPA React" \
 -D appId="wknd-spa-react" \
 -D artifactId="aem-guides-wknd-spa.react" \
 -D groupId="com.adobe.aem.guides.wkndspa.react" \
 -D frontendModule="react" \
 -D aemVersion="cloud"

The ui.frontend/src/package.json should automatically be set to use the latest AEM SPA-related npm modules - for example:

"@adobe/aem-react-editable-components": "^2.0.1",
"@adobe/aem-spa-component-mapping": "^1.1.1",
"@adobe/aem-spa-page-model-manager": "^1.4.4",

And any other updated dependencies required to use these (ex. Node build version, etc.) and any required updates to the sample code generated by the archetype to be compatible w/ the new versions of the modules.

Actual Behavior

The actual behavior is the Adobe' npm dependencies are old (aem-react-editable-components is on 1.1.6 for example).

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

kevinolivar commented 1 year ago

May be a better / safer practice doing that manually using npm outdated or npx npm-check-updates -u. Checking for breaking changes and backwards compatibility etc...

Maciejju commented 1 year ago

Any updates on that?