Skip to content

Conversation

Copy link

Copilot AI commented Dec 18, 2025

Brings the wb-data-scrumb.js utility script from the Engine branch to main.

Changes

  • Added scripts/utils/wb-data-scrumb.js - PlayCanvas script for data scrubbing/sanitization

Usage

var scrubber = entity.script.wbDataScrumb;
var cleanData = scrubber.scrubData(dirtyData);

Configurable options via attributes:

  • removeNullValues - Strip null/undefined values
  • removeEmptyStrings - Strip empty strings
  • trimStrings - Trim whitespace
  • removeEmptyArrays - Strip empty arrays
  • sanitizeHtml - Strip HTML tags
  • maxDepth - Recursion limit (default: 10)
Original prompt

On wb-data-scrumb.js, Checkout this branch


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Summary by cubic

Add scripts/utils/wb-data-scrumb.js for configurable data scrubbing, including trimming, null/empty removal, HTML sanitization, maxDepth, and helper methods. Also adds CodeQL/Codacy security scans, a SECURITY.md, minor dependency bumps, and a world clocks widget in the examples page.

Written for commit e282ad8. Summary will update automatically on new commits.

JaclynCodes and others added 10 commits July 29, 2025 10:49
Unified gsplat rendering - changes to sorter job scheduling (playcanvas#7864)
Signed-off-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
Added a security policy document outlining supported versions and vulnerability reporting.

Signed-off-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
* Add CodeQL analysis workflow configuration

Signed-off-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>

* Chore(deps-dev): bump js-yaml from 4.1.0 to 4.1.1

Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: indirect
...

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

* Chore(deps): bump glob from 10.4.5 to 10.5.0

Bumps [glob](https://github.com/isaacs/node-glob) from 10.4.5 to 10.5.0.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](isaacs/node-glob@v10.4.5...v10.5.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 10.5.0
  dependency-type: indirect
...

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

* Chore(deps): bump serialize-javascript from 6.0.1 to 6.0.2 in /examples (#6)

Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](yahoo/serialize-javascript@v6.0.1...v6.0.2)

---
updated-dependencies:
- dependency-name: serialize-javascript
  dependency-version: 6.0.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>

* Chore(deps): bump js-yaml from 4.1.0 to 4.1.1 in /examples (#5)

---------

Signed-off-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@coderabbitai
Copy link

coderabbitai bot commented Dec 18, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
Copilot AI changed the title [WIP] Checkout branch wb-data-scrumb.js Add wb-data-scrumb.js from Engine branch Dec 18, 2025
Copilot AI requested a review from JaclynCodes December 18, 2025 19:25
* Add Codacy security scan workflow

This workflow integrates Codacy security scans with GitHub Actions, checking code on push and pull requests to the main branch, and scheduling weekly scans.

Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>

* Update .github/workflows/codacy.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>

* Update .github/workflows/codacy.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>

* Update .github/workflows/codacy.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>

---------

Signed-off-by: Misfit <218383634+JaclynCodes@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants