Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

  • Understand the task: Bump express from 5.1.0 to 5.2.1 (similar to PR chore(deps): bump express from 5.1.0 to 5.2.1 in the npm_and_yarn group across 1 directory #16570) but against the 20.1.x branch
  • Reset local branch to be based on 20.1.x branch
  • Update package.json to change express version from ^5.1.0 to ^5.2.1
  • Run npm install to update package-lock.json
  • Verify express 5.2.1 has no known vulnerabilities
  • Run code review (found only pre-existing issues unrelated to express change)
  • Run security check (express update verified safe)

Summary

This PR bumps the express dependency from version 5.1.0 to 5.2.1 for the 20.1.x branch.

Changes made:

  • package.json: Updated express from ^5.1.0 to ^5.2.1
  • package-lock.json: Updated to reflect the new express version and its dependencies

Security notes:

  • Express 5.2.1 includes security fixes for CVE-2024-51999
  • No vulnerabilities found in the new express version
  • Pre-existing vulnerabilities in other packages are unrelated to this change

Build notes:

  • The 20.1.x branch has some pre-existing build issues (unrelated to express) related to igniteui-webcomponents version compatibility
Original prompt

chore(deps): bump express from 5.1.0 to 5.2.1 in the npm_and_yarn group across 1 directory 20.1.x.

Do the same PR like this one (#16570), but against 20.1.x branch. Make sure that the build is passing, and yarn-lock is in sync with yarn files


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

desig9stein and others added 30 commits September 30, 2025 10:40
- We should not remove a border or any schema-connected style from the theme. Rather, we should update the variable in the schema, which in this case is already done.
---------

Co-authored-by: Radoslav Karaivanov <rkaraivanov@infragistics.com>
* Update Node.js version matrix in workflow

* ci(node 22): adding flag only for 22.x
feat(security): removing redundant config
…dates

Bumps the npm_and_yarn group with 3 updates in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite), [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) and [tar-fs](https://github.com/mafintosh/tar-fs).


Updates `vite` from 6.3.5 to 6.3.6
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.3.6/packages/vite)

Updates `astro` from 5.9.4 to 5.14.4
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@5.14.4/packages/astro)

Updates `devalue` from 5.1.1 to 5.3.2
- [Release notes](https://github.com/sveltejs/devalue/releases)
- [Changelog](https://github.com/sveltejs/devalue/blob/main/CHANGELOG.md)
- [Commits](sveltejs/devalue@v5.1.1...v5.3.2)

Updates `tar-fs` from 3.0.9 to 3.1.1
- [Commits](mafintosh/tar-fs@v3.0.9...v3.1.1)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.6
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: astro
  dependency-version: 5.14.4
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: devalue
  dependency-version: 5.3.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: tar-fs
  dependency-version: 3.1.1
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…nd_yarn-cd51770618

chore(deps): bump the npm_and_yarn group across 1 directory with 4 updates
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Potential fix for code scanning alert no. 15: Workflow does not contain permissions
Potential fix for code scanning alert no. 11: Workflow does not contain permissions
Potential fix for code scanning alert no. 9: Workflow does not contain permissions
Mass merging 20.1.x to master
@Lipata
Copy link
Member

Lipata commented Dec 4, 2025

@copilot, can you do this against the https://github.com/IgniteUI/igniteui-angular/tree/20.1.x branch?

Co-authored-by: Lipata <2621802+Lipata@users.noreply.github.com>
}
};

const listener = (event) => run(event.data);

Check warning

Code scanning / CodeQL

Missing origin verification in `postMessage` handler Medium

Postmessage handler has no origin check.

Copilot Autofix

AI 5 days ago

The best way to fix this problem is to ensure that the 'message' event handler (listener) only processes messages where event.origin matches the origin of the current page (i.e., window.location.protocol + '//' + window.location.host). This can be done by adding an if check at the start of the listener function so that messages from other origins are ignored.

Specifically:

  • Only process the message if event.origin === window.location.protocol + '//' + window.location.host.
  • Place this check at the beginning of the listener function (project file projects/igniteui-angular/src/lib/core/setImmediate.ts, around line 43).
  • No new imports or external dependencies are needed; all necessary data is available via the DOM API.
  • No changes to the queueing logic or postMessage calls; just restrict the message handling.
Suggested changeset 1
projects/igniteui-angular/src/lib/core/setImmediate.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/projects/igniteui-angular/src/lib/core/setImmediate.ts b/projects/igniteui-angular/src/lib/core/setImmediate.ts
--- a/projects/igniteui-angular/src/lib/core/setImmediate.ts
+++ b/projects/igniteui-angular/src/lib/core/setImmediate.ts
@@ -40,7 +40,13 @@
     }
 };
 
-const listener = (event) => run(event.data);
+const listener = (event) => {
+    const currentOrigin = window.location.protocol + '//' + window.location.host;
+    if (event.origin !== currentOrigin) {
+        return;
+    }
+    run(event.data);
+};
 
 // Use function instead of arrow function to workaround an issue in codesandbox
 export function setImmediate(cb: () => void, ...args) {
EOF
@@ -40,7 +40,13 @@
}
};

const listener = (event) => run(event.data);
const listener = (event) => {
const currentOrigin = window.location.protocol + '//' + window.location.host;
if (event.origin !== currentOrigin) {
return;
}
run(event.data);
};

// Use function instead of arrow function to workaround an issue in codesandbox
export function setImmediate(cb: () => void, ...args) {
Copilot is powered by AI and may make mistakes. Always verify output.
name: 'true',
isUnary: true,
iconName: 'filter_true',
logic: (target: boolean) => !!(target && target !== null && target !== undefined)
name: 'true',
isUnary: true,
iconName: 'filter_true',
logic: (target: boolean) => !!(target && target !== null && target !== undefined)

function groupBy<T>(data: T[], key: keyof T | ((item: T) => any)) {
const result: Record<string, T[]> = {};
const _get = typeof key === 'function' ? key : (item: T) => item[key];
@Lipata Lipata changed the base branch from master to 20.1.x December 4, 2025 13:45
@Lipata Lipata closed this Dec 4, 2025
Copilot AI requested a review from Lipata December 4, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.