Update sourceApiVersion of sfdx-project.json to 53.0

Issue #2008 resolved
Peter Lin created an issue

Update sourceApiVersion of sfdx-project.json to 53.0

Environments:

Windows 10 Version 1909 (OS Build 18363.1854)

WebStorm 2021.2.3
Build #WS-212.5457.55, built on October 18, 2021
Runtime version: 11.0.12+7-b1504.40 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
Memory: 2048M
Cores: 8
Non-Bundled Plugins: com.illuminatedcloud2.intellij (2.1.9.5)

sfdx-cli/7.125.0 win32-x64 node-v14.18.1
@salesforce/cli/1.2.0 win32-x64 node-v14.18.1

Steps to reproduce:

  1. File >> New >> Project…
  2. Illuminated Cloud SFDX >> Project Template: Illuminated Cloud >> Create

Outcome: sfdx-project.json: "sourceApiVersion": "52.0"

\manifest\package.xml <version>52.0</version>

Proposing change: “53.0”

SFDX CLI: sfdx force:project:create -n testversion -t empty -x

Outcome: the same as IC2

sfdx-project.json: "sourceApiVersion": "52.0"

\manifest\package.xml <version>52.0</version>

Comments (6)

  1. Scott Wells repo owner

    Peter, Illuminated Cloud does not generate the files when a project is created by the CLI. It's actually the CLI that does so, e.g.:

    $ sfdx force:project:create -d . -n issue2008
    target dir = C:\Users\Scott\dev\projects\IlluminatedCloudTestProjects
       create issue2008\config\project-scratch-def.json
       create issue2008\README.md
       create issue2008\sfdx-project.json
       create issue2008\.husky\pre-commit
       create issue2008\.vscode\extensions.json
       create issue2008\.vscode\launch.json
       create issue2008\.vscode\settings.json
       create issue2008\force-app\main\default\lwc\.eslintrc.json
       create issue2008\force-app\main\default\aura\.eslintrc.json
       create issue2008\scripts\soql\account.soql
       create issue2008\scripts\apex\hello.apex
       create issue2008\.eslintignore
       create issue2008\.forceignore
       create issue2008\.gitignore
       create issue2008\.prettierignore
       create issue2008\.prettierrc
       create issue2008\jest.config.js
       create issue2008\package.json
    
    $ cd issue2008/
    $ cat sfdx-project.json
    {
      "packageDirectories": [
        {
          "path": "force-app",
          "default": true
        }
      ],
      "name": "issue2008",
      "namespace": "",
      "sfdcLoginUrl": "https://login.salesforce.com",
      "sourceApiVersion": "52.0"
    }
    

    Notice that completely independent of IC, the value for sourceApiVersion is currently 52.0. And to be clear, that's based on today's CLI update.

    It might be better to log this with in the CLI public issue tracker since that's really where the fix should occur. If it turns out they're not going to fix it, let me know and I can certainly have IC post-process the generated file to update that property to use the latest platform API version.

  2. Scott Wells repo owner

    Resolving since this should be fixed in the CLI, but if it doesn't look like the CLI team will provide a fix, feel free to reopen with that information, and specifically please link to the CLI issue where that decision was made as well.

  3. Peter Lin reporter

    @Scott Wells Thank you for your “ Project Template: Illuminated Cloud“! I no longer need to copy my .gitignore from my other projects when I create a new project. 🙂

  4. Scott Wells repo owner

    You bet! Yeah, I had the same issue. If I created a project with the "Empty" template, it was missing key files. If I created it with the "Standard" template, I ended up having to remove things that aren't appropriate/useful for an IC project. Glad you're also finding it useful!

  5. Log in to comment