From 6f34efbee5fe588c95fada86af5ae233205e59dd Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Wed, 27 Aug 2025 10:51:03 -0400 Subject: [PATCH 01/15] fix: 258-patch dependencies (#493) --- .github/workflows/create-github-release.yml | 1 + .github/workflows/onRelease.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/validate-pr.yml | 2 +- package.json | 16 +- yarn.lock | 304 ++++++++++---------- 6 files changed, 166 insertions(+), 161 deletions(-) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index 21b416cd..633279df 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -8,6 +8,7 @@ on: - 252-patch - 254-patch - 256-patch + - 258-patch tags-ignore: - '*' workflow_dispatch: diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index 73d510e9..3bc44ace 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -48,7 +48,7 @@ jobs: #ctc: true sign: true # At CLCO, the new patch branch's version will be released as 'prerelease'. After R2b, delete the logic below for 'latest' and update 'prerelease' candidate to 'latest' - tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '2' && 'latest') || (needs.getMajorVersion.outputs.major == '3' && 'prerelease') ||'next' }} + tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '3' && 'latest') || (needs.getMajorVersion.outputs.major == '4' && 'prerelease') || 'next' }} githubTag: ${{ github.event.release.tag_name || inputs.tag }} secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 56bb1745..a9845a48 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: tests on: push: - branches-ignore: [main, 252-patch, 254-patch, 256-patch] + branches-ignore: [main, 252-patch, 254-patch, 256-patch, 258-patch] workflow_dispatch: jobs: diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index 4fcb617b..3cbeb6b1 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -4,7 +4,7 @@ on: pull_request: types: [opened, reopened, edited] # only applies to PRs that want to merge to main - branches: [main, 252-patch, 254-patch] + branches: [main, 252-patch, 254-patch, 256-patch, 258-patch] jobs: pr-validation: diff --git a/package.json b/package.json index c162b21f..88500641 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "dependencies": { "@inquirer/prompts": "^5.3.8", "@inquirer/select": "^2.4.7", - "@lwc/lwc-dev-server": "~13.2.2", - "@lwc/sfdc-lwc-compiler": "~13.2.2", + "@lwc/lwc-dev-server": "~13.1.2", + "@lwc/sfdc-lwc-compiler": "~13.1.2", "@lwrjs/api": "0.18.3", "@oclif/core": "^4.5.0", "@salesforce/core": "^8.21.2", @@ -18,7 +18,7 @@ "axios": "^1.11.0", "glob": "^10.4.5", "lightning-base-components": "1.27.2-alpha", - "lwc": "~8.21.2", + "lwc": "~8.20.4", "node-fetch": "^3.3.2", "open": "^10.2.0", "xml2js": "^0.6.2" @@ -237,8 +237,8 @@ "The 'versionToTagMappings' section defines the mapping between released tags for our CLI plugin and the org version that each tag supports." ], "target": { - "versionNumber": "66.0", - "matchingDevServerVersion": "~13.0.27" + "versionNumber": "65.0", + "matchingDevServerVersion": "~13.1.2" }, "versionToTagMappings": [ { @@ -247,10 +247,14 @@ }, { "versionNumber": "63.0", - "tagName": "latest" + "tagName": "v2" }, { "versionNumber": "64.0", + "tagName": "latest" + }, + { + "versionNumber": "65.0", "tagName": "prerelease" }, { diff --git a/yarn.lock b/yarn.lock index e3540d23..96e54140 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2167,25 +2167,25 @@ dependencies: "@locker/shared" "0.24.6" -"@lwc/aria-reflection@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/aria-reflection/-/aria-reflection-8.21.2.tgz#ee306b97101ab3bad289c5cdd0a7621a977a6805" - integrity sha512-WJWcDi6w0gl7uBhy4lR8R3GLUTs5S2rGK9edHOruw6Y1Bh6jcYVkPX9TAd9hf67FsWdB/ztb8xpxOTOpVhjQ9g== +"@lwc/aria-reflection@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/aria-reflection/-/aria-reflection-8.20.4.tgz#a49d7efe10415d61d368144d3cf5feb3213e1ba9" + integrity sha512-UdJzCXHPfc0hqD/en2cDujOkCwxXUqAM0KJ4N8wzhYAadvOFqqwfFWCs2f5pXcybZb0+ZK7cWLpg7Cxu3lkyZQ== -"@lwc/babel-plugin-component@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/babel-plugin-component/-/babel-plugin-component-8.21.2.tgz#95e14c76a605a00037a55c7a971dd791681e330e" - integrity sha512-k1BnbDgeVwpJ9+3KA49aqUgQ9fHG1IxVsrqmWLAx9EaNE1nn3Zz0z3ps+GyNp+0caCDancdhJBRpK8QsbKcgHQ== +"@lwc/babel-plugin-component@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/babel-plugin-component/-/babel-plugin-component-8.20.4.tgz#04a08c0ab4696ef688c4b15fbbcc1dd6a47decef" + integrity sha512-6ejV/IakkuSqAEXPR7SMNgpnC+AOC+zzovycqpkugZy6ahYP6HEmOtzrotNERumSSWxrfM+slsDWMl7zA9F7sA== dependencies: "@babel/helper-module-imports" "7.27.1" - "@lwc/errors" "8.21.2" - "@lwc/shared" "8.21.2" + "@lwc/errors" "8.20.4" + "@lwc/shared" "8.20.4" line-column "~1.0.2" -"@lwc/compiler@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/compiler/-/compiler-8.21.2.tgz#60afbf67658589428ee571a2209bf463371f7682" - integrity sha512-KSuzPQq6jSD8jsvGhmHVYWvQ693PO0+GNFi0HbNjajEGNJhKT+b7kQW640mkAVVWg1P8hUDoiJhc0yClZhkqwQ== +"@lwc/compiler@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/compiler/-/compiler-8.20.4.tgz#1970e12996c90778cead4f3ac0c8ff83670ef67e" + integrity sha512-GYx2tWgQZple2lcJr4E/TCo96EnQYf4XiNM7D2x7hN8ngyr/x0uWEnfIUVg5vQ8Z85O50XfF2Fd30aNpa46Igw== dependencies: "@babel/core" "7.28.0" "@babel/plugin-transform-async-generator-functions" "7.28.0" @@ -2193,43 +2193,43 @@ "@babel/plugin-transform-class-properties" "7.27.1" "@babel/plugin-transform-object-rest-spread" "7.28.0" "@locker/babel-plugin-transform-unforgeables" "0.22.0" - "@lwc/babel-plugin-component" "8.21.2" - "@lwc/errors" "8.21.2" - "@lwc/shared" "8.21.2" - "@lwc/ssr-compiler" "8.21.2" - "@lwc/style-compiler" "8.21.2" - "@lwc/template-compiler" "8.21.2" - -"@lwc/dev-server-plugin-lex@13.2.2": - version "13.2.2" - resolved "https://registry.yarnpkg.com/@lwc/dev-server-plugin-lex/-/dev-server-plugin-lex-13.2.2.tgz#7375cd2a76e4822f703850f545749ff22c1536d8" - integrity sha512-if4UDn9Dkk8IZDmv59jY344h2vay9HbkOW6AIBobtAJ+yjohjQkIW0jzfd3BDNuwJuhbLwI9aoq+JKdu5AA6qg== + "@lwc/babel-plugin-component" "8.20.4" + "@lwc/errors" "8.20.4" + "@lwc/shared" "8.20.4" + "@lwc/ssr-compiler" "8.20.4" + "@lwc/style-compiler" "8.20.4" + "@lwc/template-compiler" "8.20.4" + +"@lwc/dev-server-plugin-lex@13.1.3": + version "13.1.3" + resolved "https://registry.yarnpkg.com/@lwc/dev-server-plugin-lex/-/dev-server-plugin-lex-13.1.3.tgz#15e7fc1521da8d6116f915becc2aac85c81fc686" + integrity sha512-m2LNWrDN7ECerNTLq4yFfDbJo0W+LQpBKv7lNE665fy22DPyRdZiQHJHGgiN9nwNhYyCaBicA5dlGrrYIpDciQ== dependencies: magic-string "~0.30.17" -"@lwc/engine-core@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/engine-core/-/engine-core-8.21.2.tgz#f1eaae7097a8efed04dfb3e1d3e3d7ebea4093d0" - integrity sha512-NQhNTtDt2Z1xDWB7jOHD8RqjKjZ+/qxzIWrJY91KR7YvUN1IpUaWsiEjRcD5eBV6iNAgaMrlQ6TaOm82eaCc6g== +"@lwc/engine-core@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/engine-core/-/engine-core-8.20.4.tgz#11ae577008d46e9a871d81981e0e5c78e290348d" + integrity sha512-r3isRx0uTBsy7m9Mnzcgls+f/34avf40xWBn6eAtUeZp/F1WYEkWxVKmH6+ER9K2pOqlizMN5Sd5C0uGwMYXyg== dependencies: - "@lwc/features" "8.21.2" - "@lwc/shared" "8.21.2" - "@lwc/signals" "8.21.2" + "@lwc/features" "8.20.4" + "@lwc/shared" "8.20.4" + "@lwc/signals" "8.20.4" -"@lwc/engine-dom@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/engine-dom/-/engine-dom-8.21.2.tgz#4976e68c61d660eb662bf54ecf446ebd14b0993d" - integrity sha512-W946exRTeWSpRC2pKYwo8yLCslYWPcDO0cBhQpXJOOxbVdefLcJSSW0arS/0tmPenA/Y3dHaSpfPOYD4hd1eKw== +"@lwc/engine-dom@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/engine-dom/-/engine-dom-8.20.4.tgz#dc2a08f283dad581409d699ffc7234b98e8396de" + integrity sha512-Dd/flQ/v5MUhtg3JAw9i+494xS4moIghnSH5ZJTfe3whnZufadrlxTieUqvxPfxuWKr2w6KIT9KgAi978FPHjg== -"@lwc/engine-server@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/engine-server/-/engine-server-8.21.2.tgz#e589427cba8277d6d9fd1429f19ff90aa0a68865" - integrity sha512-XE5FOQULRJhIyX8gR5SV2d28+llN5ChcXipAbIYYd+XYd+HdpKG+GlK94+ZS32d+7/USthLqUmOD7DgBi1AU2A== +"@lwc/engine-server@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/engine-server/-/engine-server-8.20.4.tgz#82cd42b8d23a747d05cda0237d896b4d0146235d" + integrity sha512-9dtpj0XzMcFv4MrPGbqfA/N7/x1kxryeJn/73h55mcUWUf7TOycpPlKp7ooAN1B2CaVe+fgk+2QIGmhbvQa3+A== -"@lwc/errors@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/errors/-/errors-8.21.2.tgz#4e623ec46cb2c9d565ebd32f0c322643df909a99" - integrity sha512-dvARq9dFs8iATWTfNVw/2cMCGH5iW/VWEczIZ+6NlaIuiw/b7DZOjM6pdKFyZeFo6mWUp7P6CAnxOqqvftjT4Q== +"@lwc/errors@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/errors/-/errors-8.20.4.tgz#c1ce0c7522a4f776f06f33b334661114ca38eeae" + integrity sha512-grJRr12M4U0PJ9yuU0MRJ9H07kijef2QIfdMod4S3NTAf1EBCMQX6wY2aadmVEyQCqDS67NQkQp1iL+0QFdN4w== "@lwc/eslint-plugin-lwc-platform@6.0.0-beta.7": version "6.0.0-beta.7" @@ -2246,25 +2246,25 @@ globals "~15.14.0" minimatch "~9.0.4" -"@lwc/features@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/features/-/features-8.21.2.tgz#90349a356ce62459d7f5d8561c4680bac9cecee2" - integrity sha512-VooGIwPw4jEsdgb/fBnmyjMF/9zilYgmzX1lsbBHgMiOKon1S9h2/6AIdj3+Y+CiYxGqtxcVrMTKB3SG1X83vQ== +"@lwc/features@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/features/-/features-8.20.4.tgz#5e798dcc8a1856d024322c5a9f5d57b929f19497" + integrity sha512-ZwqZA1e60XvqQZkAbM0L6warE1HUX9ZU0kNj8p9BKOqa1znStMhATZOTmqZwTdiGPbjv0pVIvwyeN2OCEPM+xQ== dependencies: - "@lwc/shared" "8.21.2" + "@lwc/shared" "8.20.4" -"@lwc/lwc-dev-server-types@13.2.2": - version "13.2.2" - resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server-types/-/lwc-dev-server-types-13.2.2.tgz#42c4153b77e698ab1a05991f91a8a5a9d62cc531" - integrity sha512-Ur/sXh8n27sbG4QCC1IEkml0nc5Zm0YgP+f0NrPGzh5unNz0eGAfex1hOtBWtF4ZgFhkmPRZJ+MqUnEins11uQ== +"@lwc/lwc-dev-server-types@13.1.3": + version "13.1.3" + resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server-types/-/lwc-dev-server-types-13.1.3.tgz#5cef8b2bce0f0783cb5f69b8a7327709a07f3844" + integrity sha512-h04TfJij5t+ThbAURMt1K2PJBNpFSbSYwbrrqLrqH0s8IrucnlX2vorgDSc30f7Tqnrng9lHMhunk4RuEEsH/Q== -"@lwc/lwc-dev-server@~13.2.2": - version "13.2.2" - resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server/-/lwc-dev-server-13.2.2.tgz#8e9e21ad0a235c8618510fc0de19b65926e6cdab" - integrity sha512-WG9ZkWlFn9kmgi0sXyR3Cd+Yke2Fb9sgpQecICF9y5vu2q7EAjLjRb2ehJSPDcFYJRORcexHlZ1QGeiyj099Ag== +"@lwc/lwc-dev-server@~13.1.2": + version "13.1.3" + resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server/-/lwc-dev-server-13.1.3.tgz#2bf57c668d6cb5cfb40953a100346f6b832f2c06" + integrity sha512-XfS+ts2GXDwzpE19pxi6MTk7j4ua/96jBeXCCGNF9Yf5UddDGHKsbyXYhEthvIlFTdhVAjb0rg2AvlChygLUlQ== dependencies: - "@lwc/lwc-dev-server-types" "13.2.2" - "@lwc/sfdc-lwc-compiler" "13.2.2" + "@lwc/lwc-dev-server-types" "13.1.3" + "@lwc/sfdc-lwc-compiler" "13.1.3" chalk "~5.4.1" chokidar "~3.6.0" commander "~10.0.0" @@ -2272,45 +2272,45 @@ glob "^10.4.5" ws "^8.18.2" -"@lwc/metadata@13.2.2": - version "13.2.2" - resolved "https://registry.yarnpkg.com/@lwc/metadata/-/metadata-13.2.2.tgz#0001a2c69327aeb3c291a223f140c85c7c66fce5" - integrity sha512-qKcf86q/dRBN8ivwiBNhmF2al+kE4SC5xIPiKE7B6oBKzIh60s4wjY2b21xGtJ8sCuZgC7C5F8IVPLL1GBSG9g== +"@lwc/metadata@13.1.3": + version "13.1.3" + resolved "https://registry.yarnpkg.com/@lwc/metadata/-/metadata-13.1.3.tgz#30858424ae13ecf2106f07bfc10100e718e4f936" + integrity sha512-odev/R+AIYOHmU9ll9zNgbZXnausqC7F/+QjSk1MrT/TNRog4g46g3YNk0QAx33L2cyoIoffIVWFazyyTWQ3fA== dependencies: "@babel/parser" "~7.27.5" "@babel/traverse" "~7.27.4" "@babel/types" "~7.27.6" - "@lwc/sfdc-compiler-utils" "13.2.2" + "@lwc/sfdc-compiler-utils" "13.1.3" postcss "~8.5.5" postcss-selector-parser "~6.1.2" postcss-value-parser "~4.2.0" -"@lwc/module-resolver@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/module-resolver/-/module-resolver-8.21.2.tgz#7b38233df79465908b29f967121c8f7049a93688" - integrity sha512-cGJt4tZGARlKEPbbbPjK9R/2C0Myjtbp0LhFnOfke6DIKRETTXvVuhYT35zkJlWKvPaVWwd0TALaNXoWV0dU4A== +"@lwc/module-resolver@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/module-resolver/-/module-resolver-8.20.4.tgz#fe08f5752ce422be014a369c60769856489aeb7f" + integrity sha512-yZJG20IEYoN91xz/3PqhXuCBF1FSeX1vGDOu0+bqHY5m9RKYRZASMqyjFRpjOQGVGkBP14HJtZB4QPAaxLVpLw== dependencies: resolve "~1.22.10" -"@lwc/rollup-plugin@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/rollup-plugin/-/rollup-plugin-8.21.2.tgz#d7d67de9e726644aae60741c030e3d796ab18ed9" - integrity sha512-QonTfeggZIGSgued8en5KmYk8rGOcq64YsgPzTgf+J3EfCMbg4l3lIpcCER7bGsyc8WdEZUoXO8Bikd47GYhoQ== +"@lwc/rollup-plugin@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/rollup-plugin/-/rollup-plugin-8.20.4.tgz#f54d02328b8f1e0c11354f39e1ae1efbfa80fe05" + integrity sha512-0EkKURh5vuRXDfW9tH0d6++hcyRZ9ENMZgsdgEwwHfrTppnMhmngIWmb2J1FzLHUGrjmmPmQUOze2DzW0Dh1Ag== dependencies: - "@lwc/compiler" "8.21.2" - "@lwc/module-resolver" "8.21.2" - "@lwc/shared" "8.21.2" + "@lwc/compiler" "8.20.4" + "@lwc/module-resolver" "8.20.4" + "@lwc/shared" "8.20.4" "@rollup/pluginutils" "~5.2.0" -"@lwc/sfdc-compiler-utils@13.2.2": - version "13.2.2" - resolved "https://registry.yarnpkg.com/@lwc/sfdc-compiler-utils/-/sfdc-compiler-utils-13.2.2.tgz#1344375899a58dc3460aca3ef2172f640fc5961d" - integrity sha512-tJZIpJIyLSAZhKiNaart+d1+xQ9Ju3D7MuKmfZoKHlitB3Fv3M6eRT3xpGOUV/5mPbqdEtBANpCMWfy/ECnMOA== +"@lwc/sfdc-compiler-utils@13.1.3": + version "13.1.3" + resolved "https://registry.yarnpkg.com/@lwc/sfdc-compiler-utils/-/sfdc-compiler-utils-13.1.3.tgz#5e85b10e7aebd4b34e59d98551a5fd4a74533ea9" + integrity sha512-VoS4Ggbqt5byK8VKI4KSpmh9rhoQH58vQEbfm+B7vhqL0DQR2/OvUXhr5GkATq6V3bcOfjdSmOxlPz+9gZAvZA== -"@lwc/sfdc-lwc-compiler@13.2.2", "@lwc/sfdc-lwc-compiler@~13.2.2": - version "13.2.2" - resolved "https://registry.yarnpkg.com/@lwc/sfdc-lwc-compiler/-/sfdc-lwc-compiler-13.2.2.tgz#219cd3126d77450fe4c67669702e228c90fdb4be" - integrity sha512-kWcj6ZeC7nuEi066le92JxzhQ56J9zHW7qMkmd1bajXhkOl55zHaj9PRCZtJumq+dy8TE5JQdWqJRjHQ7vYKlg== +"@lwc/sfdc-lwc-compiler@13.1.3", "@lwc/sfdc-lwc-compiler@~13.1.2": + version "13.1.3" + resolved "https://registry.yarnpkg.com/@lwc/sfdc-lwc-compiler/-/sfdc-lwc-compiler-13.1.3.tgz#9f111ada602bd594179b4d8a3adad106ca5eed4f" + integrity sha512-rzVZ/rXIyAeEcMwTPAfNvzNLMoBve0YcvGFjx8wbODQ68Bwzbtyne23HPO28SST1qnnSQ+obYX4kaCvoglQ3jA== dependencies: "@babel/core" "7.27.4" "@babel/parser" "7.27.5" @@ -2319,11 +2319,11 @@ "@babel/traverse" "7.27.4" "@babel/types" "7.27.6" "@komaci/esm-generator" "258.0.0" - "@lwc/dev-server-plugin-lex" "13.2.2" + "@lwc/dev-server-plugin-lex" "13.1.3" "@lwc/eslint-plugin-lwc" "3.0.0-beta.2" "@lwc/eslint-plugin-lwc-platform" "6.0.0-beta.7" - "@lwc/metadata" "13.2.2" - "@lwc/sfdc-compiler-utils" "13.2.2" + "@lwc/metadata" "13.1.3" + "@lwc/sfdc-compiler-utils" "13.1.3" "@rollup/plugin-babel" "^6.0.4" "@rollup/plugin-replace" "^6.0.2" "@rollup/wasm-node" "4.10.0" @@ -2344,73 +2344,73 @@ postcss-selector-parser "~6.1.2" terser "~5.36.0" -"@lwc/shared@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/shared/-/shared-8.21.2.tgz#a7a96e7a9492ee71d4aa7b92f30a3c0182713222" - integrity sha512-+b+r11TIoOZb867vh8idr2e0izvet9LbRImOJKUyV62MvtnvkD5x8QL07Q1v0DTYF/gXbHlTvOWRW9OuT0GY2Q== +"@lwc/shared@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/shared/-/shared-8.20.4.tgz#ac8616615d77a7de97da076c0f21115ccbc693d8" + integrity sha512-+VNcMn7mxoKzfrh1o40THvwuM+s1ZOC6cZOC2CovSwmkaunbSO4S9ejeN1seu+xnGjmzhRNTSq9eIW3Gi2RfJg== -"@lwc/signals@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/signals/-/signals-8.21.2.tgz#037688ebc128917d5c600786e2464485b70b7e0c" - integrity sha512-OTWUabt6cL9ca29owPztviEANAcMz4+73h6M4xoXjut1+KwBmPvAae4QtukLSlEt7rKRunWm7nU77C+u98JvHA== +"@lwc/signals@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/signals/-/signals-8.20.4.tgz#612f5f722321d9a9f693a74230c5beded6cd3081" + integrity sha512-bsPlJZxBKaI7jhwGre/VgVNdpIHdvUk1lvkbqUR3bFJ5qBA59FtGxdF/yOktTBBT2PLDvYQv9bj3J4UWrjZCaA== -"@lwc/ssr-compiler@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/ssr-compiler/-/ssr-compiler-8.21.2.tgz#9db99dfaffaadf690ab103055abee526aa91b2d2" - integrity sha512-MsMzWD+2HzL6wrWKcmXvPgBaXpuLjlv6jb71U+BYQy3+bkypbv/3Uvz2IwiNm1V0U4pDHYEdoltjDpPAqYEY9w== +"@lwc/ssr-compiler@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/ssr-compiler/-/ssr-compiler-8.20.4.tgz#7069ad3e2e5e8d4c2e3c235909270d5ef9604f5e" + integrity sha512-h0A/OQzORYZEqROc42oSPH4KXFPbAdeYmChibks4rTVuovgoYfTmuGAx7duOpPCmEekQfaDIhI0xcaj24cAI+Q== dependencies: "@babel/types" "7.28.2" - "@lwc/errors" "8.21.2" - "@lwc/shared" "8.21.2" - "@lwc/template-compiler" "8.21.2" + "@lwc/errors" "8.20.4" + "@lwc/shared" "8.20.4" + "@lwc/template-compiler" "8.20.4" acorn "8.15.0" astring "^1.9.0" estree-toolkit "^1.7.13" immer "^10.1.1" meriyah "^5.0.0" -"@lwc/ssr-runtime@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/ssr-runtime/-/ssr-runtime-8.21.2.tgz#e9759bfa63468b292674677395888901ad3cd703" - integrity sha512-hZCyX3cxws/Yg1RlimhPeRDhpzvG3u5f/7jEPcuLxkaLtS7BJLVOnCzQwFC79QxVqnG2SyTCSDON033lbNJD+w== +"@lwc/ssr-runtime@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/ssr-runtime/-/ssr-runtime-8.20.4.tgz#04f7791fff6dd997bf0594c67dba45e0aafabe43" + integrity sha512-lTd7rOLKb8GLWPG51didArQNpWcGUKTFW2Arpn5ppg9ifECBs4umVVm6WSlKd3WljasD4L6SqHWZ84KfYJJtnA== -"@lwc/style-compiler@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/style-compiler/-/style-compiler-8.21.2.tgz#9100754f1c71649d678f29204748af4436af4ad8" - integrity sha512-fDKJRppIrxHoxPy0E4mD9NdYB+8IqZfDsT9j2dcdD/yZhvUlq59c81upD0z8r1U84fYTtKYSBaYyW+yuDmFroA== +"@lwc/style-compiler@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/style-compiler/-/style-compiler-8.20.4.tgz#ea3c7ad84779a7b938993205de5445b4536cf7a9" + integrity sha512-++DpHDUUrp2NG1N91O8eeBWWE8wSHCqlERt76dox6VaKo0piO20Hy1R5nJXJaty2kGf4HNS/Gu0AfepY0E3ejg== dependencies: - "@lwc/shared" "8.21.2" + "@lwc/shared" "8.20.4" postcss "~8.5.6" postcss-selector-parser "~7.1.0" postcss-value-parser "~4.2.0" -"@lwc/synthetic-shadow@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/synthetic-shadow/-/synthetic-shadow-8.21.2.tgz#52f6dae2229ae43052ad7ca78e35173fca8090d7" - integrity sha512-aurN9FuaQXu4SeJqbVZ8g3x8MBAYmksLP3ZCXsxdsuWRszv4mUv9Ic+qhAc5Lbe9/G+fLLh5BhiAWjb6zpNMyw== +"@lwc/synthetic-shadow@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/synthetic-shadow/-/synthetic-shadow-8.20.4.tgz#6d438458182659f5c976708c1bb646b122ad9537" + integrity sha512-Uq0GCpk5TgBpobtOBUe4ZX0/pZAnmHqzmtCuFKzUwQVDawCmauT2ARQ8PHj6grjAiAjq8dFV8VnxEk2hLkLkxQ== -"@lwc/template-compiler@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/template-compiler/-/template-compiler-8.21.2.tgz#d379516418bb669da2095464773d138731c401bc" - integrity sha512-A/v/goEZTr0Zb/L9RSDlh+u9qCYDitHliZ3LMKVNNxjXfqTkgg+XOqBmlaaVvk64ewnEhsKGsaTorzSk1ONXrg== +"@lwc/template-compiler@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/template-compiler/-/template-compiler-8.20.4.tgz#278765a1379e8411314b84a917bd99d9d0b9281f" + integrity sha512-8aT/mP9OFuY3HFdIW0BNUvcRaxD8eqMNZ1PFG82sY/N3TRIbB7Kq67fcfdzb+OAMdmXKs1hplPV6ZEbZhNsY2g== dependencies: - "@lwc/errors" "8.21.2" - "@lwc/shared" "8.21.2" + "@lwc/errors" "8.20.4" + "@lwc/shared" "8.20.4" acorn "~8.15.0" astring "~1.9.0" he "~1.2.0" -"@lwc/types@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/types/-/types-8.21.2.tgz#2b90eb470876fb06d6cb42177a34a2d0dcf66e43" - integrity sha512-Ukol+L5oMIXDdbE/9dYIIKeq4UHSaSu4eBCq7Y2AJ2hh3W53yvgmgiXI2QSFtgGdlYZT4e7Q1AjByA6BJvR6gA== +"@lwc/types@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/types/-/types-8.20.4.tgz#8bd2db37e6bdf17380a47587f99aeb78335897b9" + integrity sha512-ilMucNXoHLqrGRxm5hVviSLefXLhqtkWdzyWXjZGh0Fp2nVe6Ze9Z8OxJdD0A0ZlDGavBs1r4YG0rQT8vuqCNg== dependencies: - "@lwc/engine-core" "8.21.2" + "@lwc/engine-core" "8.20.4" -"@lwc/wire-service@8.21.2": - version "8.21.2" - resolved "https://registry.yarnpkg.com/@lwc/wire-service/-/wire-service-8.21.2.tgz#5f2b69ad18228a11cf04d9e04546a70b8c251909" - integrity sha512-AQh4U96HpnWYl49iwbpq8P4Av+WQ19uqcCnkyaQe5rQE5iGhuPhwrYJX1rsMeQFeSuKMtsGhCa8Ru84N0KQzmg== +"@lwc/wire-service@8.20.4": + version "8.20.4" + resolved "https://registry.yarnpkg.com/@lwc/wire-service/-/wire-service-8.20.4.tgz#6196f0f9dc6f5b89b1207634d21af7d21836f48d" + integrity sha512-Go1AmFtW2Nq0Gz2CmnV/ph45jusc0PW9+K8XrIAMsQDxCK2ZlWTxa4LkPkL1mxYpLhM3WfKJGmLVeLFvlJfSeg== "@lwrjs/api@0.18.3": version "0.18.3" @@ -8738,29 +8738,29 @@ lunr@^2.3.9: resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1" integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow== -lwc@~8.21.2: - version "8.21.2" - resolved "https://registry.yarnpkg.com/lwc/-/lwc-8.21.2.tgz#5c5ba527830a3e67bd55ecaf09c743ce70419fd1" - integrity sha512-vDDTezLAm1FPnHaFG/JRlx7rIgh5cxgJqlZ7/g+jizPvLxo8eK3OWJX+D+ifL0nfGr7JHj9DWXPgj2kRHX2bMA== - dependencies: - "@lwc/aria-reflection" "8.21.2" - "@lwc/babel-plugin-component" "8.21.2" - "@lwc/compiler" "8.21.2" - "@lwc/engine-core" "8.21.2" - "@lwc/engine-dom" "8.21.2" - "@lwc/engine-server" "8.21.2" - "@lwc/errors" "8.21.2" - "@lwc/features" "8.21.2" - "@lwc/module-resolver" "8.21.2" - "@lwc/rollup-plugin" "8.21.2" - "@lwc/shared" "8.21.2" - "@lwc/ssr-compiler" "8.21.2" - "@lwc/ssr-runtime" "8.21.2" - "@lwc/style-compiler" "8.21.2" - "@lwc/synthetic-shadow" "8.21.2" - "@lwc/template-compiler" "8.21.2" - "@lwc/types" "8.21.2" - "@lwc/wire-service" "8.21.2" +lwc@~8.20.4: + version "8.20.4" + resolved "https://registry.yarnpkg.com/lwc/-/lwc-8.20.4.tgz#fc019dd3cba9eadf694b03ffafef659ae670c8f6" + integrity sha512-KJm4jGsItbGic8INr+Y590CYZ1hBK0ofDEZy7sPTAWKXBaYZFkLGL+95F9IpY3FVo3LfV+iW3mAui5EgN+qYsw== + dependencies: + "@lwc/aria-reflection" "8.20.4" + "@lwc/babel-plugin-component" "8.20.4" + "@lwc/compiler" "8.20.4" + "@lwc/engine-core" "8.20.4" + "@lwc/engine-dom" "8.20.4" + "@lwc/engine-server" "8.20.4" + "@lwc/errors" "8.20.4" + "@lwc/features" "8.20.4" + "@lwc/module-resolver" "8.20.4" + "@lwc/rollup-plugin" "8.20.4" + "@lwc/shared" "8.20.4" + "@lwc/ssr-compiler" "8.20.4" + "@lwc/ssr-runtime" "8.20.4" + "@lwc/style-compiler" "8.20.4" + "@lwc/synthetic-shadow" "8.20.4" + "@lwc/template-compiler" "8.20.4" + "@lwc/types" "8.20.4" + "@lwc/wire-service" "8.20.4" magic-string@^0.25.3: version "0.25.9" From 49ce13f32a0e1d458c20dcbb34d62f9213562ee3 Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Wed, 27 Aug 2025 14:52:12 +0000 Subject: [PATCH 02/15] chore(release): 4.4.13 [skip ci] --- CHANGELOG.md | 11 +++++++++++ README.md | 6 +++--- package.json | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89c0869e..1adaa8b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## [4.4.13](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.4.12...4.4.13) (2025-08-27) + +### Bug Fixes + +- 258-patch dependencies ([#493](https://github.com/salesforcecli/plugin-lightning-dev/issues/493)) ([6f34efb](https://github.com/salesforcecli/plugin-lightning-dev/commit/6f34efbee5fe588c95fada86af5ae233205e59dd)) +- **deps:** bump @lwc/lwc-dev-server from 13.0.32 to 13.2.1 ([#479](https://github.com/salesforcecli/plugin-lightning-dev/issues/479)) ([f4a77d2](https://github.com/salesforcecli/plugin-lightning-dev/commit/f4a77d24b26ee280ee7e93e51ea960af7dedfcea)) +- **deps:** bump @lwc/lwc-dev-server from 13.2.1 to 13.2.2 ([#489](https://github.com/salesforcecli/plugin-lightning-dev/issues/489)) ([47589f8](https://github.com/salesforcecli/plugin-lightning-dev/commit/47589f8750a329af9c6baa82b9377c176f5213dc)) +- **deps:** bump @lwc/sfdc-lwc-compiler from 13.0.32 to 13.2.2 ([#487](https://github.com/salesforcecli/plugin-lightning-dev/issues/487)) ([916b13d](https://github.com/salesforcecli/plugin-lightning-dev/commit/916b13d7a62ccae6219c44af3283eb85fda0dc42)) +- **deps:** bump @salesforce/core from 8.19.1 to 8.21.2 ([#488](https://github.com/salesforcecli/plugin-lightning-dev/issues/488)) ([8336604](https://github.com/salesforcecli/plugin-lightning-dev/commit/83366048c681b697ea68a260a94c5977796519b0)) +- **deps:** bump lwc from 8.20.4 to 8.21.2 ([#486](https://github.com/salesforcecli/plugin-lightning-dev/issues/486)) ([0f95ebd](https://github.com/salesforcecli/plugin-lightning-dev/commit/0f95ebda44e8da7ce40c50d4604ecd398a233220)) + ## [4.4.12](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.4.11...4.4.12) (2025-08-10) ### Bug Fixes diff --git a/README.md b/README.md index 527381d0..06507777 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.12/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.13/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -248,7 +248,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.12/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.13/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -304,6 +304,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.12/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.13/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index 88500641..6eaf09dc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.4.12", + "version": "4.4.13", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { From 03c3336a9ce6ed0c5a4e92db011dba232445d776 Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Thu, 9 Oct 2025 17:40:00 -0400 Subject: [PATCH 03/15] chore: upgrade LWC dependencies to latest version @W-19861266 (#525) --- package.json | 2 +- yarn.lock | 242 +++++++++++++++++++++++++-------------------------- 2 files changed, 122 insertions(+), 122 deletions(-) diff --git a/package.json b/package.json index 6eaf09dc..ac6a85ad 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "axios": "^1.11.0", "glob": "^10.4.5", "lightning-base-components": "1.27.2-alpha", - "lwc": "~8.20.4", + "lwc": "~8.20.5", "node-fetch": "^3.3.2", "open": "^10.2.0", "xml2js": "^0.6.2" diff --git a/yarn.lock b/yarn.lock index 96e54140..7d1f1ee5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2167,25 +2167,25 @@ dependencies: "@locker/shared" "0.24.6" -"@lwc/aria-reflection@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/aria-reflection/-/aria-reflection-8.20.4.tgz#a49d7efe10415d61d368144d3cf5feb3213e1ba9" - integrity sha512-UdJzCXHPfc0hqD/en2cDujOkCwxXUqAM0KJ4N8wzhYAadvOFqqwfFWCs2f5pXcybZb0+ZK7cWLpg7Cxu3lkyZQ== +"@lwc/aria-reflection@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/aria-reflection/-/aria-reflection-8.20.5.tgz#a18e5a4b59abb44d82081f49d89cb5796f69e7fa" + integrity sha512-GBe5kW0q2rEeOZ0wJvkLswn+GYVulqVgL34hX6E3jS/CCzTBYUqw2SrbQdJx0x3STq3/sadivgcOLgotn9Opfg== -"@lwc/babel-plugin-component@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/babel-plugin-component/-/babel-plugin-component-8.20.4.tgz#04a08c0ab4696ef688c4b15fbbcc1dd6a47decef" - integrity sha512-6ejV/IakkuSqAEXPR7SMNgpnC+AOC+zzovycqpkugZy6ahYP6HEmOtzrotNERumSSWxrfM+slsDWMl7zA9F7sA== +"@lwc/babel-plugin-component@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/babel-plugin-component/-/babel-plugin-component-8.20.5.tgz#a1086f5f774a9d99d7af0c16383933f2ae8763c7" + integrity sha512-jVrnb0quyGyVocpmbP6p0InVNmSX87Wl9p6xhuCZeP01UvKddL2CV9uaqsRxtAKAuaw1EzBdtRjdXrzRJAZ2qw== dependencies: "@babel/helper-module-imports" "7.27.1" - "@lwc/errors" "8.20.4" - "@lwc/shared" "8.20.4" + "@lwc/errors" "8.20.5" + "@lwc/shared" "8.20.5" line-column "~1.0.2" -"@lwc/compiler@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/compiler/-/compiler-8.20.4.tgz#1970e12996c90778cead4f3ac0c8ff83670ef67e" - integrity sha512-GYx2tWgQZple2lcJr4E/TCo96EnQYf4XiNM7D2x7hN8ngyr/x0uWEnfIUVg5vQ8Z85O50XfF2Fd30aNpa46Igw== +"@lwc/compiler@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/compiler/-/compiler-8.20.5.tgz#3584b23f3992c0ec5f0fd2f0a437557d4508491f" + integrity sha512-vmOArwjnX0aHdaFFtIpjYLpKd7qGTd3vF7PadrMbZZdbnUGD4svxUkbSvCkHS9WaikMNhgJ3a8yEP8Ffcdo3ag== dependencies: "@babel/core" "7.28.0" "@babel/plugin-transform-async-generator-functions" "7.28.0" @@ -2193,12 +2193,12 @@ "@babel/plugin-transform-class-properties" "7.27.1" "@babel/plugin-transform-object-rest-spread" "7.28.0" "@locker/babel-plugin-transform-unforgeables" "0.22.0" - "@lwc/babel-plugin-component" "8.20.4" - "@lwc/errors" "8.20.4" - "@lwc/shared" "8.20.4" - "@lwc/ssr-compiler" "8.20.4" - "@lwc/style-compiler" "8.20.4" - "@lwc/template-compiler" "8.20.4" + "@lwc/babel-plugin-component" "8.20.5" + "@lwc/errors" "8.20.5" + "@lwc/shared" "8.20.5" + "@lwc/ssr-compiler" "8.20.5" + "@lwc/style-compiler" "8.20.5" + "@lwc/template-compiler" "8.20.5" "@lwc/dev-server-plugin-lex@13.1.3": version "13.1.3" @@ -2207,29 +2207,29 @@ dependencies: magic-string "~0.30.17" -"@lwc/engine-core@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/engine-core/-/engine-core-8.20.4.tgz#11ae577008d46e9a871d81981e0e5c78e290348d" - integrity sha512-r3isRx0uTBsy7m9Mnzcgls+f/34avf40xWBn6eAtUeZp/F1WYEkWxVKmH6+ER9K2pOqlizMN5Sd5C0uGwMYXyg== +"@lwc/engine-core@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/engine-core/-/engine-core-8.20.5.tgz#86eddfa1e92436b139a8d3881f86ee9bfc90c176" + integrity sha512-JG4oMSzFPK1fzRNOkhEWRaYIzQRHvXioeUzOjp9lx5MaM3JzV9PgsJc45FPYOXmU7Dwnx69TqTeZAp6BFOq3sA== dependencies: - "@lwc/features" "8.20.4" - "@lwc/shared" "8.20.4" - "@lwc/signals" "8.20.4" + "@lwc/features" "8.20.5" + "@lwc/shared" "8.20.5" + "@lwc/signals" "8.20.5" -"@lwc/engine-dom@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/engine-dom/-/engine-dom-8.20.4.tgz#dc2a08f283dad581409d699ffc7234b98e8396de" - integrity sha512-Dd/flQ/v5MUhtg3JAw9i+494xS4moIghnSH5ZJTfe3whnZufadrlxTieUqvxPfxuWKr2w6KIT9KgAi978FPHjg== +"@lwc/engine-dom@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/engine-dom/-/engine-dom-8.20.5.tgz#5968c685e96c76d0a993c48fc6d81f3b0bdc627d" + integrity sha512-oCFiW1iqo3BHLpcXpGCtx1opTVskXyL5UQQEjr5kgLXXNW3eMik9NfJkYUfYOHdMke/gl1RVCk2+boZSoS5h9w== -"@lwc/engine-server@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/engine-server/-/engine-server-8.20.4.tgz#82cd42b8d23a747d05cda0237d896b4d0146235d" - integrity sha512-9dtpj0XzMcFv4MrPGbqfA/N7/x1kxryeJn/73h55mcUWUf7TOycpPlKp7ooAN1B2CaVe+fgk+2QIGmhbvQa3+A== +"@lwc/engine-server@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/engine-server/-/engine-server-8.20.5.tgz#19be99116c5d1e5ae439f073db84c4c52b7b57f2" + integrity sha512-dv4cHVTBD2G2JHYOOecXt2wviWuiFRoXSYMvDQoDsa0KSTIQ91SXPeHvf0ib/TdVskGA+OJSrW7pDhCfpQWpaQ== -"@lwc/errors@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/errors/-/errors-8.20.4.tgz#c1ce0c7522a4f776f06f33b334661114ca38eeae" - integrity sha512-grJRr12M4U0PJ9yuU0MRJ9H07kijef2QIfdMod4S3NTAf1EBCMQX6wY2aadmVEyQCqDS67NQkQp1iL+0QFdN4w== +"@lwc/errors@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/errors/-/errors-8.20.5.tgz#72b3214b077d00c3b0b36f3a3ea06be7c98913e0" + integrity sha512-P4tLoSJNbLpngzBcLGr+Lv4LLKbQ8iliYn1aY0M9gEN0KSOY5AsHNpUYKyXpBMtLh5D3nPv4qo337MImw0TnKQ== "@lwc/eslint-plugin-lwc-platform@6.0.0-beta.7": version "6.0.0-beta.7" @@ -2246,12 +2246,12 @@ globals "~15.14.0" minimatch "~9.0.4" -"@lwc/features@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/features/-/features-8.20.4.tgz#5e798dcc8a1856d024322c5a9f5d57b929f19497" - integrity sha512-ZwqZA1e60XvqQZkAbM0L6warE1HUX9ZU0kNj8p9BKOqa1znStMhATZOTmqZwTdiGPbjv0pVIvwyeN2OCEPM+xQ== +"@lwc/features@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/features/-/features-8.20.5.tgz#f5e18bbf4e5037d1879b582ed22b04705da6b26b" + integrity sha512-G+rWDwETG/v56lQUo2F11x4uYvI1wrbc1aJAhmQ5xEBuDEeY8iuThiiqswYESf7LPcwSFONXwd0uyuHc/F4O5g== dependencies: - "@lwc/shared" "8.20.4" + "@lwc/shared" "8.20.5" "@lwc/lwc-dev-server-types@13.1.3": version "13.1.3" @@ -2285,21 +2285,21 @@ postcss-selector-parser "~6.1.2" postcss-value-parser "~4.2.0" -"@lwc/module-resolver@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/module-resolver/-/module-resolver-8.20.4.tgz#fe08f5752ce422be014a369c60769856489aeb7f" - integrity sha512-yZJG20IEYoN91xz/3PqhXuCBF1FSeX1vGDOu0+bqHY5m9RKYRZASMqyjFRpjOQGVGkBP14HJtZB4QPAaxLVpLw== +"@lwc/module-resolver@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/module-resolver/-/module-resolver-8.20.5.tgz#36fc662dd16a93ce479b79dd01d2b40796533fd0" + integrity sha512-S04bm+MSpGuMr3eE1VRcI2qrb2mETDvRcdqGhGXQ68HpP2DXQKUKq1XeyGXycNn+LlQiwTc+C+FiROYWsMQ4vg== dependencies: resolve "~1.22.10" -"@lwc/rollup-plugin@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/rollup-plugin/-/rollup-plugin-8.20.4.tgz#f54d02328b8f1e0c11354f39e1ae1efbfa80fe05" - integrity sha512-0EkKURh5vuRXDfW9tH0d6++hcyRZ9ENMZgsdgEwwHfrTppnMhmngIWmb2J1FzLHUGrjmmPmQUOze2DzW0Dh1Ag== +"@lwc/rollup-plugin@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/rollup-plugin/-/rollup-plugin-8.20.5.tgz#68a0f25aeecbf4a77fb868c2a8f2689f2ba9cf93" + integrity sha512-reKT1P92vNqP8lkErm08jPW2BKvtPvbnDbmhTP74EgRT5xWS1vChzEFIkauEsFx4UpTCL3l4/7klZH2Q3I67Ew== dependencies: - "@lwc/compiler" "8.20.4" - "@lwc/module-resolver" "8.20.4" - "@lwc/shared" "8.20.4" + "@lwc/compiler" "8.20.5" + "@lwc/module-resolver" "8.20.5" + "@lwc/shared" "8.20.5" "@rollup/pluginutils" "~5.2.0" "@lwc/sfdc-compiler-utils@13.1.3": @@ -2344,73 +2344,73 @@ postcss-selector-parser "~6.1.2" terser "~5.36.0" -"@lwc/shared@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/shared/-/shared-8.20.4.tgz#ac8616615d77a7de97da076c0f21115ccbc693d8" - integrity sha512-+VNcMn7mxoKzfrh1o40THvwuM+s1ZOC6cZOC2CovSwmkaunbSO4S9ejeN1seu+xnGjmzhRNTSq9eIW3Gi2RfJg== +"@lwc/shared@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/shared/-/shared-8.20.5.tgz#e1d52f2fc90f3ffa4ec061e26782f6d60457140b" + integrity sha512-6nbxLkv9QvmVWiGDcvkMJEn2/9cFZ9i9W0oUqeY5IyY+Zd8S6bNQJtmhq0SiC4lc7HTrEVUAmYw9TnjMFQ94Sw== -"@lwc/signals@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/signals/-/signals-8.20.4.tgz#612f5f722321d9a9f693a74230c5beded6cd3081" - integrity sha512-bsPlJZxBKaI7jhwGre/VgVNdpIHdvUk1lvkbqUR3bFJ5qBA59FtGxdF/yOktTBBT2PLDvYQv9bj3J4UWrjZCaA== +"@lwc/signals@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/signals/-/signals-8.20.5.tgz#48af8babd6db3ef94be1bb59c7b8e16990413d6e" + integrity sha512-nLM0aB7WudcYtQPrz3qpzda/ADodmxXcVtkDE3bKzbuqGoQIDagkFLKiCF674wivhTHQf/1Wbcp7vvpEUl/4cQ== -"@lwc/ssr-compiler@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/ssr-compiler/-/ssr-compiler-8.20.4.tgz#7069ad3e2e5e8d4c2e3c235909270d5ef9604f5e" - integrity sha512-h0A/OQzORYZEqROc42oSPH4KXFPbAdeYmChibks4rTVuovgoYfTmuGAx7duOpPCmEekQfaDIhI0xcaj24cAI+Q== +"@lwc/ssr-compiler@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/ssr-compiler/-/ssr-compiler-8.20.5.tgz#44d98499ba2dfaede7fc1823c1ddb0e29abd5d8c" + integrity sha512-qkO5jeUV4ZIkxFbfueFCgPACgcLdXoMmJwRwnKdtgUPse0sTCEmDDMB9ojLSdKhrFIUmVAfe3iyCGTkvhgazeQ== dependencies: "@babel/types" "7.28.2" - "@lwc/errors" "8.20.4" - "@lwc/shared" "8.20.4" - "@lwc/template-compiler" "8.20.4" + "@lwc/errors" "8.20.5" + "@lwc/shared" "8.20.5" + "@lwc/template-compiler" "8.20.5" acorn "8.15.0" astring "^1.9.0" estree-toolkit "^1.7.13" immer "^10.1.1" meriyah "^5.0.0" -"@lwc/ssr-runtime@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/ssr-runtime/-/ssr-runtime-8.20.4.tgz#04f7791fff6dd997bf0594c67dba45e0aafabe43" - integrity sha512-lTd7rOLKb8GLWPG51didArQNpWcGUKTFW2Arpn5ppg9ifECBs4umVVm6WSlKd3WljasD4L6SqHWZ84KfYJJtnA== +"@lwc/ssr-runtime@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/ssr-runtime/-/ssr-runtime-8.20.5.tgz#bf0527b119dd013d27242ffed76377d0ebcdc339" + integrity sha512-xrBDWPusJ4gpmCunLgZepJtbAqxEgWf837Mhuoh5Jf1nVmZIVoxqtVeQC79eMTGJSOPh9Dl1azyy/VbnN3bpuw== -"@lwc/style-compiler@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/style-compiler/-/style-compiler-8.20.4.tgz#ea3c7ad84779a7b938993205de5445b4536cf7a9" - integrity sha512-++DpHDUUrp2NG1N91O8eeBWWE8wSHCqlERt76dox6VaKo0piO20Hy1R5nJXJaty2kGf4HNS/Gu0AfepY0E3ejg== +"@lwc/style-compiler@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/style-compiler/-/style-compiler-8.20.5.tgz#41a2982dfdd083dc4cd5df8f55f61b75d395e175" + integrity sha512-6Frb/RydBUCrZYxXf7EHsZlUVmpdeLRiQqPrMzPamWm7w8QoukjQgIcF8lghJd41Oc8HxAAXQTQcE8BWUORTzQ== dependencies: - "@lwc/shared" "8.20.4" + "@lwc/shared" "8.20.5" postcss "~8.5.6" postcss-selector-parser "~7.1.0" postcss-value-parser "~4.2.0" -"@lwc/synthetic-shadow@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/synthetic-shadow/-/synthetic-shadow-8.20.4.tgz#6d438458182659f5c976708c1bb646b122ad9537" - integrity sha512-Uq0GCpk5TgBpobtOBUe4ZX0/pZAnmHqzmtCuFKzUwQVDawCmauT2ARQ8PHj6grjAiAjq8dFV8VnxEk2hLkLkxQ== +"@lwc/synthetic-shadow@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/synthetic-shadow/-/synthetic-shadow-8.20.5.tgz#58f54bf17347e2b3856de731c0515d9b7d0d3907" + integrity sha512-I0XDj1d/I5SXjiSRq/cuabwgrCIxqouwoR2egokKmLdpu1IBLsROOegQlrAUnSt/eg0gnLOOylVdqekScei4Rg== -"@lwc/template-compiler@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/template-compiler/-/template-compiler-8.20.4.tgz#278765a1379e8411314b84a917bd99d9d0b9281f" - integrity sha512-8aT/mP9OFuY3HFdIW0BNUvcRaxD8eqMNZ1PFG82sY/N3TRIbB7Kq67fcfdzb+OAMdmXKs1hplPV6ZEbZhNsY2g== +"@lwc/template-compiler@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/template-compiler/-/template-compiler-8.20.5.tgz#16705f0da078b97287232bbad38672ffff92627a" + integrity sha512-JjXOdknLJf16MEt+LrNXfeF82EL9e1hJvcO3wJeh61BSpjcml75iOrqtel/AKGukHE4BJOo4gBRycE7pVa3Ekw== dependencies: - "@lwc/errors" "8.20.4" - "@lwc/shared" "8.20.4" + "@lwc/errors" "8.20.5" + "@lwc/shared" "8.20.5" acorn "~8.15.0" astring "~1.9.0" he "~1.2.0" -"@lwc/types@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/types/-/types-8.20.4.tgz#8bd2db37e6bdf17380a47587f99aeb78335897b9" - integrity sha512-ilMucNXoHLqrGRxm5hVviSLefXLhqtkWdzyWXjZGh0Fp2nVe6Ze9Z8OxJdD0A0ZlDGavBs1r4YG0rQT8vuqCNg== +"@lwc/types@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/types/-/types-8.20.5.tgz#ad6294f64e342dd81ea61f280e78f11d436ad205" + integrity sha512-1eSJTa3Y5N8R7pCSVgFgdz3rp6TTv5z0RwDHp8ZRrgzav5+Cc7FUzGFKvwwe5mnLebw88cm3rmyz0XeC+GidUw== dependencies: - "@lwc/engine-core" "8.20.4" + "@lwc/engine-core" "8.20.5" -"@lwc/wire-service@8.20.4": - version "8.20.4" - resolved "https://registry.yarnpkg.com/@lwc/wire-service/-/wire-service-8.20.4.tgz#6196f0f9dc6f5b89b1207634d21af7d21836f48d" - integrity sha512-Go1AmFtW2Nq0Gz2CmnV/ph45jusc0PW9+K8XrIAMsQDxCK2ZlWTxa4LkPkL1mxYpLhM3WfKJGmLVeLFvlJfSeg== +"@lwc/wire-service@8.20.5": + version "8.20.5" + resolved "https://registry.yarnpkg.com/@lwc/wire-service/-/wire-service-8.20.5.tgz#4f3e360f727d4084e06ecaaa98da0dfde00fb856" + integrity sha512-6IL5Brm4quK0evXjl7OXtTr3ipQ3WRmXBYQTQaZk1x9d59HO/6q0P11KVEfyXcjBoa87XiwwXqI31kS0BNEIRQ== "@lwrjs/api@0.18.3": version "0.18.3" @@ -8738,29 +8738,29 @@ lunr@^2.3.9: resolved "https://registry.yarnpkg.com/lunr/-/lunr-2.3.9.tgz#18b123142832337dd6e964df1a5a7707b25d35e1" integrity sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow== -lwc@~8.20.4: - version "8.20.4" - resolved "https://registry.yarnpkg.com/lwc/-/lwc-8.20.4.tgz#fc019dd3cba9eadf694b03ffafef659ae670c8f6" - integrity sha512-KJm4jGsItbGic8INr+Y590CYZ1hBK0ofDEZy7sPTAWKXBaYZFkLGL+95F9IpY3FVo3LfV+iW3mAui5EgN+qYsw== - dependencies: - "@lwc/aria-reflection" "8.20.4" - "@lwc/babel-plugin-component" "8.20.4" - "@lwc/compiler" "8.20.4" - "@lwc/engine-core" "8.20.4" - "@lwc/engine-dom" "8.20.4" - "@lwc/engine-server" "8.20.4" - "@lwc/errors" "8.20.4" - "@lwc/features" "8.20.4" - "@lwc/module-resolver" "8.20.4" - "@lwc/rollup-plugin" "8.20.4" - "@lwc/shared" "8.20.4" - "@lwc/ssr-compiler" "8.20.4" - "@lwc/ssr-runtime" "8.20.4" - "@lwc/style-compiler" "8.20.4" - "@lwc/synthetic-shadow" "8.20.4" - "@lwc/template-compiler" "8.20.4" - "@lwc/types" "8.20.4" - "@lwc/wire-service" "8.20.4" +lwc@~8.20.5: + version "8.20.5" + resolved "https://registry.yarnpkg.com/lwc/-/lwc-8.20.5.tgz#ceccd2de07c3702ac519825383c68d3f4862dc30" + integrity sha512-vUUT3rTm8kInN6AfqR65lIytG+7XtkJuKaIhmqZONEcyp3aBlFN/U2UllMa0RcHsixsKB5BOwGkIWcgzPZK3Iw== + dependencies: + "@lwc/aria-reflection" "8.20.5" + "@lwc/babel-plugin-component" "8.20.5" + "@lwc/compiler" "8.20.5" + "@lwc/engine-core" "8.20.5" + "@lwc/engine-dom" "8.20.5" + "@lwc/engine-server" "8.20.5" + "@lwc/errors" "8.20.5" + "@lwc/features" "8.20.5" + "@lwc/module-resolver" "8.20.5" + "@lwc/rollup-plugin" "8.20.5" + "@lwc/shared" "8.20.5" + "@lwc/ssr-compiler" "8.20.5" + "@lwc/ssr-runtime" "8.20.5" + "@lwc/style-compiler" "8.20.5" + "@lwc/synthetic-shadow" "8.20.5" + "@lwc/template-compiler" "8.20.5" + "@lwc/types" "8.20.5" + "@lwc/wire-service" "8.20.5" magic-string@^0.25.3: version "0.25.9" From 2e70cb6e3b09b659b1b233e0a142b7e891066b1f Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Thu, 9 Oct 2025 19:26:58 -0400 Subject: [PATCH 04/15] fix: remove lightning-base-components dependency @W-19861266@ (#527) --- lwc.config.json | 6 +----- package.json | 1 - yarn.lock | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lwc.config.json b/lwc.config.json index b3760737..c02ade53 100644 --- a/lwc.config.json +++ b/lwc.config.json @@ -1,7 +1,3 @@ { - "modules": [ - { - "npm": "lightning-base-components" - } - ] + "modules": [] } diff --git a/package.json b/package.json index ac6a85ad..29f2b8c8 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "@salesforce/sf-plugins-core": "^11.2.4", "axios": "^1.11.0", "glob": "^10.4.5", - "lightning-base-components": "1.27.2-alpha", "lwc": "~8.20.5", "node-fetch": "^3.3.2", "open": "^10.2.0", diff --git a/yarn.lock b/yarn.lock index 7d1f1ee5..297c7917 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8482,11 +8482,6 @@ lie@~3.3.0: dependencies: immediate "~3.0.5" -lightning-base-components@1.27.2-alpha: - version "1.27.2-alpha" - resolved "https://registry.yarnpkg.com/lightning-base-components/-/lightning-base-components-1.27.2-alpha.tgz#a6cde01e2f271f54d7d6afc4df53d20cd987977d" - integrity sha512-YyxdAVEsECA2JqZnlsBxqPpBEdElfQa88qs5zY+eYHUdjZ/aE15OV0kjcoBB8o/46Z39jkyn+b1Aiy1wDZoqLw== - lilconfig@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.3.tgz#a1bcfd6257f9585bf5ae14ceeebb7b559025e4c4" From 74871c7b3f32f9f8e3f8afa46ab0b3123e213214 Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Thu, 9 Oct 2025 23:28:06 +0000 Subject: [PATCH 05/15] chore(release): 4.4.14 [skip ci] --- CHANGELOG.md | 6 ++++++ README.md | 6 +++--- package.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1adaa8b0..fd79c46f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [4.4.14](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.4.13...4.4.14) (2025-10-09) + +### Bug Fixes + +- remove lightning-base-components dependency @W-19861266@ ([#527](https://github.com/salesforcecli/plugin-lightning-dev/issues/527)) ([2e70cb6](https://github.com/salesforcecli/plugin-lightning-dev/commit/2e70cb6e3b09b659b1b233e0a142b7e891066b1f)) + ## [4.4.13](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.4.12...4.4.13) (2025-08-27) ### Bug Fixes diff --git a/README.md b/README.md index 06507777..1c7316fd 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.13/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.14/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -248,7 +248,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.13/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.14/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -304,6 +304,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.13/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.14/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index 29f2b8c8..f2dcb1a0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.4.13", + "version": "4.4.14", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { From 44d3fc1cbf594602c0bc663ab32ed26c53c10331 Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Sun, 12 Oct 2025 03:31:20 -0400 Subject: [PATCH 06/15] feat: vscode extension support @W-19820472 (#524) * chore: update task label and arguments in tasks.json for CLI plugin build * feat: add comprehensive cursor rules documentation for Salesforce CLI plugin * feat: enhance component preview functionality by generating and logging the full preview URL * feat: enhance LightningDevComponent to return json * feat: update command-snapshot.json to include new flags for Lightning Dev commands * chore(release): 4.4.1-alpha.0 [skip ci] * chore: upgrade LWC dependencies to version 13.0.31 * chore(release): 4.4.2-alpha.0 [skip ci] * fix: temp package json changes * fix: lock file * chore(release): 4.4.13-alpha.0 [skip ci] * feat: update local dev server URL handling for CODE_BUILDER_URI environment variable * refactor: change variable declaration for local dev server URL in LightningDevComponent * chore(release): 4.4.13-codebuilder.0 [skip ci] * chore(release): 4.4.13-codebuilder.1 [skip ci] * feat: enhance local dev server URL handling for Code Builder environment * chore(release): 4.4.13-codebuilder.2 [skip ci] * fix: code builder trusted origins * chore(release): 4.4.13-codebuilder.3 [skip ci] * feat: auto close lwc-dev-server window in code builder * chore(release): 4.4.13-codebuilder.4 [skip ci] * fix: code builder domains * chore(release): 4.4.13-codebuilder.5 [skip ci] * fix: new component creation * chore(release): 4.4.13-codebuilder.6 [skip ci] * fix: lockfile * fix: create new modules updates * chore(release): 4.4.14-codebuilder.0 [skip ci] * chore: remove old code --------- Co-authored-by: svc-cli-bot --- README.md | 11 ++- command-snapshot.json | 4 +- package.json | 8 +- src/commands/lightning/dev/component.ts | 122 ++++++++++++++++-------- src/shared/previewUtils.ts | 28 ++++++ yarn.lock | 60 ++++++------ 6 files changed, 154 insertions(+), 79 deletions(-) diff --git a/README.md b/README.md index 1c7316fd..742def5d 100644 --- a/README.md +++ b/README.md @@ -209,13 +209,14 @@ _See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/ ``` USAGE - $ sf lightning dev component -o [--json] [--flags-dir ] [-n ] [-c] + $ sf lightning dev component -o [--json] [--flags-dir ] [-n ] [--api-version ] [-c] FLAGS - -c, --client-select Launch component preview without selecting a component - -n, --name= Name of a component to preview. - -o, --target-org= (required) Username or alias of the target org. Not required if the `target-org` - configuration variable is already set. + -c, --client-select Launch component preview without selecting a component + -n, --name= Name of a component to preview. + -o, --target-org= (required) Username or alias of the target org. Not required if the `target-org` + configuration variable is already set. + --api-version= Override the api version used for api requests made by this command GLOBAL FLAGS --flags-dir= Import flag values from a directory. diff --git a/command-snapshot.json b/command-snapshot.json index aa16dcf4..26cc62d9 100644 --- a/command-snapshot.json +++ b/command-snapshot.json @@ -12,7 +12,7 @@ "command": "lightning:dev:component", "flagAliases": [], "flagChars": ["c", "n", "o"], - "flags": ["client-select", "flags-dir", "json", "name", "target-org"], + "flags": ["api-version", "client-select", "flags-dir", "json", "name", "target-org"], "plugin": "@salesforce/plugin-lightning-dev" }, { @@ -20,7 +20,7 @@ "command": "lightning:dev:site", "flagAliases": [], "flagChars": ["l", "n", "o"], - "flags": ["flags-dir", "get-latest", "guest", "name", "target-org", "ssr"], + "flags": ["flags-dir", "get-latest", "guest", "name", "ssr", "target-org"], "plugin": "@salesforce/plugin-lightning-dev" } ] diff --git a/package.json b/package.json index f2dcb1a0..e19d134a 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "dependencies": { "@inquirer/prompts": "^5.3.8", "@inquirer/select": "^2.4.7", - "@lwc/lwc-dev-server": "~13.1.2", - "@lwc/sfdc-lwc-compiler": "~13.1.2", + "@lwc/lwc-dev-server": "~13.1.5-alpha.3+007b30e", + "@lwc/sfdc-lwc-compiler": "~13.1.5-alpha.3+007b30e", "@lwrjs/api": "0.18.3", "@oclif/core": "^4.5.0", "@salesforce/core": "^8.21.2", @@ -237,7 +237,7 @@ ], "target": { "versionNumber": "65.0", - "matchingDevServerVersion": "~13.1.2" + "matchingDevServerVersion": "~13.1.5-alpha.3+007b30e" }, "versionToTagMappings": [ { @@ -257,7 +257,7 @@ "tagName": "prerelease" }, { - "versionNumber": "66.0", + "versionNumber": "65.0", "tagName": "next" } ] diff --git a/src/commands/lightning/dev/component.ts b/src/commands/lightning/dev/component.ts index 97a1fab4..0b40dd36 100644 --- a/src/commands/lightning/dev/component.ts +++ b/src/commands/lightning/dev/component.ts @@ -18,7 +18,15 @@ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-lightning-dev', 'lightning.dev.component'); const sharedMessages = Messages.loadMessages('@salesforce/plugin-lightning-dev', 'shared.utils'); -export default class LightningDevComponent extends SfCommand { +export type ComponentPreviewResult = { + instanceUrl: string; + ldpServerUrl: string; + ldpServerId: string; + componentName: string; + previewUrl: string; +}; + +export default class LightningDevComponent extends SfCommand { public static readonly summary = messages.getMessage('summary'); public static readonly description = messages.getMessage('description'); public static readonly examples = messages.getMessages('examples'); @@ -29,6 +37,7 @@ export default class LightningDevComponent extends SfCommand { char: 'n', requiredOrDefaulted: false, }), + 'api-version': Flags.orgApiVersion(), 'client-select': Flags.boolean({ summary: messages.getMessage('flags.client-select.summary'), char: 'c', @@ -37,7 +46,7 @@ export default class LightningDevComponent extends SfCommand { 'target-org': Flags.requiredOrg(), }; - public async run(): Promise { + public async run(): Promise { const { flags } = await this.parse(LightningDevComponent); const logger = await Logger.child(this.ctor.name); const project = await SfProject.resolve(); @@ -54,6 +63,7 @@ export default class LightningDevComponent extends SfCommand { let componentName = flags['name']; const clientSelect = flags['client-select']; const targetOrg = flags['target-org']; + const apiVersion = flags['api-version']; const { ldpServerId, ldpServerToken } = await PreviewUtils.initializePreviewConnection(targetOrg); @@ -62,44 +72,56 @@ export default class LightningDevComponent extends SfCommand { logger.debug(`Next available ports are http=${serverPorts.httpPort} , https=${serverPorts.httpsPort}`); logger.debug('Determining Local Dev Server url'); - const ldpServerUrl = PreviewUtils.generateWebSocketUrlForLocalDevServer(Platform.desktop, serverPorts, logger); + let ldpServerUrl; + + // In Code Builder, we cannot go to localhost - we need to use a proxy URI to get to the ldpServer + if (process.env.SF_CONTAINER_MODE && process.env.VSCODE_PROXY_URI) { + logger.debug('In Code Builder Mode - using proxy URI'); + ldpServerUrl = process.env.VSCODE_PROXY_URI.replace('https://', 'ws://').replace( + '{{port}}', + `${serverPorts.httpPort}` + ); + } else { + // Default behavior + ldpServerUrl = PreviewUtils.generateWebSocketUrlForLocalDevServer(Platform.desktop, serverPorts, logger); + } logger.debug(`Local Dev Server url is ${ldpServerUrl}`); - const namespacePaths = await ComponentUtils.getNamespacePaths(project); - const componentPaths = await ComponentUtils.getAllComponentPaths(namespacePaths); - if (!componentPaths) { - throw new Error(messages.getMessage('error.directory')); - } + if (!clientSelect) { + const namespacePaths = await ComponentUtils.getNamespacePaths(project); + const componentPaths = await ComponentUtils.getAllComponentPaths(namespacePaths); + if (!componentPaths) { + throw new Error(messages.getMessage('error.directory')); + } - const components = ( - await Promise.all( - componentPaths.map(async (componentPath) => { - let xml; - - try { - xml = await ComponentUtils.getComponentMetadata(componentPath); - } catch (err) { - this.warn(messages.getMessage('error.component-metadata', [componentPath])); - } - - // components must have meta xml to be previewed - if (!xml) { - return undefined; - } - - const name = path.basename(componentPath); - const label = ComponentUtils.componentNameToTitleCase(name); - - return { - name, - label: xml.LightningComponentBundle.masterLabel ?? label, - description: xml.LightningComponentBundle.description ?? '', - }; - }) - ) - ).filter((component) => !!component); + const components = ( + await Promise.all( + componentPaths.map(async (componentPath) => { + let xml; + + try { + xml = await ComponentUtils.getComponentMetadata(componentPath); + } catch (err) { + this.warn(messages.getMessage('error.component-metadata', [componentPath])); + } + + // components must have meta xml to be previewed + if (!xml) { + return undefined; + } + + const name = path.basename(componentPath); + const label = ComponentUtils.componentNameToTitleCase(name); + + return { + name, + label: xml.LightningComponentBundle.masterLabel ?? label, + description: xml.LightningComponentBundle.description ?? '', + }; + }) + ) + ).filter((component) => !!component); - if (!clientSelect) { if (componentName) { // validate that the component exists before launching the server const match = components.find( @@ -129,7 +151,31 @@ export default class LightningDevComponent extends SfCommand { targetOrgArg ); - // Open the browser and navigate to the right page - await this.config.runCommand('org:open', launchArguments); + // Construct and log the full URL that will be opened + const connection = targetOrg.getConnection(apiVersion); + + const previewUrl = PreviewUtils.generateComponentPreviewUrl( + connection.instanceUrl, + ldpServerUrl, + ldpServerId, + componentName, + false + ); + + // Prepare the result for JSON output + const result: ComponentPreviewResult = { + instanceUrl: connection.instanceUrl, + ldpServerUrl, + ldpServerId, + componentName: componentName ?? '', + previewUrl, + }; + + // Open the browser and navigate to the right page (unless OPEN_BROWSER is set to true) + if (process.env.OPEN_BROWSER !== 'false') { + await this.config.runCommand('org:open', launchArguments); + } + + return result; } } diff --git a/src/shared/previewUtils.ts b/src/shared/previewUtils.ts index 64ff30a1..ff28e262 100644 --- a/src/shared/previewUtils.ts +++ b/src/shared/previewUtils.ts @@ -246,6 +246,34 @@ export class PreviewUtils { return launchArguments; } + /** + * Generates the full URL for a component preview. + * + * @param instanceUrl The URL of the Salesforce instance + * @param ldpServerUrl The URL for the local dev server + * @param ldpServerId Record ID for the identity token + * @param componentName The name of the component to preview + * @param encodePath Whether to encode the path + * @returns The full URL for the component preview + */ + public static generateComponentPreviewUrl( + instanceUrl: string, + ldpServerUrl: string, + ldpServerId: string, + componentName?: string, + encodePath = false + ): string { + let url = `${instanceUrl}/lwr/application/e/devpreview/ai/${ + encodePath ? encodeURIComponent('localdev%2Fpreview') : 'localdev%2Fpreview' + }?ldpServerUrl=${ldpServerUrl}&ldpServerId=${ldpServerId}`; + if (componentName) { + // TODO: support other namespaces + url += `&specifier=c/${componentName}`; + } + + return url; + } + /** * Generates the proper set of arguments to be used for launching a mobile app with custom launch arguments. * diff --git a/yarn.lock b/yarn.lock index 297c7917..abdc62df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2200,10 +2200,10 @@ "@lwc/style-compiler" "8.20.5" "@lwc/template-compiler" "8.20.5" -"@lwc/dev-server-plugin-lex@13.1.3": - version "13.1.3" - resolved "https://registry.yarnpkg.com/@lwc/dev-server-plugin-lex/-/dev-server-plugin-lex-13.1.3.tgz#15e7fc1521da8d6116f915becc2aac85c81fc686" - integrity sha512-m2LNWrDN7ECerNTLq4yFfDbJo0W+LQpBKv7lNE665fy22DPyRdZiQHJHGgiN9nwNhYyCaBicA5dlGrrYIpDciQ== +"@lwc/dev-server-plugin-lex@13.1.5-alpha.3+007b30e": + version "13.1.5-alpha.3" + resolved "https://registry.yarnpkg.com/@lwc/dev-server-plugin-lex/-/dev-server-plugin-lex-13.1.5-alpha.3.tgz#b7d25a135f0f66bf4c39c5d973a7ed0d62165b87" + integrity sha512-9+SvsnahnOyflWpdHGBLht0Z14TEnV0xP0U6D/FS2WTNOMzHMEqWsIqmCBZW2TBFpd2Fa4oHTjBtIyvaxgucew== dependencies: magic-string "~0.30.17" @@ -2253,18 +2253,18 @@ dependencies: "@lwc/shared" "8.20.5" -"@lwc/lwc-dev-server-types@13.1.3": - version "13.1.3" - resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server-types/-/lwc-dev-server-types-13.1.3.tgz#5cef8b2bce0f0783cb5f69b8a7327709a07f3844" - integrity sha512-h04TfJij5t+ThbAURMt1K2PJBNpFSbSYwbrrqLrqH0s8IrucnlX2vorgDSc30f7Tqnrng9lHMhunk4RuEEsH/Q== +"@lwc/lwc-dev-server-types@13.1.5-alpha.3+007b30e": + version "13.1.5-alpha.3" + resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server-types/-/lwc-dev-server-types-13.1.5-alpha.3.tgz#7f606416e9a85e4ecc799924c4b0b167603c3709" + integrity sha512-bLh0CR77lX9yK/Ttl56ZKqxW13jszaUjVdN7ayidwFRRxJ7ZICr0FaOu3PdX89NFLnyKj81fesSgoXUA0/rsKQ== -"@lwc/lwc-dev-server@~13.1.2": - version "13.1.3" - resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server/-/lwc-dev-server-13.1.3.tgz#2bf57c668d6cb5cfb40953a100346f6b832f2c06" - integrity sha512-XfS+ts2GXDwzpE19pxi6MTk7j4ua/96jBeXCCGNF9Yf5UddDGHKsbyXYhEthvIlFTdhVAjb0rg2AvlChygLUlQ== +"@lwc/lwc-dev-server@~13.1.5-alpha.3+007b30e": + version "13.1.5-alpha.3" + resolved "https://registry.yarnpkg.com/@lwc/lwc-dev-server/-/lwc-dev-server-13.1.5-alpha.3.tgz#899bdf891c4e6a11d287158fd399a1fb568fd436" + integrity sha512-7HZenCHMItmhLcz5uYDee7hKv0NneQ4vxuEUDCsI7EMOLKSg7ejB95JfcWvB8OnnAo3WiZpDCdz5RdPvA5VmbQ== dependencies: - "@lwc/lwc-dev-server-types" "13.1.3" - "@lwc/sfdc-lwc-compiler" "13.1.3" + "@lwc/lwc-dev-server-types" "13.1.5-alpha.3+007b30e" + "@lwc/sfdc-lwc-compiler" "13.1.5-alpha.3+007b30e" chalk "~5.4.1" chokidar "~3.6.0" commander "~10.0.0" @@ -2272,15 +2272,15 @@ glob "^10.4.5" ws "^8.18.2" -"@lwc/metadata@13.1.3": - version "13.1.3" - resolved "https://registry.yarnpkg.com/@lwc/metadata/-/metadata-13.1.3.tgz#30858424ae13ecf2106f07bfc10100e718e4f936" - integrity sha512-odev/R+AIYOHmU9ll9zNgbZXnausqC7F/+QjSk1MrT/TNRog4g46g3YNk0QAx33L2cyoIoffIVWFazyyTWQ3fA== +"@lwc/metadata@13.1.5-alpha.3+007b30e": + version "13.1.5-alpha.3" + resolved "https://registry.yarnpkg.com/@lwc/metadata/-/metadata-13.1.5-alpha.3.tgz#fad15b11c1798c7a55f56e8a448a4617fd1000d7" + integrity sha512-jc/pFN15CpmBOnTHzW2wvINaL+/6l6OwY3KDkorBI6th1UlN6bQFJcoWAjeIxmcbxsqn+qAgxjpOHno+QKkOWA== dependencies: "@babel/parser" "~7.27.5" "@babel/traverse" "~7.27.4" "@babel/types" "~7.27.6" - "@lwc/sfdc-compiler-utils" "13.1.3" + "@lwc/sfdc-compiler-utils" "13.1.5-alpha.3+007b30e" postcss "~8.5.5" postcss-selector-parser "~6.1.2" postcss-value-parser "~4.2.0" @@ -2302,15 +2302,15 @@ "@lwc/shared" "8.20.5" "@rollup/pluginutils" "~5.2.0" -"@lwc/sfdc-compiler-utils@13.1.3": - version "13.1.3" - resolved "https://registry.yarnpkg.com/@lwc/sfdc-compiler-utils/-/sfdc-compiler-utils-13.1.3.tgz#5e85b10e7aebd4b34e59d98551a5fd4a74533ea9" - integrity sha512-VoS4Ggbqt5byK8VKI4KSpmh9rhoQH58vQEbfm+B7vhqL0DQR2/OvUXhr5GkATq6V3bcOfjdSmOxlPz+9gZAvZA== +"@lwc/sfdc-compiler-utils@13.1.5-alpha.3+007b30e": + version "13.1.5-alpha.3" + resolved "https://registry.yarnpkg.com/@lwc/sfdc-compiler-utils/-/sfdc-compiler-utils-13.1.5-alpha.3.tgz#8ac056199662ce14d4b7caa9f639685c555fca36" + integrity sha512-iENBGQ2X/lc0x06hT3u2KM+LdHIbVInHKiyDveQU/C+mA5EHU2tQfs1pDlNyUH9gHqzirOtUdiwu8Xtpo45GaA== -"@lwc/sfdc-lwc-compiler@13.1.3", "@lwc/sfdc-lwc-compiler@~13.1.2": - version "13.1.3" - resolved "https://registry.yarnpkg.com/@lwc/sfdc-lwc-compiler/-/sfdc-lwc-compiler-13.1.3.tgz#9f111ada602bd594179b4d8a3adad106ca5eed4f" - integrity sha512-rzVZ/rXIyAeEcMwTPAfNvzNLMoBve0YcvGFjx8wbODQ68Bwzbtyne23HPO28SST1qnnSQ+obYX4kaCvoglQ3jA== +"@lwc/sfdc-lwc-compiler@13.1.5-alpha.3+007b30e", "@lwc/sfdc-lwc-compiler@~13.1.5-alpha.3+007b30e": + version "13.1.5-alpha.3" + resolved "https://registry.yarnpkg.com/@lwc/sfdc-lwc-compiler/-/sfdc-lwc-compiler-13.1.5-alpha.3.tgz#70a5ca267d7391b62fac28ac687fe5e67ebfd4e0" + integrity sha512-S8tmFyAoiY8CE9VpSnuJmpHhFb1UGzlTro2ryIkQMpy03nSSdlP47r2IyJgsa5WYJxU7gf3bquot5mElGlZjMA== dependencies: "@babel/core" "7.27.4" "@babel/parser" "7.27.5" @@ -2319,11 +2319,11 @@ "@babel/traverse" "7.27.4" "@babel/types" "7.27.6" "@komaci/esm-generator" "258.0.0" - "@lwc/dev-server-plugin-lex" "13.1.3" + "@lwc/dev-server-plugin-lex" "13.1.5-alpha.3+007b30e" "@lwc/eslint-plugin-lwc" "3.0.0-beta.2" "@lwc/eslint-plugin-lwc-platform" "6.0.0-beta.7" - "@lwc/metadata" "13.1.3" - "@lwc/sfdc-compiler-utils" "13.1.3" + "@lwc/metadata" "13.1.5-alpha.3+007b30e" + "@lwc/sfdc-compiler-utils" "13.1.5-alpha.3+007b30e" "@rollup/plugin-babel" "^6.0.4" "@rollup/plugin-replace" "^6.0.2" "@rollup/wasm-node" "4.10.0" From e3e0d890fdd8e18d942e19e8444afaa53f699578 Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Sun, 12 Oct 2025 07:40:37 +0000 Subject: [PATCH 07/15] chore(release): 4.5.0 [skip ci] --- CHANGELOG.md | 6 ++++++ README.md | 6 +++--- package.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd79c46f..48dbbead 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# [4.5.0](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.4.14...4.5.0) (2025-10-12) + +### Features + +- vscode extension support @W-19820472 ([#524](https://github.com/salesforcecli/plugin-lightning-dev/issues/524)) ([44d3fc1](https://github.com/salesforcecli/plugin-lightning-dev/commit/44d3fc1cbf594602c0bc663ab32ed26c53c10331)) + ## [4.4.14](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.4.13...4.4.14) (2025-10-09) ### Bug Fixes diff --git a/README.md b/README.md index 742def5d..5910815f 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.14/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.0/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -249,7 +249,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.14/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.0/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -305,6 +305,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.4.14/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.0/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index e19d134a..d9659387 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.4.14", + "version": "4.5.0", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { From 2959c81513c408c60284266b86c5b6922306bb7e Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Sun, 12 Oct 2025 04:28:46 -0400 Subject: [PATCH 08/15] fix: promote version 4 to latest tag @W-19861266@ (#532) chore: promote version 4 to latest tag @W-19861266@ --- .github/workflows/onRelease.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index 3bc44ace..752ff349 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -48,7 +48,7 @@ jobs: #ctc: true sign: true # At CLCO, the new patch branch's version will be released as 'prerelease'. After R2b, delete the logic below for 'latest' and update 'prerelease' candidate to 'latest' - tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '3' && 'latest') || (needs.getMajorVersion.outputs.major == '4' && 'prerelease') || 'next' }} + tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '4' && 'latest') || 'next' }} githubTag: ${{ github.event.release.tag_name || inputs.tag }} secrets: inherit From 75eaad8e2760e3df6cda3ff08ae81de33c06c2bc Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Sun, 12 Oct 2025 08:29:51 +0000 Subject: [PATCH 09/15] chore(release): 4.5.1 [skip ci] --- CHANGELOG.md | 6 ++++++ README.md | 6 +++--- package.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48dbbead..e1318046 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [4.5.1](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.5.0...4.5.1) (2025-10-12) + +### Bug Fixes + +- promote version 4 to latest tag @W-19861266@ ([#532](https://github.com/salesforcecli/plugin-lightning-dev/issues/532)) ([2959c81](https://github.com/salesforcecli/plugin-lightning-dev/commit/2959c81513c408c60284266b86c5b6922306bb7e)) + # [4.5.0](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.4.14...4.5.0) (2025-10-12) ### Features diff --git a/README.md b/README.md index 5910815f..4627ff86 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.0/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -249,7 +249,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.0/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -305,6 +305,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.0/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index d9659387..fa113e54 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.5.0", + "version": "4.5.1", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { From 93da5054d7ab7f0bd9c54a1df51de95e8bf2e11e Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Sun, 12 Oct 2025 18:30:38 -0400 Subject: [PATCH 10/15] fix: auto enable local dev for Agentforce Vibes @W-19250167 (#533) * fix: strip trailing slashes from instance URL in LightningDevComponent * chore(release): 4.5.2-alpha.0 [skip ci] * fix: auto enable local dev * fix: no tests --------- Co-authored-by: svc-cli-bot --- README.md | 6 +- package.json | 2 +- src/commands/lightning/dev/component.ts | 17 +- src/shared/metaUtils.ts | 230 ++++++++++++++++++++++++ 4 files changed, 249 insertions(+), 6 deletions(-) create mode 100644 src/shared/metaUtils.ts diff --git a/README.md b/README.md index 4627ff86..2e832c19 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -249,7 +249,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -305,6 +305,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index fa113e54..eb70cfda 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.5.1", + "version": "4.5.2-alpha.0", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { diff --git a/src/commands/lightning/dev/component.ts b/src/commands/lightning/dev/component.ts index 0b40dd36..1aca172e 100644 --- a/src/commands/lightning/dev/component.ts +++ b/src/commands/lightning/dev/component.ts @@ -13,6 +13,7 @@ import { ComponentUtils } from '../../../shared/componentUtils.js'; import { PromptUtils } from '../../../shared/promptUtils.js'; import { PreviewUtils } from '../../../shared/previewUtils.js'; import { startLWCServer } from '../../../lwc-dev-server/index.js'; +import { MetaUtils } from '../../../shared/metaUtils.js'; Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-lightning-dev', 'lightning.dev.component'); @@ -65,6 +66,15 @@ export default class LightningDevComponent extends SfCommand; +}; + +/** + * Utility class for managing Salesforce metadata settings related to Lightning Development. + */ +export class MetaUtils { + private static logger = Logger.childFromRoot('metaUtils'); + + /** + * Retrieves the Lightning Experience Settings metadata from the org. + * + * @param connection the connection to the org + * @returns LightningExperienceSettingsMetadata object containing the settings + * @throws Error if unable to retrieve the metadata + */ + public static async getLightningExperienceSettings( + connection: Connection + ): Promise { + this.logger.debug('Retrieving Lightning Experience Settings metadata'); + + const metadata = await connection.metadata.read('LightningExperienceSettings', 'enableLightningPreviewPref'); + + if (!metadata) { + throw new Error('Unable to retrieve Lightning Experience Settings metadata.'); + } + + if (Array.isArray(metadata)) { + if (metadata.length === 0) { + throw new Error('Lightning Experience Settings metadata response was empty.'); + } + return metadata[0] as LightningExperienceSettingsMetadata; + } + + return metadata as LightningExperienceSettingsMetadata; + } + + /** + * Checks if Lightning Preview (Local Dev) is enabled for the org. + * + * @param connection the connection to the org + * @returns boolean indicating whether Lightning Preview is enabled + */ + public static async isLightningPreviewEnabled(connection: Connection): Promise { + try { + const settings = await this.getLightningExperienceSettings(connection); + const flagValue = settings.enableLightningPreviewPref ?? 'false'; + const enabled = String(flagValue).toLowerCase().trim() === 'true'; + this.logger.debug(`Lightning Preview enabled: ${enabled}`); + return enabled; + } catch (error) { + this.logger.warn('Error checking Lightning Preview status, assuming disabled:', error); + return false; + } + } + + /** + * Enables or disables Lightning Preview (Local Dev) for the org by updating the metadata. + * + * @param connection the connection to the org + * @param enable boolean indicating whether to enable (true) or disable (false) Lightning Preview + * @throws Error if the metadata update fails + */ + public static async setLightningPreviewEnabled(connection: Connection, enable: boolean): Promise { + this.logger.debug(`Setting Lightning Preview enabled to: ${enable}`); + + const updateResult = await connection.metadata.update('LightningExperienceSettings', { + fullName: 'enableLightningPreviewPref', + enableLightningPreviewPref: enable ? 'true' : 'false', + }); + + const results = Array.isArray(updateResult) ? updateResult : [updateResult]; + const typedResults = results as MetadataUpdateResult[]; + const errors = typedResults.filter((result) => !result.success); + + if (errors.length > 0) { + const message = errors + .flatMap((result) => (Array.isArray(result.errors) ? result.errors : result.errors ? [result.errors] : [])) + .filter((error): error is { message: string } => Boolean(error)) + .map((error) => error.message) + .join(' '); + + throw new Error(message || 'Failed to update Lightning Preview setting.'); + } + + this.logger.debug('Successfully updated Lightning Preview setting'); + } + + /** + * Retrieves the My Domain Settings metadata from the org. + * + * @param connection the connection to the org + * @returns MyDomainSettingsMetadata object containing the settings + * @throws Error if unable to retrieve the metadata + */ + public static async getMyDomainSettings(connection: Connection): Promise { + this.logger.debug('Retrieving My Domain Settings metadata'); + + const metadata = await connection.metadata.read('MyDomainSettings', 'MyDomain'); + + if (!metadata) { + throw new Error('Unable to retrieve My Domain settings metadata.'); + } + + if (Array.isArray(metadata)) { + if (metadata.length === 0) { + throw new Error('My Domain settings metadata response was empty.'); + } + return metadata[0] as MyDomainSettingsMetadata; + } + + return metadata as MyDomainSettingsMetadata; + } + + /** + * Checks if first-party cookies are required for the org. + * + * @param connection the connection to the org + * @returns boolean indicating whether first-party cookies are required + */ + public static async isFirstPartyCookieRequired(connection: Connection): Promise { + try { + const settings = await this.getMyDomainSettings(connection); + const flagValue = settings.isFirstPartyCookieUseRequired ?? 'false'; + const required = String(flagValue).toLowerCase().trim() === 'true'; + this.logger.debug(`First-party cookie required: ${required}`); + return required; + } catch (error) { + this.logger.warn('Error checking first-party cookie requirement, assuming not required:', error); + return false; + } + } + + /** + * Updates the My Domain setting that controls whether first-party cookies are required. + * + * @param connection the connection to the org + * @param requireFirstPartyCookies boolean indicating whether to require first-party cookies + * @throws Error if the metadata update fails + */ + public static async setMyDomainFirstPartyCookieRequirement( + connection: Connection, + requireFirstPartyCookies: boolean + ): Promise { + this.logger.debug(`Setting first-party cookie requirement to: ${requireFirstPartyCookies}`); + + const updateResult = await connection.metadata.update('MyDomainSettings', { + fullName: 'MyDomain', + isFirstPartyCookieUseRequired: requireFirstPartyCookies ? 'true' : 'false', + }); + + const results = Array.isArray(updateResult) ? updateResult : [updateResult]; + const typedResults = results as MetadataUpdateResult[]; + const errors = typedResults.filter((result) => !result.success); + + if (errors.length > 0) { + const message = errors + .flatMap((result) => (Array.isArray(result.errors) ? result.errors : result.errors ? [result.errors] : [])) + .filter((error): error is { message: string } => Boolean(error)) + .map((error) => error.message) + .join(' '); + + throw new Error(message || 'Failed to update My Domain first-party cookie requirement.'); + } + + this.logger.debug('Successfully updated first-party cookie requirement'); + } + + /** + * Ensures Lightning Preview is enabled for the org. If it's not enabled, this method will enable it. + * + * @param connection the connection to the org + * @returns boolean indicating whether Lightning Preview was already enabled (true) or had to be enabled (false) + */ + public static async ensureLightningPreviewEnabled(connection: Connection): Promise { + const isEnabled = await this.isLightningPreviewEnabled(connection); + + if (!isEnabled) { + this.logger.info('Lightning Preview is not enabled. Enabling it now...'); + await this.setLightningPreviewEnabled(connection, true); + return false; + } + + this.logger.debug('Lightning Preview is already enabled'); + return true; + } + + /** + * Ensures first-party cookies are not required for the org. If they are required, this method will disable the requirement. + * + * @param connection the connection to the org + * @returns boolean indicating whether first-party cookies were already not required (true) or had to be disabled (false) + */ + public static async ensureFirstPartyCookiesNotRequired(connection: Connection): Promise { + const isRequired = await this.isFirstPartyCookieRequired(connection); + + if (isRequired) { + this.logger.info('First-party cookies are required. Disabling requirement...'); + await this.setMyDomainFirstPartyCookieRequirement(connection, false); + return false; + } + + this.logger.debug('First-party cookies are not required'); + return true; + } +} From 495cdb7d7760f83d27cc1a79a1c865da09374702 Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Sun, 12 Oct 2025 22:34:30 +0000 Subject: [PATCH 11/15] chore(release): 4.5.2-alpha.1 [skip ci] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eb70cfda..e6b41643 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.5.2-alpha.0", + "version": "4.5.2-alpha.1", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { From 02e1bbdfae33cfa955fc4b92a41387f756316855 Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Sun, 12 Oct 2025 15:42:25 -0700 Subject: [PATCH 12/15] fix: versions --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2e832c19..4627ff86 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -249,7 +249,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -305,6 +305,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2-alpha.0/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index e6b41643..fa113e54 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.5.2-alpha.1", + "version": "4.5.1", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { From db7354b0fa5c423cd85c217d74f69ba93499b4ea Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Sun, 12 Oct 2025 22:44:18 +0000 Subject: [PATCH 13/15] chore(release): 4.5.2 [skip ci] --- CHANGELOG.md | 12 ++++++++++++ README.md | 6 +++--- package.json | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1318046..bee8bee4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## [4.5.2](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.5.2-alpha.1...4.5.2) (2025-10-12) + +### Bug Fixes + +- versions ([02e1bbd](https://github.com/salesforcecli/plugin-lightning-dev/commit/02e1bbdfae33cfa955fc4b92a41387f756316855)) + +## [4.5.2-alpha.1](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.5.1...4.5.2-alpha.1) (2025-10-12) + +### Bug Fixes + +- auto enable local dev for Agentforce Vibes @W-19250167 ([#533](https://github.com/salesforcecli/plugin-lightning-dev/issues/533)) ([93da505](https://github.com/salesforcecli/plugin-lightning-dev/commit/93da5054d7ab7f0bd9c54a1df51de95e8bf2e11e)) + ## [4.5.1](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.5.0...4.5.1) (2025-10-12) ### Bug Fixes diff --git a/README.md b/README.md index 4627ff86..71432133 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -249,7 +249,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -305,6 +305,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.1/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index fa113e54..1d626ff1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.5.1", + "version": "4.5.2", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { From 9338a24a5441467fec0a20a5970a6a1a437583aa Mon Sep 17 00:00:00 2001 From: Nicolas Kruk Date: Mon, 8 Dec 2025 12:12:01 -0500 Subject: [PATCH 14/15] fix: preview URL @W-20474734 (#576) * fix: simplify component preview URL generation in PreviewUtils * fix: streamline component preview URL generation in LightningDevComponent --- src/commands/lightning/dev/component.ts | 8 +------- src/shared/previewUtils.ts | 12 +++--------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/commands/lightning/dev/component.ts b/src/commands/lightning/dev/component.ts index 1aca172e..87458464 100644 --- a/src/commands/lightning/dev/component.ts +++ b/src/commands/lightning/dev/component.ts @@ -167,13 +167,7 @@ export default class LightningDevComponent extends SfCommand Date: Mon, 8 Dec 2025 17:12:59 +0000 Subject: [PATCH 15/15] chore(release): 4.5.3 [skip ci] --- CHANGELOG.md | 6 ++++++ README.md | 6 +++--- package.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bee8bee4..05c87341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [4.5.3](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.5.2...4.5.3) (2025-12-08) + +### Bug Fixes + +- preview URL @W-20474734 ([#576](https://github.com/salesforcecli/plugin-lightning-dev/issues/576)) ([9338a24](https://github.com/salesforcecli/plugin-lightning-dev/commit/9338a24a5441467fec0a20a5970a6a1a437583aa)) + ## [4.5.2](https://github.com/salesforcecli/plugin-lightning-dev/compare/4.5.2-alpha.1...4.5.2) (2025-10-12) ### Bug Fixes diff --git a/README.md b/README.md index 71432133..99fdde4f 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ EXAMPLES $ sf lightning dev app --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max" ``` -_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2/src/commands/lightning/dev/app.ts)_ +_See code: [src/commands/lightning/dev/app.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.3/src/commands/lightning/dev/app.ts)_ ## `sf lightning dev component` @@ -249,7 +249,7 @@ EXAMPLES $ sf lightning dev component --name myComponent ``` -_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2/src/commands/lightning/dev/component.ts)_ +_See code: [src/commands/lightning/dev/component.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.3/src/commands/lightning/dev/component.ts)_ ## `sf lightning dev site` @@ -305,6 +305,6 @@ EXAMPLES $ sf lightning dev site --name "Partner Central" --target-org myOrg --get-latest ``` -_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.2/src/commands/lightning/dev/site.ts)_ +_See code: [src/commands/lightning/dev/site.ts](https://github.com/salesforcecli/plugin-lightning-dev/blob/4.5.3/src/commands/lightning/dev/site.ts)_ diff --git a/package.json b/package.json index 1d626ff1..28124056 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@salesforce/plugin-lightning-dev", "description": "Lightning development tools for LEX, Mobile, and Experience Sites", - "version": "4.5.2", + "version": "4.5.3", "author": "Salesforce", "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": {