Skip to content

Commit c2a8c07

Browse files
committed
Merge remote-tracking branch 'origin/master' into a-chabot/private-methods-transform
Made-with: Cursor
2 parents cb1870d + 3b87d8c commit c2a8c07

File tree

48 files changed

+1058
-1112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1058
-1112
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ updates:
99
directory: '/' # Location of package manifests
1010
schedule:
1111
interval: 'weekly'
12-
labels:
13-
- 'USER STORY'
1412
ignore:
1513
# As a library, we intentionally avoid updating TypeScript and @types/node so that we
1614
# don't accidentally use features from a version newer than our downstream users have installed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Label Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
label:
9+
if: github.actor == 'dependabot[bot]'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
steps:
14+
- name: Add label if missing
15+
uses: actions/github-script@v7
16+
with:
17+
script: |
18+
const label = 'USER STORY';
19+
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
issue_number: context.issue.number,
23+
});
24+
if (!labels.some(l => l.name === label)) {
25+
await github.rest.issues.addLabels({
26+
owner: context.repo.owner,
27+
repo: context.repo.repo,
28+
issue_number: context.issue.number,
29+
labels: [label],
30+
});
31+
}

.github/workflows/release.yml

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ permissions:
2828
jobs:
2929
release:
3030
# Allow only on master, spring*, summer*, winter*;
31-
if: ${{ github.repository_owner == 'salesforce' && (github.ref_name == 'master' || startsWith(github.ref_name, 'spring') || startsWith(github.ref_name, 'summer') || startsWith(github.ref_name, 'winter')) }}
31+
if: ${{ github.repository_owner == 'salesforce' }}
3232
name: Release LWC - ${{ inputs.release_version }} ${{ inputs.bump }}
3333
environment: release
3434
runs-on: ubuntu-latest
@@ -44,8 +44,23 @@ jobs:
4444
exit 1
4545
fi
4646
fi
47-
echo "Resolved input: '$RELEASE_VERSION'"
47+
48+
if [ "$RELEASE_VERSION" = prerelease ]; then
49+
TAG=canary
50+
else
51+
case "$GITHUB_REF_NAME" in
52+
master) TAG=latest;;
53+
winter*) TAG="$GITHUB_REF_NAME";;
54+
spring*) TAG="$GITHUB_REF_NAME";;
55+
summer*) TAG="$GITHUB_REF_NAME";;
56+
*) echo "Could not determine tag for releasing $GITHUB_REF_NAME as v$NEW_VERSION." && exit 1;;
57+
esac
58+
fi
59+
60+
echo "Resolved input: $RELEASE_VERSION"
4861
echo "resolved=$RELEASE_VERSION" >> "$GITHUB_OUTPUT"
62+
echo "Resolved tag: $TAG"
63+
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
4964
5065
- name: Checkout
5166
uses: actions/checkout@v5
@@ -66,42 +81,38 @@ jobs:
6681

6782
- name: Update LWC version
6883
id: update_version
84+
env:
85+
VERSION_INPUT: ${{ steps.resolve_input.outputs.resolved }}
6986
run: |
7087
71-
node ./scripts/release/version.js '${{ steps.resolve_input.outputs.resolved }}'
88+
node ./scripts/release/version.js "$VERSION_INPUT"
7289
RESOLVED_VERSION="$(jq -r .version package.json)"
7390
echo "New version: $RESOLVED_VERSION"
7491
echo "new_version=$RESOLVED_VERSION" >> "$GITHUB_OUTPUT"
7592
93+
- name: Build
94+
run: yarn build
95+
7696
- name: Set git identity (Actions bot)
97+
if: ${{ steps.resolve_input.outputs.resolved != 'prerelease' }}
7798
run: |
7899
git config user.name "github-actions[bot]"
79100
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
80101
81102
- name: Commit & push
103+
if: ${{ steps.resolve_input.outputs.resolved != 'prerelease' }}
82104
uses: actions-js/push@v1.4
83105
with:
84106
github_token: ${{ secrets.WORKFLOW_PAT }}
85107
branch: ${{ github.ref_name }}
86108
message: 'chore: release v${{ steps.update_version.outputs.new_version }}'
87109

88-
- name: Build
89-
run: yarn build
90-
91-
- name: Tag and create GitHub release
92-
env:
93-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95-
run: |
96-
VERSION='${{ steps.update_version.outputs.new_version }}'
97-
git tag -a "v$VERSION" -m "Release v$VERSION"
98-
git push origin tag "v$VERSION"
99-
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
100-
101110
- name: Publish to npm
102111
env:
112+
NEW_VERSION: ${{ steps.update_version.outputs.new_version }}
103113
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104114
NPM_CONFIG_ALWAYS_AUTH: 'true'
115+
TAG: ${{ steps.resolve_input.outputs.tag }}
105116
run: |
106117
# Force both npm and yarn to use npmjs and pick up the token
107118
yarn config set registry https://registry.npmjs.org
@@ -112,5 +123,16 @@ jobs:
112123
echo "yarn registry: $(yarn config get registry)"
113124
echo "npm registry: $(npm config get registry)"
114125
115-
TAG=$([ "$GITHUB_REF_NAME" = "master" ] && echo latest || echo "$GITHUB_REF_NAME")
126+
echo "Publishing $GITHUB_REF_NAME as v$NEW_VERSION using tag $TAG."
116127
yarn nx release publish --yes --tag "$TAG"
128+
129+
- name: Tag and create GitHub release
130+
if: ${{ steps.resolve_input.outputs.resolved != 'prerelease' }}
131+
env:
132+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134+
VERSION: ${{ steps.update_version.outputs.new_version }}
135+
run: |
136+
git tag -a "v$VERSION" -m "Release v$VERSION"
137+
git push origin tag "v$VERSION"
138+
gh release create "v$VERSION" --title "v$VERSION" --generate-notes

.nucleus.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.strata.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
global:
2+
email-reply-to: raptorteam@salesforce.com
3+
preprocessor-tag: jenkins-sfci-sfci-managed-preprocessor-PR-6322-40-itest
4+
5+
stages:
6+
build:
7+
- npm-setup:
8+
yarn-modern: true
9+
- step:
10+
name: yarn-build
11+
image: docker.repo.local.sfdc.net/sfci/docker-images/sfdc_rhel9_nodejs20/sfdc_rhel9_nodejs20_build:latest
12+
commands:
13+
- yarn install
14+
- yarn build
15+
- yarn test
16+
integration-test:
17+
- downstream-dependency:
18+
downstream-repos:
19+
- repo-url: https://github.com/salesforce-experience-platform-emu/lwc-platform
20+
branches:
21+
- master
22+
packages-to-test:
23+
npm:
24+
- '@lwc/aria-reflection'
25+
- '@lwc/babel-plugin-component'
26+
- '@lwc/compiler'
27+
- '@lwc/engine-core'
28+
- '@lwc/engine-dom'
29+
- '@lwc/errors'
30+
- '@lwc/features'
31+
- '@lwc/module-resolver'
32+
- '@lwc/rollup-plugin'
33+
- '@lwc/shared'
34+
- '@lwc/signals'
35+
- '@lwc/ssr-client-utils'
36+
- '@lwc/ssr-compiler'
37+
- '@lwc/ssr-runtime'
38+
- '@lwc/style-compiler'
39+
- '@lwc/synthetic-shadow'
40+
- '@lwc/template-compiler'
41+
- '@lwc/types'
42+
- '@lwc/wire-service'

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lwc-monorepo",
3-
"version": "9.0.1",
3+
"version": "9.0.3",
44
"private": true,
55
"description": "Lightning Web Components",
66
"repository": {
@@ -36,45 +36,45 @@
3636
"release:publish:canary": "nx release publish --registry https://registry.npmjs.org --tag canary"
3737
},
3838
"devDependencies": {
39-
"@commitlint/cli": "^20.4.1",
40-
"@eslint/js": "9.39.2",
39+
"@commitlint/cli": "^20.4.2",
40+
"@eslint/js": "10.0.1",
4141
"@lwc/eslint-plugin-lwc-internal": "link:./scripts/eslint-plugin",
4242
"@lwc/test-utils-lwc-internals": "link:./scripts/test-utils",
43-
"@nx/js": "22.4.4",
43+
"@nx/js": "22.5.3",
4444
"@rollup/plugin-commonjs": "^29.0.0",
4545
"@rollup/plugin-inject": "^5.0.5",
4646
"@rollup/plugin-node-resolve": "^16.0.3",
4747
"@rollup/plugin-replace": "^6.0.3",
4848
"@rollup/plugin-typescript": "^12.3.0",
4949
"@swc-node/register": "~1.11.1",
50-
"@swc/core": "~1.15.11",
51-
"@swc/helpers": "~0.5.18",
50+
"@swc/core": "~1.15.18",
51+
"@swc/helpers": "~0.5.19",
5252
"@types/babel__core": "^7.20.5",
5353
"@types/node": "^22.19.5",
5454
"@vitest/coverage-v8": "4.0.18",
55-
"@vitest/eslint-plugin": "1.6.6",
55+
"@vitest/eslint-plugin": "1.6.9",
5656
"@vitest/spy": "4.0.18",
5757
"@vitest/ui": "4.0.18",
5858
"bytes": "^3.1.2",
5959
"es-module-lexer": "^2.0.0",
6060
"eslint": "9.39.2",
61-
"eslint-config-flat-gitignore": "^2.1.0",
61+
"eslint-config-flat-gitignore": "^2.2.1",
6262
"eslint-plugin-header": "^3.1.1",
6363
"eslint-plugin-import": "^2.32.0",
64-
"glob": "^13.0.0",
65-
"globals": "^17.3.0",
64+
"glob": "^13.0.6",
65+
"globals": "^17.4.0",
6666
"husky": "^9.1.7",
6767
"isbinaryfile": "^6.0.0",
68-
"jsdom": "^28.0.0",
69-
"lint-staged": "^16.2.7",
68+
"jsdom": "^28.1.0",
69+
"lint-staged": "^16.3.1",
7070
"magic-string": "^0.30.21",
71-
"nx": "22.4.4",
71+
"nx": "22.5.3",
7272
"prettier": "^3.8.1",
73-
"rollup": "^4.57.1",
73+
"rollup": "^4.59.0",
7474
"terser": "^5.46.0",
7575
"tslib": "^2.8.1",
7676
"typescript": "6.0.0-dev.20260112",
77-
"typescript-eslint": "8.54.0",
77+
"typescript-eslint": "8.56.1",
7878
"vitest": "4.0.18"
7979
},
8080
"lint-staged": {

packages/@lwc/aria-reflection/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/aria-reflection",
7-
"version": "9.0.1",
7+
"version": "9.0.3",
88
"description": "ARIA element reflection polyfill for strings",
99
"keywords": [
1010
"aom",
@@ -38,6 +38,7 @@
3838
"types": "dist/index.d.ts",
3939
"files": [
4040
"dist/**/*.js",
41+
"dist/**/*.cjs",
4142
"dist/**/*.d.ts"
4243
],
4344
"scripts": {

packages/@lwc/babel-plugin-component/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/babel-plugin-component",
7-
"version": "9.0.1",
7+
"version": "9.0.3",
88
"description": "Babel plugin to transform a LWC module",
99
"keywords": [
1010
"lwc"
@@ -34,6 +34,7 @@
3434
"types": "dist/index.d.ts",
3535
"files": [
3636
"dist/**/*.js",
37+
"dist/**/*.cjs",
3738
"dist/**/*.d.ts"
3839
],
3940
"scripts": {
@@ -51,8 +52,8 @@
5152
},
5253
"dependencies": {
5354
"@babel/helper-module-imports": "7.28.6",
54-
"@lwc/errors": "9.0.1",
55-
"@lwc/shared": "9.0.1",
55+
"@lwc/errors": "9.0.3",
56+
"@lwc/shared": "9.0.3",
5657
"line-column": "~1.0.2"
5758
},
5859
"devDependencies": {

packages/@lwc/compiler/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
55
],
66
"name": "@lwc/compiler",
7-
"version": "9.0.1",
7+
"version": "9.0.3",
88
"description": "LWC compiler",
99
"keywords": [
1010
"lwc"
@@ -34,6 +34,7 @@
3434
"types": "dist/index.d.ts",
3535
"files": [
3636
"dist/**/*.js",
37+
"dist/**/*.cjs",
3738
"dist/**/*.d.ts"
3839
],
3940
"scripts": {
@@ -56,11 +57,11 @@
5657
"@babel/plugin-transform-class-properties": "7.28.6",
5758
"@babel/plugin-transform-object-rest-spread": "7.28.6",
5859
"@locker/babel-plugin-transform-unforgeables": "0.22.0",
59-
"@lwc/babel-plugin-component": "9.0.1",
60-
"@lwc/errors": "9.0.1",
61-
"@lwc/shared": "9.0.1",
62-
"@lwc/ssr-compiler": "9.0.1",
63-
"@lwc/style-compiler": "9.0.1",
64-
"@lwc/template-compiler": "9.0.1"
60+
"@lwc/babel-plugin-component": "9.0.3",
61+
"@lwc/errors": "9.0.3",
62+
"@lwc/shared": "9.0.3",
63+
"@lwc/ssr-compiler": "9.0.3",
64+
"@lwc/style-compiler": "9.0.3",
65+
"@lwc/template-compiler": "9.0.3"
6566
}
6667
}

0 commit comments

Comments
 (0)